Updating the device's registration
When the device registers to the LwM2M server, it proposes a registration session lifetime using the configuration
MBED_CLOUD_CLIENT_LIFETIME. That makes the registration valid before that lifetime expires.
Note: The server-side maximum registration period is 72 hours. If you set the limit higher, the server overrides it.
Device Management Client sends registration updates automatically based on the
MBED_CLOUD_CLIENT_LIFETIME value, or in response to events within the client or as initiated by Device Management Connect. Device Management Client sends a Registration Update operation to Device Management Connect.
To explicitly renew the registration from the application, use this API:
If a device fails to send a registration update within the device lifetime, the server deregisters the device. The client automatically updates its registration before it expires. In normal use, the application doesn't need to call this API seperately.
register_update() is a resource-heavy operation and is not suitable for energy-efficient devices. For TCP-connected devices, use the
TCP keepalive parameter. See Connection keepalive for TCP.
Note: There is a registration rate limit, so do not call
register_update in a loop too often. A client registering more than 10 times within 10 seconds will be blacklisted (all incoming traffic blocked) for 60 seconds.
The result of that request can be:
If the Device Managment service successfully deregisters Device Management Client, the application receives the result
If the update operation fails, the application receives the result through the