Project with example IPSO resources for LED bar, Gas Sensor, and Light Sensor
Dependencies: EthernetInterface LED_Bar mbed-rtos mbed nsdl_lib
Revision 4:69ea903414fe, committed 2014-10-25
- Comitter:
- michaeljkoster
- Date:
- Sat Oct 25 01:31:08 2014 +0000
- Parent:
- 3:af599897e26f
- Child:
- 5:3fa1d1f8b3f8
- Commit message:
- sync - new IP address
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
resources/IPSO_presence.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Oct 22 22:25:14 2014 +0000 +++ b/main.cpp Sat Oct 25 01:31:08 2014 +0000 @@ -52,8 +52,8 @@ // NSP configuration /* Change this IP address to that of your NanoService Platform installation */ -static const char* NSP_ADDRESS = "23.102.162.118"; // coen296.cloudapp.net -//static const char* NSP_ADDRESS = "192.168.1.200"; // local mDS server +//static const char* NSP_ADDRESS = "23.102.162.118"; // coen296.cloudapp.net +static const char* NSP_ADDRESS = "191.239.5.150"; // barista2.cloudapp.net static const int NSP_PORT = 5683; char endpoint_name[24] = "mbedDEMO-"; uint8_t ep_type[] = {"DEMO"};
--- a/resources/IPSO_presence.cpp Wed Oct 22 22:25:14 2014 +0000 +++ b/resources/IPSO_presence.cpp Sat Oct 25 01:31:08 2014 +0000 @@ -20,8 +20,8 @@ sn_coap_hdr_s *coap_res_ptr = 0; presence = presenceSensor.read(); sprintf(presenceString,"%d", presence); - pc.printf("illum callback\r\n"); - pc.printf("illum percent %s\r\n", presenceString); + pc.printf("presence callback\r\n"); + pc.printf("presence state %s\r\n", presenceString); if(received_coap_ptr->msg_code == COAP_MSG_CODE_REQUEST_GET) {