Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wakaama-dev] Possible to trigger registration update?

Hi Henrick,

When waking up and creating a new socket, try calling the API

int lwm2m_update_registration(lwm2m_context_t * contextP, uint16_t shortServerID, bool withObjects);

This will send a registration update to the server.

Regards,
David Navarro

-----Original Message-----
From: wakaama-dev-bounces@xxxxxxxxxxx <wakaama-dev-bounces@xxxxxxxxxxx> On Behalf Of Henrik A
Sent: Thursday, 6 September, 2018 13:42
To: wakaama-dev@xxxxxxxxxxx
Subject: [wakaama-dev] Possible to trigger registration update?

Hi,

Is it possible to trigger a registration update of the Wakaama client?

Have a device with cellular connection that periodically reports sensor data to a lwm2m server.
When the device modem enters deep sleep, to save battery, it closes the data context from the network.
Next time it reports sensor values we create a new data context and opens a new socket.

The server sees this new socket as a new connection and not an existing one.
The server then sends COAP RESET and removes the current observe list.
After talking to a technician on the server side he told me the COAP RESET in this case probably means that the server does not understand the command.

Is there a way to handle this properly from Wakaama client?
Can I trigger a registration update to avoid deregister and register again?

Thanks in advance,

   Henrik

_______________________________________________
wakaama-dev mailing list
wakaama-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/wakaama-dev

Back to the top