mqtt specific components for the impact mbed endpoint library

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_mqtt_endpoint_nxp

Revision:
46:32a7545dde45
Parent:
45:974cd0fba897
Child:
54:5beaf9ba8f6a
--- a/MQTTDefinitions.h	Tue Jul 01 20:59:35 2014 +0000
+++ b/MQTTDefinitions.h	Tue Jul 01 21:26:40 2014 +0000
@@ -24,15 +24,11 @@
 
 // Until we get HTTPS with BasicAuth working in MBED...
 #define GW_IPADDRESS                "192.168.1.220"                 // gateway IP address (default)
+#define GW_PORT                     "8888"                          // gateway port (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
+#define GW_REDIRECT_URL             "http://%s:%s/NSP-IOC-Gateway/IOCRestAPI"
 
 // Preference File Configuration
 #define PREFERENCES_FILE            "/local/mqtt.cfg"               // preferences file for endpoint