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 CoAP to our devices

We are now ready to implement CoAP in our projects. To do this, we create two new projects, which we will call SensorCoap and ActuatorCoap, copying the corresponding code from the Sensor and Actuator projects. If we wish to retain HTTP functionality, we can copy the code from the SensorHttp and ActuatorHttp projects instead. Our devices can support multiple protocols. We use the same hardware as we used in previous chapters. We add the Waher.Networking.CoAP.UWP NuGet package to both projects.

For .NET standard, .NET Core, or traditional .NET Framework projects, you can use the Waher.Networking.CoAP NuGet instead. Universal Windows Platform apps use different libraries and runtime binaries when it comes to accessing ...

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