Пробуем Stream для Esp32

This commit is contained in:
2023-11-17 00:18:23 +03:00
parent 96b982082a
commit f2738c6e3d
4 changed files with 12 additions and 6 deletions

View File

@@ -9,7 +9,7 @@
#ifdef ESP8266
SoftwareSerial* myUART = nullptr;
#else
HardwareSerial* myUART = nullptr;
Stream* myUART = nullptr;
#endif
class IoTmUART : public IoTUart {

View File

@@ -5,5 +5,5 @@
extern SoftwareSerial* myUART;
#else
#include <HardwareSerial.h>
extern HardwareSerial* myUART;
extern Stream* myUART;
#endif