mqtt specific components for the impact mbed endpoint library
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_mqtt_endpoint_nxp
Diff: MQTTDefinitions.h
- Revision:
- 45:974cd0fba897
- Parent:
- 35:30b5f17896c6
- Child:
- 46:32a7545dde45
diff -r 2740794b059a -r 974cd0fba897 MQTTDefinitions.h --- a/MQTTDefinitions.h Tue Jul 01 19:28:02 2014 +0000 +++ b/MQTTDefinitions.h Tue Jul 01 20:59:35 2014 +0000 @@ -26,8 +26,13 @@ #define GW_IPADDRESS "192.168.1.220" // gateway IP address (default) #define USE_GW_HTTP_REDIRECTOR true // true - make http calls to IOC via GW, false - make http calls directly to IOC +#ifdef CELLULAR_NETWORK +// Gateway REST API URL (external) +#define GW_REDIRECT_URL "http://%s:15479/NSP-IOC-Gateway/IOCRestAPI" +#else // Gateway REST API URL #define GW_REDIRECT_URL "http://%s:8888/NSP-IOC-Gateway/IOCRestAPI" +#endif // Preference File Configuration #define PREFERENCES_FILE "/local/mqtt.cfg" // preferences file for endpoint