wifisp1
Diff: wifiesp8266.cpp
- Revision:
- 1:227c9c991c1b
- Parent:
- 0:5339903aacbc
diff -r 5339903aacbc -r 227c9c991c1b wifiesp8266.cpp --- a/wifiesp8266.cpp Sun May 23 13:26:59 2021 +0000 +++ b/wifiesp8266.cpp Sun Jun 06 12:19:53 2021 +0000 @@ -1,20 +1,10 @@ #include "mbed.h" #include "wifiesp8266.h" - -/*WifiEsp8266::WifiEsp8266(PinName Txd, PinName Rxd) : RawSerial(Txd,Rxd) +WifiEsp8266::WifiEsp8266(PinName Txd, PinName Rxd) : RawSerial(Txd,Rxd) { baud(Baud); _DataPtr = 0; _DataReady = false; - // attach(this,&WifiEsp8266::receive, RawSerial::RxIrq); -}*/ - -WifiEsp8266::WifiEsp8266(PinName Txd, PinName Rxd, PinName En) : RawSerial(Txd,Rxd), _En(En) -{ - baud(Baud); - _En = 1; - _DataPtr = 0; - _DataReady = false; attach(this,&WifiEsp8266::receive, RawSerial::RxIrq); } char * WifiEsp8266::read(void)