JAndrassy / WiFiEspAT

Arduino networking library. Standard Arduino WiFi networking API over ESP8266 or ESP32 AT commands.
GNU Lesser General Public License v2.1
288 stars 44 forks source link

'Stream' has not been declared #7

Closed stepanurban closed 4 years ago

stepanurban commented 4 years ago

Hi, I'm getting following error when trying to compile ScanNetworksAdvanced example for Arduino nano 33 /home/.../Arduino/libraries/WiFiEspAT/src/utility/EspAtDrvTypes.h:61:30: error: 'Stream' has not been declared virtual uint8_t readRxData(Stream* serial, size_t len) = 0;

Where is the problem? How to get it? Thank you

JAndrassy commented 4 years ago

Nano 33 BLE? Sorry I didn't test the last commit with it. The 'mbed' package is a little different. add #include <Arduino.h> at the beginning of WiFiEspAT/src/WiFiEspAtBuffStream.cpp. then it compiles https://github.com/jandrassy/WiFiEspAT/commit/8220277c858175fcca5ef2b590d81fff0daa4847