Kevin Rhyne / Whiffy

Dependencies:   4DGL-uLCD-SE mbed

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