now this shit works
Fork of ESP8266NodeMCUInterface by
ESP8266Interface.cpp@44:16da10e7b3f7, 2015-06-03 (annotated)
- Committer:
- geky
- Date:
- Wed Jun 03 21:44:20 2015 +0000
- Revision:
- 44:16da10e7b3f7
- Parent:
- 28:91e65e22e63a
Reimplemented ESP8266 driver using the Nodemcu firmware
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
michaeljkoster | 13:41098c907200 | 1 | #include "ESP8266Interface.h" |
samux | 1:fb4494783863 | 2 | |
geky | 44:16da10e7b3f7 | 3 | ESP8266Interface::ESP8266Interface(PinName tx, PinName rx, PinName reset, |
geky | 44:16da10e7b3f7 | 4 | int baud, int timeout) : |
geky | 44:16da10e7b3f7 | 5 | ESP8266(tx, rx, reset, baud, timeout) { |
samux | 1:fb4494783863 | 6 | } |
samux | 1:fb4494783863 | 7 | |
geky | 44:16da10e7b3f7 | 8 | bool ESP8266Interface::init() { |
geky | 44:16da10e7b3f7 | 9 | return ESP8266::init(); |
samux | 1:fb4494783863 | 10 | } |
samux | 1:fb4494783863 | 11 | |
geky | 44:16da10e7b3f7 | 12 | bool ESP8266Interface::connect(const char * ssid, const char * phrase) { |
geky | 44:16da10e7b3f7 | 13 | return ESP8266::connect(ssid, phrase); |
samux | 1:fb4494783863 | 14 | } |
samux | 1:fb4494783863 | 15 | |
geky | 44:16da10e7b3f7 | 16 | int ESP8266Interface::disconnect() { |
michaeljkoster | 13:41098c907200 | 17 | return ESP8266::disconnect(); |
samux | 1:fb4494783863 | 18 | } |
samux | 1:fb4494783863 | 19 | |
geky | 44:16da10e7b3f7 | 20 | const char *ESP8266Interface::getIPAddress() { |
michaeljkoster | 14:4d1128f72e00 | 21 | return ESP8266::getIPAddress(); |
samux | 1:fb4494783863 | 22 | } |