Back to Riot

Demo of `unicoap` Message APIs

examples/networking/coap/unicoap_message/README.md

2026.07-devel538 B
Original Source

Demo of unicoap Message APIs

This application provides an example of how to create messages and how to set and get option values. The example also demonstrates how to parse and serialize CoAP messages using the RFC 7252 PDU format.

This example corresponds to the sample code Using Message APIs on api.riot-os.org.

Running the Example

To try this example on your host, run:

sh
BOARD=native make flash term

This will compile and run the application.