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:
- 8:d8e164130860
- Parent:
- 7:a8cfd049c385
- Child:
- 9:e458213a7afd
--- a/main.cpp Thu Jul 30 06:59:39 2020 +0000 +++ b/main.cpp Thu Jul 30 07:11:33 2020 +0000 @@ -150,7 +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"); @@ -185,7 +185,7 @@ strcat(webbuff, "</td>"); strcat(webbuff, "</table>"); //end -*/ + strcat(webbuff, "</center>"); strcat(webbuff, "</body>"); @@ -218,13 +218,13 @@ 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, 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. timeout=500; getcount=40; SendCMD(); getreply(); pc.printf(replybuff); - pc.printf("\n++++++++++ AT+CIPSENDBUF=%d,%d+++++++++\r\n", linkID, 2048); + pc.printf("\n++++++++++ AT+CIPSENDBUF=%d,%d+++++++++\r\n", linkID, 1500); pc.printf("\n++++++++++ bufl is %d ++++++++++\r\n",bufl); @@ -242,13 +242,13 @@ if(esp.writeable()) { while(webbuff[i]!='\0') { esp.putc(webbuff[i]); - /* + //**** //output at command when 2000 if(i==1499){ wait_ms(10); - sprintf(cmdbuff,"AT+CIPSENDBUF=%d,%d\r\n", linkID, 1500); // send IPD link channel and buffer character length. - pc.printf("\r\n++++++++++ AT+CIPSENDBUF=%d,%d ++++++++++\r\n", linkID, 1500); + sprintf(cmdbuff,"AT+CIPSENDBUF=%d,%d\r\n", linkID, bufl-1500); // send IPD link channel and buffer character length. + pc.printf("\r\n++++++++++ AT+CIPSENDBUF=%d,%d ++++++++++\r\n", linkID, bufl-1500); timeout=600; getcount=50; SendCMD(); @@ -257,7 +257,7 @@ pc.printf("\r\n+++++++++++++++++++\r\n"); } - */ + //**** i++; pc.printf("%c",webbuff[i]);