View a list of all libcoap examples here.
This example includes a CoAP server and a CoAP client.
The client performs a CoAP POST request for the "coap://127.0.0.1/hello" resource. The server listens on port 5683 (default port) and prints the POSTed data
You can find the source code of this example, as well as, instructions for compiling it in Linux in this github repository, in the "post" folder.
This example includes a CoAP server and a CoAP client.
The client performs a CoAP POST request for the "coap://127.0.0.1/hello" resource. The server listens on port 5683 (default port) and prints the POSTed data
You can find the source code of this example, as well as, instructions for compiling it in Linux in this github repository, in the "post" folder.