Red Hat Summit NanoService Demo for LPC1768 App Board using OMA Lightweight Objects
Dependencies: Beep C12832_lcd EthernetInterface LM75B MMA7660 mbed-rtos mbed nsdl_lib
Fork of LWM2M_NanoService_Ethernet by
Diff: main.cpp
- Revision:
- 19:e5c0b6553c11
- Parent:
- 18:0872a05cae95
- Child:
- 20:84ee332ba360
--- a/main.cpp Sat Apr 05 06:46:54 2014 +0000 +++ b/main.cpp Sun Apr 06 20:11:46 2014 +0000 @@ -20,6 +20,9 @@ /* Define this to enable DHCP, otherwise manual address configuration is used */ #define DHCP 1 +// Change this to 1 to enable the RGB LED resource +#define USE_RGBLED 0 + /* Manual IP configurations, if DHCP not defined */ #define IP "10.45.0.206" #define MASK "255.255.255.0" @@ -137,7 +140,11 @@ create_light_resource(resource_ptr); create_gps_resource(resource_ptr); create_relay_resource(resource_ptr); +#ifdef USE_RGBLED create_rgb_resource(resource_ptr); +#else + NSDL_DEBUG("Skipped RGB LED resource, change USE_RGBLED to 1 in main.cpp to test"); +#endif /* Register with NSP */ endpoint_ptr = nsdl_init_register_endpoint(endpoint_ptr, (uint8_t*)endpoint_name, ep_type, lifetime_ptr);