Coap Client and Server

Dependencies:   DebugLib EthernetInterface cantcoap mbed-rtos

Dependents:   COAP coap

Fork of yeswecancoap by Sille Van Landschoot

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

Revision:
28:4f71d9d10011
Parent:
27:22436933025a
Child:
29:62113a57353b
--- a/server.cpp	Thu Oct 22 08:09:13 2015 +0000
+++ b/server.cpp	Fri Oct 23 11:29:59 2015 +0000
@@ -11,6 +11,7 @@
     printf("\r\nServer IP Address is %s\r\n", eth.getIPAddress());
     
     server.bind(5683);
+    server.set_blocking(false, 100);
 }
 
 void Server::enableBroadcast(int broadcast)