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: EthernetInterface SCP1000 WebSocketClient mbed-rtos mbed
Revision 4:2e051261aef7, committed 2013-02-09
- Comitter:
- kumajoi
- Date:
- Sat Feb 09 20:10:09 2013 +0000
- Parent:
- 3:80228f6bc21a
- Commit message:
- for MakeFaireTokyo2012
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 80228f6bc21a -r 2e051261aef7 main.cpp
--- a/main.cpp Sat Feb 09 18:02:10 2013 +0000
+++ b/main.cpp Sat Feb 09 20:10:09 2013 +0000
@@ -86,7 +86,7 @@
myled = 1;
// If you want, change the ID, Number of digits.
- sprintf (cms,"{\"method\" : \"put\",\"resource\" : \"%s\",\"params\" : {},\"headers\" : {\"X-ApiKey\":\"%s\"},\"body\" :{\"version\" : \"1.0.0\",\"datastreams\" : [{\"id\" : \"0\",\"current_value\" : \"%4.0f\"},{\"id\" : \"1\",\"current_value\" : \"%4.0f\"},{\"id\" : \"2\",\"current_value\" : \"%3.0f\"},{\"id\" : \"3\",\"current_value\" : \"%3.0f\"}]},\"token\" : \"0x%d\"}\r\n",feed,apikey,r_hpa,r_light,r_temp,r_humid,token);
+ sprintf (cms,"{\"method\" : \"put\",\"resource\" : \"%s\",\"params\" : {},\"headers\" : {\"X-ApiKey\":\"%s\"},\"body\" :{\"version\" : \"1.0.0\",\"datastreams\" : [{\"id\" : \"0\",\"current_value\" : \"%4.0f\"},{\"id\" : \"1\",\"current_value\" : \"%3.0f\"},{\"id\" : \"2\",\"current_value\" : \"%3.0f\"},{\"id\" : \"3\",\"current_value\" : \"%4.0f\"}]},\"token\" : \"0x%d\"}\r\n",feed,apikey,r_light,r_temp,r_humid,r_hpa,token);
printf ("%s\r\n",cms);
token++;