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:
- 10:99392075e1d0
- Child:
- 11:419e5d18d42b
diff -r e4c96e7f52d0 -r 99392075e1d0 src/WifiControl.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/WifiControl.h	Mon Oct 19 19:57:15 2015 +0000
@@ -0,0 +1,31 @@
+#include <stdio.h>
+#include "mbed.h"
+
+class WifiControl {
+    public:
+        Serial *pc; 
+        Serial *esp;
+    
+        WifiControl();
+        void wifiGo();
+        void ESPsetbaudrate();
+        void ESPconfig();
+        void SendCMD();
+        void getreply();
+        
+    private:
+        Timer t;
+        int  count,ended,timeout;
+        
+        char buf[1024];
+        char snd[255];
+ 
+        char ssid[32];     // enter WiFi router ssid inside the quotes
+        char pwd [32]; // enter WiFi router password inside the quotes
+        
+        
+};
+
+//Serial pc(USBTX, USBRX);
+//Serial esp(p28, p27); // tx, rx
+//DigitalOut reset(p26);
\ No newline at end of file
    