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:
- 14:54c3708f7c3c
- Parent:
- 13:3c205b19c540
--- a/main.cpp Tue Mar 24 14:49:32 2015 +0000 +++ b/main.cpp Fri Apr 17 07:58:23 2015 +0000 @@ -24,9 +24,9 @@ // 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 = "192.168.178.77"; /* Lokale Installation */ static const int NSP_PORT = 5683; -char endpoint_name[16] = "mbed-k64f-1234"; // aendern pro Node +char endpoint_name[] = "mbed-k64f-1234"; // aendern pro Node uint8_t ep_type[] = {"mbed_device"}; uint8_t lifetime_ptr[] = {"1200"};