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.
Diff: EDUVANCE_WIFI_SHIELD.cpp
- Revision:
- 2:d5c9337fdce1
- Parent:
- 1:52cad7057640
- Child:
- 3:a0b26799134f
--- a/EDUVANCE_WIFI_SHIELD.cpp Sat May 28 15:18:17 2016 +0000 +++ b/EDUVANCE_WIFI_SHIELD.cpp Sat May 28 15:46:20 2016 +0000 @@ -136,7 +136,8 @@ webcounter++; sprintf(webcount, "%d",webcounter); - newcre(webdata); + if (strstr(webdata, "ssid") != NULL) { + newcre(webdata); } } else { memset(webbuff, '\0', sizeof(webbuff)); @@ -466,11 +467,13 @@ pc.printf("\n\n HTTP Packet: \n\n%s\n", webdata); pc.printf(" Web Characters sent : %d\n\n", bufl); pc.printf(" -------------------------------------\n\n"); + //strcpy(lasthit, timebuf); servreq=0; - } + } + } @@ -506,11 +509,12 @@ pass_temp=getname(pass_l," ",1); pc.printf( "\n\r new ssid is %s\n", ssid_temp ); pc.printf( "\n\r new password is %s\n", pass_temp ); + if(strlen(ssid_temp)>4 && strlen(pass_temp)>4){ get_ssid_pass(ssid_temp,pass_temp,8266); // wait(5); closeserver_AT(); modeselector=10; StationConfig(); request_fetch_station(); - + } } \ No newline at end of file