This is CoAP library with a focus on simplicity. It offers minimal CoAP PDU construction and decoding to and from byte buffers.

Fork of cantcoap by Ashley Mills

Files at this revision

API Documentation at this revision

Comitter:
ericliang
Date:
Wed Aug 12 02:39:14 2015 +0000
Parent:
1:5eec2844ad47
Commit message:
commit code

Changed in this revision

cantcoap.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/cantcoap.cpp	Thu Jan 30 14:07:56 2014 +0000
+++ b/cantcoap.cpp	Wed Aug 12 02:39:14 2015 +0000
@@ -40,11 +40,13 @@
 #include "cantcoap.h"
 
 // for debugging output you need https://mbed.org/users/donatien/code/DebugLib/
-#define __DEBUG__ 3 // INFO
+#define __DEBUG__ 0 // INFO
 #ifndef __MODULE__
    #define __MODULE__ "cantcoap.cpp"
 #endif
-#include "dbg.h"
+
+
+//#include "dbg.h"
 // some extra debug stuff
 #if __DEBUG__ > 0
    #define INFOX(...)  do { fprintf(stderr,__VA_ARGS__); } while(0)
@@ -58,7 +60,9 @@
    #define DBG_PDU()   do{} while(0)
 #endif
 
-
+#define DBG(...) do{} while(0)
+   #define DBGX(...)  do{} while(0)
+   #define INFO(...)  do{} while(0)   
 /// Memory-managed constructor. Buffer for PDU is dynamically sized and allocated by the object.
 /**
  * When using this constructor, the CoapPDU class will allocate space for the PDU.