A fork of the original interface for OS/2. Features a correctly-implemented recv (but retains the old behavior via recv2).

Dependencies:   BufferedSerial

Dependents:   weather_clock weather_clock

ESP8266Interface.cpp

Committer:
alexhrao
Date:
2019-05-24
Revision:
53:4224de23da9e
Parent:
44:16da10e7b3f7

File content as of revision 53:4224de23da9e:

#include "ESP8266Interface.h"

ESP8266Interface::ESP8266Interface(PinName tx, PinName rx, PinName reset, 
                                   int baud, int timeout) :
        ESP8266(tx, rx, reset, baud, timeout) {
}

bool ESP8266Interface::init() {
    return ESP8266::init();
}

bool ESP8266Interface::connect(const char * ssid, const char * phrase) {
    return ESP8266::connect(ssid, phrase);
}

int ESP8266Interface::disconnect() {
    return ESP8266::disconnect();
}

const char *ESP8266Interface::getIPAddress() {
    return ESP8266::getIPAddress();
}