dxoverdy / Alpha2MQTT

A smart home interface for AlphaESS solar and battery inverters.
GNU General Public License v3.0
41 stars 6 forks source link

ESP32 UART Issue #24

Closed DannyBoy-PI closed 2 months ago

DannyBoy-PI commented 2 months ago

Just an FYI - The code for ESP32 has been updated (See link: https://github.com/espressif/arduino-esp32/issues/9500)

This causes the UART (hardware serial 2 to fail !)

Workaround is to change the following line in RS485Handler.cpp (line 33) until they fix it:

FROM: _RS485Serial->begin(DEFAULT_BAUD_RATE, SERIAL_8N1);

TO: _RS485Serial->begin(DEFAULT_BAUD_RATE, SERIAL_8N1, 16, 17);

This gave me a two hour headache to find the cause after updating the Alpha2MQTT software.....

Dan M.

dxoverdy commented 2 months ago

Thanks for the tip, it is a harmless amendment anyway so I will include it.