CoAPSharp was the world's first Constraind Application Protocol (CoAP) library that was built for Microsoft's .NET Micro Framework, popularly known as NETMF. As work on NETMF halted, CoAPSharp's future too was impacted. Thankfully, the folks at the nanoFramework team recreated possibilities of writing embedded code on microcontrollers using C#.
This release of CoAPSharp is now qualified for the nanoFramework runtime. It contains the following:
- The core CoAPSharp library
- Samples that outline how to use the library
Do follow us on Twitter @CoAPSharp for latest news, updates, samples and announcements related to this library.
Free e-book on CoAP with examples in CoAPSharp
Our developers have created an e-book for you to get started on CoAP and CoAPSharp. All examples in the book are also provided in this repository.
Examples (For .NET Standard)
- Block transfer in CoAP - Client
- Block transfer in CoAP - Server
- CON client in CoAP
- CON server in CoAP
- NON client in CoAP
- NON server in CoAP
- Observable server in CoAP
- Observable client in CoAP
- Separate response client in CoAP
- Separate response server in CoAP
- Well-known NON client in CoAP
- Well-known NON server in CoAP
Examples (For nanoFramework on ESP32)
A basic CoAP NON Server is implemented here You follow the same process as .NET , however, you need to ensure that you are connected to the network before you begin. If you have only one ESP32, you can flash the code in ESP32 (the sample shows how to get the assigned IP address). Then, you can create the corresponding client or server on another machine and see the magic!