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:
36:23a1b2dde4d9
Parent:
11:9ae0fe4517c1
Child:
37:4964678adb8b
--- a/IOCEndpoint.cpp	Fri Apr 11 17:14:51 2014 +0000
+++ b/IOCEndpoint.cpp	Sat Apr 12 06:34:39 2014 +0000
@@ -62,6 +62,10 @@
                  else {
                      // IOC expects "Point(X,Y)" for LOCATION
                      sprintf(tmp, "\"%s\":\"Point(%s)\",",name,value); 
+                     
+                     // remove any commas
+                     int len = strlen(tmp);
+                     for(int i=0;i<len;++i) if(tmp[i] == ',') tmp[i] = ' ';
                  }   
                  strcat(data,tmp);