LED Demo for Tech Con 2014
Dependencies: EthernetInterface PololuLedStripx mbed-rtos mbed nanoservice_client_1_12_X
Fork of LPC1768_LWM2M_Client by
Revision 15:2f2b3eaa51a6, committed 2014-11-17
- Comitter:
- michaeljkoster
- Date:
- Mon Nov 17 17:37:16 2014 +0000
- Parent:
- 14:25430e88728f
- Commit message:
- LED Strip Demo
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 25430e88728f -r 2f2b3eaa51a6 main.cpp --- a/main.cpp Sat Oct 04 05:12:45 2014 +0000 +++ b/main.cpp Mon Nov 17 17:37:16 2014 +0000 @@ -53,9 +53,8 @@ // NSP configuration /* Change this IP address to that of your NanoService Platform installation */ -//static const char* NSP_ADDRESS = "217.140.101.20"; /* public mbed demo server */ -static const char* NSP_ADDRESS = "23.99.99.252"; // barista.cloudapp.net -//static const char* NSP_ADDRESS = "192.168.1.200"; +//static const char* NSP_ADDRESS = "54.228.25.31/"; /* Leshan Sandbox */ +static const char* NSP_ADDRESS = "192.168.1.200"; static const int NSP_PORT = 5683; char endpoint_name[24] = "LED-booth-"; uint8_t ep_type[] = {"LED-STRIP"}; @@ -141,8 +140,8 @@ memset(resource_ptr->resource_parameters_ptr, 0, sizeof(sn_nsdl_resource_parameters_s)); // Static resources - nsdl_create_static_resource(resource_ptr, sizeof("dev/mfg")-1, (uint8_t*) "dev/mfg", 0, 0, (uint8_t*) "ARMDEMO", sizeof("ARMDEMO")-1); - nsdl_create_static_resource(resource_ptr, sizeof("dev/mdl")-1, (uint8_t*) "dev/mdl", 0, 0, (uint8_t*) "LED-STRIP", sizeof("LED-STRIP")-1); + nsdl_create_static_resource(resource_ptr, sizeof("3/0/0")-1, (uint8_t*) "3/0/0", 0, 0, (uint8_t*) "ARMDEMO", sizeof("ARMDEMO")-1); + nsdl_create_static_resource(resource_ptr, sizeof("3/0/1")-1, (uint8_t*) "3/0/1", 0, 0, (uint8_t*) "LED-STRIP", sizeof("LED-STRIP")-1); // Dynamic resources create_light_resource(resource_ptr);