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:
23:019c530468b4
Parent:
21:8cf7042bbfb7
Child:
27:22436933025a
--- a/server.cpp	Wed Oct 21 14:49:42 2015 +0000
+++ b/server.cpp	Wed Oct 21 15:13:08 2015 +0000
@@ -18,7 +18,7 @@
     server.set_broadcasting(broadcast);
 }
 
-void Server::add(char* uri, void (*fnc)(Request*, Response*), Method method)
+void Server::add(char* uri, void (*fnc)(Request*, Response*), CoapCode method)
 {
     Resource res = {uri, fnc, method};
     resources.push_back(res);