COAP mbed Beispiel

Dependencies:   EthernetInterface mbed-rtos mbed nsdl_lib

Fork of IoTKit_CoAP by mc-b

Constrained Application Protocol (Coap) ist ein Software-Protokoll welches für Internet der Dinge Geräte zugeschnitten ist.

COAP ist auf den meisten Geräten, die UDP Unterstützen, lauffähig.

Ein COAP fähiges Gerät publiziert seine Sensoren und Aktoren in einem Resource Directory oder stellt selber ein solches zur Verfügung.

Mittels Resource Discovery können die vorhandenen Sensoren und Aktoren mit ihren Attributen abgefragt werden.

Committer:
stefan1691
Date:
Mon Mar 16 18:35:44 2015 +0000
Revision:
12:2f67bf0e137e
Parent:
2:7e489126fe7a
COAP mbed Beispiel

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 2:7e489126fe7a 1 #ifndef DEBUG_H
bogdanm 2:7e489126fe7a 2 #define DEBUG_H
bogdanm 2:7e489126fe7a 3
bogdanm 2:7e489126fe7a 4 #include "nsdl_support.h"
bogdanm 2:7e489126fe7a 5 #include "mbed.h"
bogdanm 2:7e489126fe7a 6
bogdanm 2:7e489126fe7a 7 //Debug is disabled by default
bogdanm 2:7e489126fe7a 8 #define DEBUG 1
bogdanm 2:7e489126fe7a 9
bogdanm 2:7e489126fe7a 10 #if (DEBUG)
bogdanm 2:7e489126fe7a 11 extern Serial pc;
bogdanm 2:7e489126fe7a 12 #define NSDL_DEBUG(x, ...) pc.printf("[NSDL_DEBUG: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
bogdanm 2:7e489126fe7a 13 #else
bogdanm 2:7e489126fe7a 14 #define NSDL_DEBUG(x, ...)
bogdanm 2:7e489126fe7a 15 #endif
bogdanm 2:7e489126fe7a 16
bogdanm 2:7e489126fe7a 17 #endif