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: 4DGL-uLCD-SE mbed
Diff: src/WifiControl.cpp
- Revision:
- 12:ef988c7fe8a4
- Parent:
- 10:99392075e1d0
- Child:
- 13:ef68cbcb4e9a
--- a/src/WifiControl.cpp Mon Oct 19 20:23:37 2015 +0000 +++ b/src/WifiControl.cpp Mon Oct 19 21:09:22 2015 +0000 @@ -56,6 +56,22 @@ } +char WifiControl::pollAP(){ + + char polledAPs; + + pc->printf("\n---------- Polling APs privately ----------\r\n"); + strcpy(snd, "AT+CWLAP\r\n"); + SendCMD(); + timeout=15; + getreply(); + pc->printf(buf); + polledAPs = *buf; + + return polledAPs; + +} + void WifiControl::ESPsetbaudrate() { strcpy(snd, "AT+CIOBAUD=115200\r\n"); // change the numeric value to the required baudrate