MBED MQTT Lighting Endpoint for NXP LPC1768+AppBoard
Dependencies: C12832_lcd EthernetInterface StatusReporter LM75B MQTT-ansond endpoint_core endpoint_mqtt mbed-rtos mbed
Diff: Definitions.h
- Revision:
- 132:563a1ee99efc
- Parent:
- 131:27f29e230bbb
- Child:
- 134:e2dd9d85f991
--- a/Definitions.h Sun Mar 16 22:38:55 2014 +0000 +++ b/Definitions.h Mon Mar 17 02:40:14 2014 +0000 @@ -111,13 +111,14 @@ #define MQTT_MAXID_VALUE 99 // IOC MQTT Endpoint ID maximum integer value #define MQTT_ENDPOINT_IDLEN 64 // IOC MQTT Endpoint ID length (max) #define MQTT_IOC_TOPIC "ARM/sensinode/control/%s" // IOC MQTT Topic +#define MQTT_PING_SEND_TOPIC "ARM/sensinode/ping" // IOC MQTT Ping Send Topic #define MQTT_IOC_ALL_ENDPOINT "all" // must be the same as the last element of MATT_IOC_ANNOUNCE_TOPIC #define MQTT_IOC_TOPIC_LEN 64 // max length for the topic string #define MQTT_PAYLOAD_SEGMENT_LEN 64 // max length for a segment of the payload #define MQTT_USERNAME "" // IOC MQTT Username #define MQTT_PASSWORD "" // IOC MQTT Password #define MQTT_PING_VERB_LEN 10 // Ping or Pong -#define MQTT_PING_COUNTDOWN 120 // every 1200 250ms iterations (5 minutes) +#define MQTT_PING_COUNTDOWN 1200 // Send ping to GW every 1200'th 250ms iterations (5 minutes) #define MQTT_MAX_COUNTER 32768 // largest Ping counter before reset back to 1 #endif // _DEFINITIONS_H \ No newline at end of file