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.h
- Revision:
- 14:8d31d304eeb3
- Parent:
- 13:ef68cbcb4e9a
--- a/src/WifiControl.h	Mon Oct 19 22:25:18 2015 +0000
+++ b/src/WifiControl.h	Tue Oct 20 09:10:31 2015 +0000
@@ -3,19 +3,21 @@
 
 #include <stdio.h>
 #include "mbed.h"
+#include <string>
 
 class WifiControl
 {
 public:
-    Serial *pc;
-    Serial *esp;
+    Serial pc;
+    Serial esp;
 
     WifiControl();
-    void pollAP(char *); // Return buffer of access points
+    string pollAP(); // Return buffer of access points
     void getIPMAC();
     void connect(char *, char *); // Connect to SSID with PWD
     void ESPsetbaudrate(); // Set baud rates
     void ESPconfig(); // Setup code
+    void quickConfig();
     void SendCMD(); 
     void getreply();
 
    