Coap Client and Server
Dependencies: DebugLib EthernetInterface cantcoap mbed-rtos
Fork of yeswecancoap by
YesWeCanCoap
Is a small coap client and server library for mbed based on the cantcoap library.
Import librarycantcoap
This is CoAP library with a focus on simplicity. It offers minimal CoAP PDU construction and decoding to and from byte buffers.
yeswecancoap server enables easy implementation of coap resources, each with a dedicated function. When the function is registered by the server, it will do the rest.
Coap server example
Repository: YesWeCanCoap-example
Coap client example
under construction
Diff: server.cpp
- Revision:
- 21:8cf7042bbfb7
- Parent:
- 17:3e1d176e2d4a
- Child:
- 23:019c530468b4
--- a/server.cpp Wed Oct 21 13:48:43 2015 +0000 +++ b/server.cpp Wed Oct 21 14:43:49 2015 +0000 @@ -28,7 +28,7 @@ { char buffer[UDP_BUFFER_SIZE]; - printf("\r\nWaiting for UDP packet...\r\n"); + //printf("\r\nWaiting for UDP packet...\r\n"); int size = server.receiveFrom(client, buffer, sizeof(buffer)); buffer[size] = '\0'; @@ -40,7 +40,7 @@ uint8_t token[TOKEN_BUFFER_SIZE]; uint8_t tokenLength; - req->printHuman(); + //req->printHuman(); req->getURI(uriBuffer,URI_BUFFER_SIZE,&uriLength); tokenLength = req->getTokenLength();