![](/media/cache/group/arm_mbed.PNG.50x50_q85.png)
MBED MQTT Lighting Endpoint for NXP Ublox (Ethernet enabled)
Dependencies: C027 C12832 EthernetInterface StatusReporter LM75B MQTT-ansond endpoint_core endpoint_mqtt mbed-rtos mbed
Diff: Definitions.h
- Revision:
- 21:d1ce325d1d32
- Parent:
- 19:956b694f6542
- Child:
- 22:f1002e5993c5
diff -r 4d7321f7579d -r d1ce325d1d32 Definitions.h --- a/Definitions.h Thu Feb 27 15:20:30 2014 +0000 +++ b/Definitions.h Thu Feb 27 22:07:45 2014 +0000 @@ -26,7 +26,7 @@ #define ENDPOINT_VERSION_ANNOUNCE "\r\nMBED IMPACT(MQTT) Endpoint v1.0" // Error Handler Log Message Length -#define MAX_LOG_MESSAGE 768 // maximum size of a logging message +#define MAX_LOG_MESSAGE 850 // maximum size of a logging message // Light Configuration #define NUM_LIGHTS 1 // number of lights in this endpoint @@ -52,19 +52,24 @@ // IOC REST Buffer Lengths #define IOC_REST_URL_LEN 128 -#define IOC_RESULT_LEN 768 -#define IOC_PAYLOAD_LEN 768 +#define IOC_RESULT_LEN 850 +#define IOC_PAYLOAD_LEN 850 #define IOC_IOC_ID_LEN 16 // IOC REST URL for Load/Updates #define IOC_USERNAME "anson" #define IOC_PASSWORD "savetheplanet1" -#define IOC_HOST_NAME "193.60.130.112" // "iocweb.bcu.ac.uk" +#define IOC_HOST_NAME "iocweb.bcu.ac.uk" #define IOC_REST_URL "https://%s/ibm/ioc/api/data-injection-service/datablocks/%s/dataitems%s" #define IOC_RESPONSE_TEMPLATE "%s:{ENDPOINT=%s RESOURCE=%s VALUE=%s}:%s" #define IOC_RESPONSE_OK "OK" #define IOC_RESPONSE_FAILED "FAILED" +// TEMP - until we get HTTPS with BasicAuth working in MBED... +#define GW_IPADDRESS "192.168.1.191" +#define GW_REDIRECT_URL "http://%s:8888/NSP-IOC-Gateway/IOCRestAPI" +#define USE_GW_HTTP_REDIRECTOR true // true - make http calls to IOC via GW, false - make http calls directly to IOC + // Resource Configuration #define RESOURCE_NAME_LEN 20 // Resource name max length #define RESOURCE_VALUE_LEN 20 // Resource value max length