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:
17:3e1d176e2d4a
Parent:
16:62a87be3f0b8
Child:
21:8cf7042bbfb7
diff -r 62a87be3f0b8 -r 3e1d176e2d4a server.cpp
--- a/server.cpp	Wed Oct 21 12:52:04 2015 +0000
+++ b/server.cpp	Wed Oct 21 13:38:22 2015 +0000
@@ -18,7 +18,7 @@
     server.set_broadcasting(broadcast);
 }
 
-void Server::add(char* uri, void (*fnc)(Request*, Response*), CoapPDU::Code method)
+void Server::add(char* uri, void (*fnc)(Request*, Response*), Method method)
 {
     Resource res = {uri, fnc, method};
     resources.push_back(res);