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

Adding LWM2M to our devices

We are now ready to implement LWM2M in our projects. To do this, we create two new projects which we will call SensorLwm2m and ActuatorLwm2m, copying the corresponding code from the SensorCoap and ActuatorCoap projects. This allows us to immediately inherit what we've done to enable CoAP in our devices. We use the same hardware we've used in previous chapters. We add the Waher.Networking.LWM2M.UWP NuGet package to both projects.

For .NET standard, .NET Core, or traditional .NET Framework projects, you can use the Waher.Networking.LWM2M NuGet instead. Universal Windows Platform apps use different libraries and runtime binaries when it comes to accessing network adaptors. For this reason, it requires a somewhat modified ...

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