Kevin Rhyne / Whiffy

Dependencies:   4DGL-uLCD-SE mbed

src/WifiControl.h

Committer:
kevinrhyne
Date:
2015-10-19
Revision:
10:99392075e1d0
Child:
11:419e5d18d42b

File content as of revision 10:99392075e1d0:

#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);