Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: WNCInterface_M2Xdemo ATT_WNCInterface_Info WNCInterface_HTTP_example Public_IoT_M2X_Cellular_Demo
Fork of M2XStreamClient by
Diff: M2XStreamClient_template.h
- Revision:
- 15:2610823f7f2e
- Parent:
- 14:205076b587fe
- Child:
- 19:4dfa28d37b8f
--- a/M2XStreamClient_template.h Sun Jan 04 05:26:33 2015 +0000
+++ b/M2XStreamClient_template.h Mon Apr 27 15:40:13 2015 +0000
@@ -10,11 +10,11 @@
if (_client->connect(_host, _port)) {
DBGLN("%s", "Connected to M2X server!");
writePutHeader(deviceId, streamName,
- // for {"value": and }
- _null_print.print(value) + 10);
- _client->print("{\"value\":");
+ // for {"value":" and "}
+ _null_print.print(value) + 12);
+ _client->print("{\"value\":\"");
_client->print(value);
- _client->print("}");
+ _client->print("\"}");
} else {
DBGLN("%s", "ERROR: Cannot connect to M2X server!");
return E_NOCONNECTION;
