ConnectivityFoundry / AwaLWM2M

Awa LWM2M is an implementation of the OMA Lightweight M2M protocol in C.
BSD 3-Clause "New" or "Revised" License
102 stars 66 forks source link

Static API - server initiated bootstrap #331

Closed mkowalczyk88 closed 7 years ago

mkowalczyk88 commented 7 years ago

I have a question: how to perform server initiated bootstrap on Contiki? Alternatively, how to re-trigger client initiated bootstrap if the server was restarted? Currently, I only run "AwaStaticClient_Process" in main loop and I don't see any way to register callbacks for handling situation when server is restarted and bootstrap procedure must be repeated.

boyvinall commented 7 years ago

Hi @mkmk88, Awa doesn't yet support server-initiated bootstrap. Interestingly though, some recent discussions on OpenMobileAlliance/OMA_LwM2M_for_Developers#179 are suggesting that this should not be mandated by the spec.

Alternatively, how to re-trigger client initiated bootstrap if the server was restarted? handling situation when server is restarted and bootstrap procedure must be repeated

You shouldn't need to re-bootstrap just because the server has been restarted. The client device will re-register during its regular update interval and should get re-connected at that point. The register update interval on our cloud-based DeviceServer is set to 60sec, and IMHO this is a good setting.

mkowalczyk88 commented 7 years ago

Ok, thanks for clarification. Maybe I didn't wait for 1 minute and this was my problem. Cheers.