CoAP simple server/client library for Arduino IDE/PlatformIO, ESP32, ESP8266.
Documentation is available at https://decadenza.github.io/ProsecCoAP/.
This library is a partial implementation of CoAP protocol (RFC-7252) supporting:
- request/respose semantics,
- observe pattern.
This library is a fork of CoAP-simple-library and aims at providing:
- Clear documentation and ease of use.
- A closer implementation of the (RFC-7252).
- Open the Sketch menu in the IDE.
- Navigate to Include Library > Manage Libraries.
- Search for "ProsecCoAP" and install.
- Download this source code branch as a zip file.
- In the Arduino IDE, navigate to Sketch > Include Library > Add .ZIP Library. At the top of the drop down list, select the option to "Add .ZIP Library".
Navigate to File > Examples > ProsecCoAP to get started with some basic examples.
The examples need CoAP server libcoap or microcoap server to work. You can, alternatively:
- Use two devices and use serial monitor.
- Use one device and a CoAP tool on your computer for testing.
- Use libcoap by compiling the examples yourself or use the example binaries available as Debian package libcoap3-bin. In this case, you can test with
coap-client-notlsandcoap-server-notls.
Documentation is available at: https://decadenza.github.io/ProsecCoAP/.
To manually build documentation from the main folder, run:
doxygen
The documentation will accesible from ./html/index.html.
Check this version of the library for Particle Photon, Core compatibility.
A new version is released following these steps:
- Update library.properties as required, using a new
vX.Y.Ztag. - Create the corresponding
vX.Y.Ztag and a new release (for GitHub and Arduino library manager). The logs for the Arduino library manager bot can be checked here. - Publish the new library to PlatformIO, running the following from the main project folder:
pio pkg publish .
This library is a fork of CoAP-simple-library by Hirotaka Niisato. Credits for all the orginal code go to the original contributors.
We are grateful to the original author for providing a solid, lightweight foundation for CoAP communication on embedded systems. This project maintains the original MIT License and continues the spirit of open-source IoT development.