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

Performing the bootstrap procedure

We will use a bootstrap server in our example. When the application starts, we want it to connect to the previous bootstrap server to see if there's any new information for it. If there's no configured bootstrap server available, we provide a reference to one. Data provided by the bootstrap server will be persisted in the persistence layer. This data will include what LWM2M servers to register with, and what credentials to use. So, to begin, we first need to load any previous data, if such is available. Directly after creating our client, we call the LoadBootstrapInfo method:

await this.lwm2mClient.LoadBootstrapInfo(); 

We then initiate the bootstrap procedure. If no bootstrap information was found, we ask ...

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