CoAP Device Server Client
Dependencies: EthernetInterface mbed-rtos mbed nsdl_lib
Fork of COAPmbed by
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.
Zeile 29: Node Name aendern und folgende Adresse aufrufen: http://nsp.cloudapp.net:8083/, User/PW = demo
Diff: main.cpp
- Revision:
- 11:99178da0f3fa
- Parent:
- 10:57352d0c287c
- Child:
- 13:3c205b19c540
diff -r 57352d0c287c -r 99178da0f3fa main.cpp --- a/main.cpp Sun Jan 18 18:32:12 2015 +0000 +++ b/main.cpp Wed Feb 04 19:49:52 2015 +0000 @@ -19,8 +19,8 @@ // NSP configuration /* Change this IP address to that of your NanoService Platform installation */ -//static const char* NSP_ADDRESS = "23.97.178.38"; /* demo NSP, web interface at http://nsp.cloudapp.net:8083/, User/PW = demo */ -static const char* NSP_ADDRESS = "192.168.178.65"; /* Lokale Installation */ +static const char* NSP_ADDRESS = "23.97.178.38"; /* demo NSP, web interface at http://nsp.cloudapp.net:8083/, User/PW = demo */ +//static const char* NSP_ADDRESS = "192.168.178.65"; /* Lokale Installation */ static const int NSP_PORT = 5683; char endpoint_name[16] = "mbed-k64f-1234"; // aendern pro Node uint8_t ep_type[] = {"mbed_device"};