I have been trapped by this issue for a long time. I suddenly cannot connect to AirVantage server with LWM2M. The log when I either run AT+WDSS=1,1 or run app implementing AirVantage data API shows that credential cannot be retrieved:
Oct 9 11:10:55 | secStore/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 808 | Sending QMI_SWI_SFS_OPEN_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=48.[0x30]
Oct 9 11:10:55 | avcDaemon/avcDaemon T=main | osPortSecurity.c lwm2mcore_GetCredential() 100 | Unable to retrieve credentials for 7: -1 LE_NOT_FOUND
I found in osPortSecurity.c that the credential that cannot be retrieved is
LWM2M_DM_PSK_IDENTITY. How can this be missing? I can recall when I was able to connect to the server three or four weeks ago. I read from the Internet that this PSK identity is deveice’s ID(IMEI or in another word? I’m no sure). Is it possible to write this information manually by secStoreGlobal?
Any information will be highly appreciated.