![](/media/cache/group/arm_mbed.PNG.50x50_q85.png)
MBED NanoService Lighting Endpoint for NXP Ublox (cellular enabled)
Dependencies: C027_Support C12832 StatusReporter LM75B c027_radios endpoint_core endpoint_nsp nsp_resources mbed mbed-rtos
Diff: Definitions.h
- Revision:
- 5:9e795e139e45
- Parent:
- 4:2469fd2fba1c
- Child:
- 6:c780baa3b7f1
--- a/Definitions.h Wed Feb 26 21:49:33 2014 +0000 +++ b/Definitions.h Thu Feb 27 06:14:49 2014 +0000 @@ -26,7 +26,20 @@ #define ENDPOINT_VERSION_ANNOUNCE "\r\nMBED IMPACT(NSP) Endpoint v1.0" // Error Handler -#define MAX_LOG_MESSAGE 256 // maximum size of a logging message +#define MAX_LOG_MESSAGE 768 // 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 + +// MapEntry Name length +#define MAX_NAME_LENGTH 20 + +// Number of Resources our Endpoint has +#define NUM_RESOURCES 16 + +// IOC <--> Resource Mapping +#define NUM_MAPPINGS NUM_RESOURCES // matches the number of resources // Light Configuration #define NUM_LIGHTS 1 // number of lights in this endpoint @@ -42,10 +55,6 @@ #define ENDPOINT_LOCATION "Oulo Finland" // Where this light/endpoint lives #define ENDPOINT_GPS_COORDS "65.017210,25.492411" // Where this light/endpoint lives -// Resource Configuration -#define RESOURCE_NAME_LEN 64 // Resource name max length -#define RESOURCE_VALUE_LEN 64 // Resource value max length - // Transport Configuration #define NUM_TRANSPORTS 1 // NSP Only #define NSP_TRANSPORT 0 // NSP Transport index @@ -57,6 +66,6 @@ #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 #endif // _DEFINITIONS_H \ No newline at end of file