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: main.cpp
- Revision:
- 3:a0b26799134f
- Parent:
- 2:d5c9337fdce1
--- a/main.cpp Sat May 28 15:46:20 2016 +0000 +++ b/main.cpp Sun May 29 22:16:29 2016 +0000 @@ -30,24 +30,24 @@ setbaudrate(115200); //SEND THE SSID, PASSWORD AND USER DEFINED PORT ADDRESS TO THE LIBRARY - get_ssid_pass(ssid_main,pwd_main,port_main); - + //get_ssid_pass(ssid_main,pwd_main,port_main); + verifyssid(); /* START SERVER THE FUNCTION RETURNS THE VALUE 10 IF THE ABOVE GIVEN SSID IS ACTIVE NEARBY OR ELSE IT RETURNS 20. */ - modeselector=startserver(); + - if(modeselector==10){ +// if(modeselector==10){ //CONFIGUR IN STATION MODE AND GET A VALID IP ADDRESS FROM SERVER - StationConfig(); - } - else if(modeselector==20){ +// StationConfig(); +// } +// else if(modeselector==20){ //CONFIGUR IN AP MODE AND GENERATE A WIFI ACCESS POINT (HOTSPOT) WITH VALID IP ADDRESS - ApConfig(); +// ApConfig(); - } +// } //DO THIS OPERATION CONTINUOUSLY while(1){