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.
Fork of thingspeak_LEDCONTROL by
Revision 5:d0819505c82a, committed 2018-07-05
- Comitter:
- mrbhatter
- Date:
- Thu Jul 05 05:00:53 2018 +0000
- Parent:
- 3:1722a03793c6
- Commit message:
- LED Control using Thingspeak and ESP+ARM
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue May 22 05:02:54 2018 +0000 +++ b/main.cpp Thu Jul 05 05:00:53 2018 +0000 @@ -91,7 +91,7 @@ wait(1); //create link - sprintf(http_cmd,"/channels/501352/fields/1.json?api_key=%s&results=2",Update_Key); // Forms the url for transmitting to thingspeak server. the format can be seen on thingspeak site as well + sprintf(http_cmd,"/channels/501352/fields/1.json&2.json?api_key=%s&results=2",Update_Key); // Forms the url for transmitting to thingspeak server. the format can be seen on thingspeak site as well pc.printf(http_cmd); pc.printf("******** Sending URL to wifi ********\r\n"); @@ -117,7 +117,7 @@ ledstatus=int(resp[length-13]); pc.printf("LED Status is %c\r\n",resp[length-13]); pc.printf("LED status is %d\r\n",ledstatus); - if(resp[length-13]==49){ + if(resp[length-13]==53){ pc.printf("LED ON"); rled=0; }