A fork of the original interface for OS/2. Features a correctly-implemented recv (but retains the old behavior via recv2).
Dependents: weather_clock weather_clock
Diff: ESP8266Interface.cpp
- Revision:
- 44:16da10e7b3f7
- Parent:
- 28:91e65e22e63a
diff -r 22d30e936e4c -r 16da10e7b3f7 ESP8266Interface.cpp --- a/ESP8266Interface.cpp Fri May 01 18:29:38 2015 +0000 +++ b/ESP8266Interface.cpp Wed Jun 03 21:44:20 2015 +0000 @@ -1,28 +1,22 @@ #include "ESP8266Interface.h" -ESP8266Interface::ESP8266Interface( PinName tx, PinName rx, PinName reset, - const char * ssid, const char * phrase, uint32_t baud ) : - ESP8266(tx, rx, reset, ssid, phrase, baud ) -{ +ESP8266Interface::ESP8266Interface(PinName tx, PinName rx, PinName reset, + int baud, int timeout) : + ESP8266(tx, rx, reset, baud, timeout) { } -int ESP8266Interface::init() -{ - ESP8266::reset(); - return 0; +bool ESP8266Interface::init() { + return ESP8266::init(); } -bool ESP8266Interface::connect() -{ - return ESP8266::connect(); +bool ESP8266Interface::connect(const char * ssid, const char * phrase) { + return ESP8266::connect(ssid, phrase); } -int ESP8266Interface::disconnect() -{ +int ESP8266Interface::disconnect() { return ESP8266::disconnect(); } -char * ESP8266Interface::getIPAddress() -{ +const char *ESP8266Interface::getIPAddress() { return ESP8266::getIPAddress(); } \ No newline at end of file