ARM mbed M2X API Client: The ARM mbed client library is used to send/receive data to/from AT&T's M2X service from mbed LPC1768 microcontrollers.
Dependents: m2x-demo-all M2X_MTS_ACCEL_DEMO M2X_MTS_Accel M2X_K64F_ACCEL ... more
Diff: M2XStreamClient_template.h
- Revision:
- 1:4d7109bae9cf
- Parent:
- 0:f479e4f4db0e
--- a/M2XStreamClient_template.h Wed Feb 12 19:43:34 2014 +0000 +++ b/M2XStreamClient_template.h Wed Aug 13 02:02:21 2014 +0000 @@ -34,13 +34,9 @@ bytes += print->print(names[i]); bytes += print->print("\":["); for (int j = 0; j < counts[i]; j++) { - bytes += print->print("{"); - if (ats && ats[value_index]) { - bytes += print->print("\"at\": \""); - bytes += print->print(ats[value_index]); - bytes += print->print("\","); - } - bytes += print->print("\"value\": \""); + bytes += print->print("{\"at\": \""); + bytes += print->print(ats[value_index]); + bytes += print->print("\", \"value\": \""); bytes += print->print(values[value_index]); bytes += print->print("\"}"); if (j < counts[i] - 1) { bytes += print->print(","); }