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: ESP8266/ESP8266.cpp
- Revision:
- 14:4d1128f72e00
- Parent:
- 13:41098c907200
- Child:
- 15:37a7a56a424f
diff -r 41098c907200 -r 4d1128f72e00 ESP8266/ESP8266.cpp --- a/ESP8266/ESP8266.cpp Sun Nov 30 21:14:09 2014 +0000 +++ b/ESP8266/ESP8266.cpp Sun Nov 30 21:37:16 2014 +0000 @@ -137,6 +137,10 @@ return true; } +char* ESP8266::getIPAddress() +{ + return ipString; +} void ESP8266::reset() { @@ -169,7 +173,7 @@ char ESP8266::getc() { - char c; + char c=0; while (!buf_ESP8266.available()); buf_ESP8266.dequeue(&c); return c;