This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

[nRF9160] LwM2M Client register/de-register LwM2M Object

Hi,

I have a question about the LwM2M Client implementation for the nRF9160.

Can the LwM2M Object updated in a registration update or it is relying on a re-registration of the endpoint?

(e.g: I want to register/de-register/re-register an LwM2M Object via a push button)

Previously on the nRF SDK v1.2.0, I can call the lwm2m_rd_client_start() for re-registration the endpoint every time I want to update the resources (register/de-register).

But since I moved to the nRF SDK v1.4.0, call the lwm2m_rd_client_start() many time will generate file table overflow error (Errno 23 ENFILE), which can be temporarily fixed by calling the function lwm2m_rd_client_stop() before the lwm2m_rd_client_start() and set a wait time about 500ms - 1s between them. 

I might do it in the wrong way so please let me know how you register/de-register an Object during the LwM2M Client runtime.

Thank you!

Related