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: RemoteIR TextLCD
Revision 25:8ed98982faa7, committed 2020-08-05
- Comitter:
- nishimura_taku_pet
- Date:
- Wed Aug 05 07:48:24 2020 +0000
- Parent:
- 24:9481c8f56a49
- Child:
- 26:0badbc9f9cb3
- Commit message:
- change wait
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Aug 05 07:42:57 2020 +0000
+++ b/main.cpp Wed Aug 05 07:48:24 2020 +0000
@@ -1125,14 +1125,14 @@
SendCMD();
getreply();
pc.printf(replybuff);
- wait(1);
+ ThisThread::sleep_for(1000);
sprintf(cmdbuff,"AT+CIPSTO=%d\r\n",SERVtimeout);
timeout=500;
getcount=50;
SendCMD();
getreply();
pc.printf(replybuff);
- wait(5);
+ ThisThread::sleep_for(5000);
pc.printf("\n Getting Server IP \r\n");
strcpy(cmdbuff, "AT+CIFSR\r\n");
timeout=2500;
@@ -1167,7 +1167,7 @@
led2=!led2;
led3=!led3;
led4=!led4;
- wait(1);
+ ThisThread::sleep_for(1000);
}
}
time2.reset();