O'Reilly logo

Mastering Internet of Things by Peter Waher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Following the progress

You can keep track of LWM2M state changes by registering event handlers on any of a series of events published on the Lwm2mClient object:

Event

Raised when

OnStateChanged

The internal state of the LWM2M client changes.

OnBootstrapCompleted

The bootstrap procedure completes.

OnBootstrapFailed

The bootstrap procedure fails. Use this event handler to schedule a retry at a suitable time.

OnRegistrationSuccessful

The registration procedure completes on one server.

OnRegistrationFailed

The registration procedure fails on one server. There's no need to schedule a retry when this happens, since this is automatically performed by the LWM2M client object.

OnDeregistrationSuccessful

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required