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
Fork of Client_Code_Rangefinder by
Diff: main.cpp
- Revision:
- 8:f277f86f75bb
- Parent:
- 7:1119c6781d17
diff -r 1119c6781d17 -r f277f86f75bb main.cpp --- a/main.cpp Fri Jun 10 09:51:57 2016 +0000 +++ b/main.cpp Fri Jun 10 10:37:56 2016 +0000 @@ -238,13 +238,13 @@ case 9: { resp=OKResponse(buffer,"OK"); if (resp!=NULL) { INFO("Ready"); - wait(2); + wait(0.2); char buf[32]; range = obstruction_finder(); - sprintf(buf,"Range=%04d\r\n",range); + sprintf(buf,"OB=%01d\r\n",range); //dev.printf("AT+CIPSERVER= 1,6060"); dev.printf("AT+CIPSEND=0,%d\r\n",strlen(buf)); //10 = length of string being sent - wait(2); + wait(0.2); dev.printf("%s",buf); //10 = length of string being sent //range=(range++)%6000;