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: mbed
Diff: main.cpp
- Revision:
- 7:a8cfd049c385
- Parent:
- 6:7c9cc335b762
- Child:
- 8:d8e164130860
--- a/main.cpp Thu Jul 30 06:38:50 2020 +0000 +++ b/main.cpp Thu Jul 30 06:59:39 2020 +0000 @@ -150,6 +150,7 @@ strcat(webbuff, "</button></td><td></td></tr><tr><td>"); strcat(webbuff, "<button id='leftbtn' type='button' style='width:100px;height:60px' value=\"LEFT\" onClick='send_mes(this.id,this.value)' >LEFT"); strcat(webbuff, "</button></td><td>"); +/* strcat(webbuff, "<button id='stopbtn' type='button' style='width:100px;height:60px' value=\"STOP\" onClick='send_mes(this.id,this.value)' >STOP"); strcat(webbuff, "</button></td><td>"); strcat(webbuff, "<button id='rightbtn' type='button' style='width:100px;height:60px' value=\"RIGHT\" onClick='send_mes(this.id,this.value)' >RIGHT"); @@ -157,7 +158,7 @@ strcat(webbuff, "<button id='backbtn' type='button' style='width:100px;height:60px' value=\"BACK\" onClick='send_mes(this.id,this.value)' >BACK"); strcat(webbuff, "</button></td><td style='vertical-align:top; text-align:right;'></td></tr></table>"); -/* + //begin strcat(webbuff, "<strong>Addition functions:</strong><table>"); @@ -212,18 +213,18 @@ strcat(webbuff, "document.getElementById(\"funprint\").innerHTML=btnval;"); strcat(webbuff, "}"); strcat(webbuff, "}"); -strcat(webbuff, "</script>+++"); +strcat(webbuff, "</script>"); // end of WEB page data bufl = strlen(webbuff); // get total page buffer length //sprintf(cmdbuff,"AT+CIPSEND=%d,%d\r\n", linkID, bufl); // send IPD link channel and buffer character length. - sprintf(cmdbuff,"AT+CIPSENDBUF=%d,%d\r\n", linkID, 1500); // send IPD link channel and buffer character length. + sprintf(cmdbuff,"AT+CIPSENDBUF=%d,%d\r\n", linkID, bufl); // send IPD link channel and buffer character length. timeout=500; getcount=40; SendCMD(); getreply(); pc.printf(replybuff); - pc.printf("\n++++++++++ AT+CIPSENDBUF=%d,%d+++++++++\r\n", linkID, 1500); + pc.printf("\n++++++++++ AT+CIPSENDBUF=%d,%d+++++++++\r\n", linkID, 2048); pc.printf("\n++++++++++ bufl is %d ++++++++++\r\n",bufl); @@ -241,8 +242,8 @@ if(esp.writeable()) { while(webbuff[i]!='\0') { esp.putc(webbuff[i]); - - //**** + /* + //**** //output at command when 2000 if(i==1499){ wait_ms(10); @@ -256,7 +257,7 @@ pc.printf("\r\n+++++++++++++++++++\r\n"); } - + */ //**** i++; pc.printf("%c",webbuff[i]);