From 8e8f0b48bfb051ab4f4b0c5ebd7a8efacb3c8fa3 Mon Sep 17 00:00:00 2001 From: FYES Labs <80003301+0xALIVEBEEF@users.noreply.github.com> Date: Wed, 17 Aug 2022 19:06:19 -0500 Subject: [PATCH] Update SparkFunESP8266WiFi.cpp Add support for Serial1 --- src/SparkFunESP8266WiFi.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SparkFunESP8266WiFi.cpp b/src/SparkFunESP8266WiFi.cpp index d521550..ee58f42 100644 --- a/src/SparkFunESP8266WiFi.cpp +++ b/src/SparkFunESP8266WiFi.cpp @@ -55,6 +55,11 @@ bool ESP8266Class::begin(unsigned long baudRate, esp8266_serial_port serialPort) Serial.begin(baudRate); _serial = &Serial; } + else if (serialPort == ESP8266_HARDWARE_SERIAL1) + { + Serial1.begin(baudRate); + _serial = &Serial1; + } if (test()) {