for orginal PCB
Dependencies: EthernetInterface SCP1000 WebSocketClient mbed-rtos mbed
Fork of ku-make_sensor201302 by
Revision 5:8d05d8d98218, committed 2013-02-09
- Comitter:
- kumajoi
- Date:
- Sat Feb 09 20:14:20 2013 +0000
- Parent:
- 4:99410a172710
- Commit message:
- for orginal PCB
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 99410a172710 -r 8d05d8d98218 main.cpp --- a/main.cpp Sat Feb 09 18:15:18 2013 +0000 +++ b/main.cpp Sat Feb 09 20:14:20 2013 +0000 @@ -49,7 +49,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++;