Hello
I am developing an application based on the nRF9160, it uses Coap protocol to connect to nRFCloud to transfer the data. Also I have implemented the FOTA which always worked with no problems but since last week I get an error, only when there is a pending fota on the nrf cloud for the device. Otherwise the device is able to connect and send data to nrf cloud without any problems. I get the following error: err> nrf_cloud_coap_transport: Device not authenticated; reconnection required.
For the device provision process I use the device_credentials_installer.py script from the nRFCloud utils on github . I have generated the CA certificate and private key using the script create_ca_cert.py.
I have never experienced a problem related with the provision and authentication of the device. I also, repeat the device provision using new generated certificates but did not solve the problem.
The fota in my application is based on the nrf_cloud_multi_service sample and the fota_support.c and fota_support.coap.c files.
The logs from my application when I there is a pending fota are the following:
The prj.conf file:
- SDK: nRFCloud SDK v2.7.0
- Modem firmware: mfw_nrf9160_1.3.7
As you can see from the LOGS the device is authorized but when there is a fota pending it says that the device is not authenticated. Also, in case there is not pending fota the device is able to get the shadow register and send data to nrfcloud using Coap protocol, without any problems. Why such an error might occur?
Thank you in advance