Kevin Rhyne / Whiffy

Dependencies:   4DGL-uLCD-SE mbed

src/WifiControl.h

Committer:
kevinrhyne
Date:
2015-10-20
Revision:
14:8d31d304eeb3
Parent:
13:ef68cbcb4e9a

File content as of revision 14:8d31d304eeb3:

#ifndef WIFICONTROL_H
#define WIFICONTROL_H

#include <stdio.h>
#include "mbed.h"
#include <string>

class WifiControl
{
public:
    Serial pc;
    Serial esp;

    WifiControl();
    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();

private:
    Timer t;
    int  count,ended,timeout;

    char buf[1024];
    char snd[255];


};

//Serial pc(USBTX, USBRX);
//Serial esp(p28, p27); // tx, rx
//DigitalOut reset(p26);



#endif