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.
Dependencies: EthernetInterfacePlusHostname NTPClient Onewire RdWebServer SDFileSystem-RTOS mbed-rtos mbed-src
Diff: main.cpp
- Revision:
- 3:9f00be404f8f
- Parent:
- 2:6bfef0839102
- Child:
- 4:0d3a207680b0
--- a/main.cpp Fri Nov 07 16:09:15 2014 +0000
+++ b/main.cpp Fri Nov 07 20:28:48 2014 +0000
@@ -59,7 +59,7 @@
{
gasCount++;
char outBuf[200];
- sprintf(outBuf, "[{\"n\":\"gasCount\",\"v\":%d},{\"n\":\"gasInterPulse\",\"v\":%d,\"u\":\"ms\"}]",
+ sprintf(outBuf, "{\"e\":[{\"n\":\"gasCount\",\"v\":%d},{\"n\":\"gasInterPulse\",\"v\":%d,\"u\":\"ms\"}]}",
gasCount, pulsePin.GetLastCycleTimeMs());
int bytesToSend = strlen(outBuf);
int rslt = sendSocket.sendTo(broadcast, outBuf, bytesToSend);