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 ThingCloud by
Revision 2:83619d7dd911, committed 2016-07-27
- Comitter:
- gert_lauritsen
- Date:
- Wed Jul 27 21:48:13 2016 +0000
- Parent:
- 1:6f2f82b98d1f
- Commit message:
- Rettet for bug
Changed in this revision
thingspeak.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6f2f82b98d1f -r 83619d7dd911 thingspeak.cpp --- a/thingspeak.cpp Mon Jul 11 20:38:55 2016 +0000 +++ b/thingspeak.cpp Wed Jul 27 21:48:13 2016 +0000 @@ -43,7 +43,7 @@ TCPSocketConnection ThingSock; flagTCP=0; - char strPOST[195+MessSize]; + char strPOST[500]; sprintf( strPOST, "POST /update HTTP/1.1\r\nHost: api.thingspeak.com\r\nConnection: close\r\nX-THINGSPEAKAPIKEY: %s\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: %d\r\n\r\n%s", apikey, MessSize, data); //printf("%s\r\n",strPOST); while(flagTCP==FALSE) @@ -70,7 +70,7 @@ char buf[256]; int n = ThingSock.receive(buf, 256); buf[n] = '\0'; -// printf("Received message from server: '%s'\n", buf); + // printf("Received message from server: '%s'\n", buf); ThingSock.close(); flagTCPisCON=FALSE; if (strstr(buf,"HTTP/1.1 200 OK")) Error=0; else Error=1;