Hello,
I have a project based on nRF9160, that uses nRFCloud over CoAP.
It uses SDK 2.8.0, with functions such as functions such as nrf_cloud_coap_json_message_send() and nrf_cloud_coap_shadow_get().
I had a look at the RAI feature, which looks interesting. However, I was unable to understand how to use it with the API I use.
From my understanding, the AT command AT%RAI only enables/disables the feature, but does not indicate to the network that the device no longer expects any data. Is this correct ?
The only way I found to indicate this to the network is this API: https://nrfconnectdocs.nordicsemi.com/ncs/latest/nrfxlib/nrf_modem/doc/sockets/rai.html
However, this is based on socket, which is a part completelly hidden in the nrf_cloud_coap--***() functions.
My device has a loop as follow:
- Send data to nRFCloud
- Read nRFCloud shaodw
- Sleep for 15 min (in most cases, using PSM)
- Repeat
Therefore, I was expecting to use the RAI just before entering sleep.
Could you please provide some details on this.
Thanks !