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:
- 85:8af3f3101ba3
- Parent:
- 79:beae5a9d7230
- Child:
- 86:8ddeaa7389a6
diff -r 4a993dd7c38b -r 8af3f3101ba3 CommonDefinitions.h --- a/CommonDefinitions.h Tue Mar 11 21:26:01 2014 +0000 +++ b/CommonDefinitions.h Wed Mar 12 19:54:44 2014 +0000 @@ -24,18 +24,18 @@ #define TEMP_BUFFER_LEN 128 // working/temp buffer length // Resource Configuration -#define RESOURCE_NAME_LEN 24 // Resource name max length -#define RESOURCE_VALUE_LEN 32 // Resource value max length +#define RESOURCE_NAME_LEN 24 // Resource name max length +#define RESOURCE_VALUE_LEN 32 // Resource value max length // Number of Resources our Endpoint has -#define NUM_RESOURCES 25 +#define NUM_RESOURCES 24 + +// IOC <--> Resource Mapping +#define NUM_MAPPINGS 16 // matches the number of resources // MapEntry Name length #define MAX_NAME_LENGTH 24 -// 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 48 // buffer size for the light name