Core Base Classes for the Light Endpoints
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more
Diff: CommonDefinitions.h
- Revision:
- 45:da431cd42313
- Parent:
- 38:825f8e834e77
- Child:
- 46:1041f7efee73
diff -r 361a61395588 -r da431cd42313 CommonDefinitions.h --- a/CommonDefinitions.h Sat Mar 01 08:21:12 2014 +0000 +++ b/CommonDefinitions.h Sat Mar 01 15:59:47 2014 +0000 @@ -23,29 +23,29 @@ #define MAX_LOG_MESSAGE 900 // maximum size of a logging message // Resource Configuration -#define RESOURCE_NAME_LEN 20 // Resource name max length -#define RESOURCE_VALUE_LEN 20 // Resource value max length +#define RESOURCE_NAME_LEN 32 // Resource name max length +#define RESOURCE_VALUE_LEN 32 // Resource value max length // Number of Resources our Endpoint has #define NUM_RESOURCES 16 // MapEntry Name length -#define MAX_NAME_LENGTH 20 +#define MAX_NAME_LENGTH 32 // IOC <--> Resource Mapping #define NUM_MAPPINGS NUM_RESOURCES // matches the number of resources // Common Light Definition -#define NUM_LIGHTS 1 // number of lights in this endpoint -#define LIGHT_NAME_LEN 64 // buffer size for the light name -#define LIGHT_ON_STATE "0" // initial state of each light in this endpoint -#define LIGHT_DIM_STATE "25" // initial dimming state of each light in this endpoint +#define NUM_LIGHTS 1 // number of lights in this endpoint +#define LIGHT_NAME_LEN 64 // buffer size for the light name +#define LIGHT_ON_STATE "0" // initial state of each light in this endpoint +#define LIGHT_DIM_STATE "25" // initial dimming state of each light in this endpoint // Main Loop -#define MAIN_LOOP_SLEEP 100 // sleep time (ms) between main loop iterations +#define MAIN_LOOP_SLEEP 100 // sleep time (ms) between main loop iterations // LED Blink Time -#define BLINK_TIME 100 // LED blink times +#define BLINK_TIME 100 // LED blink times // Philips Light Support #define PL_ENABLE false // true - enable for endpoint light, false - disable