From 4e24e2949aed0a1380988264c528d3bde44e5f7e Mon Sep 17 00:00:00 2001 From: Gunnar Skjold Date: Sat, 15 Feb 2020 18:01:10 +0100 Subject: [PATCH] Updated featheresp32 config to use Serial2 for Mbus --- hardware/README.md | 2 +- src/AmsToMqttBridge.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/README.md b/hardware/README.md index b37dcb8e..a191f9e6 100644 --- a/hardware/README.md +++ b/hardware/README.md @@ -27,7 +27,7 @@ You can also use a ESP based development board and combine this with a M-Bus mod - Jump GPIO4 to GND to force AP mode during boot [Adafruit HUZZAH32](https://www.adafruit.com/product/3405) -- M-Bus connected to RX +- M-Bus connected to GPIO16 Combine one of above board with an M-Bus module. Connect 3.3v and GND together between the boards and connect the TX pin from the M-Bus board to the dedicated M-Bus pin on the ESP board. diff --git a/src/AmsToMqttBridge.h b/src/AmsToMqttBridge.h index 111f42bf..61431869 100644 --- a/src/AmsToMqttBridge.h +++ b/src/AmsToMqttBridge.h @@ -51,7 +51,7 @@ SoftwareSerial *hanSerial = new SoftwareSerial(D1); #define LED_ACTIVE_HIGH 1 #define AP_BUTTON_PIN INVALID_BUTTON_PIN -HardwareSerial *hanSerial = &Serial; +HardwareSerial *hanSerial = &Serial2; // Default build settings #else