gysmo38 / mitsubishi2MQTT

Mitsubishi to MQTT with ESP8266 module
GNU Lesser General Public License v2.1
413 stars 141 forks source link

Feature Request: Selectable Serial IO Pins #220

Open balu- opened 1 year ago

balu- commented 1 year ago

Would it be possible to enable a selection of the serial interface/pins which is used?

Background: I'm using an esp32 which has 3 Serial interfaces, i soldered the pins so that uart2 (Pin 16 and 17) is connected to the heatpump. Therefor it would be great if possible to select that this pins are used.

As a workaround I forked modified the hp.connect(&Serial) call to hp.connect(&Serial,PIN_RX,PIN_TX); in mitsubishi2mqtt.ino but thats not very sustainable.

Paddler21 commented 1 year ago

Wouldn't this as well solve the problem with RX pullup on the newer D1 mini clones? https://electronics.stackexchange.com/questions/644753/how-to-bypass-strong-pullup-on-rx-pin-of-wemos-d1-mini-esp8266-to-communicate

dzungpv commented 1 year ago

@balu- you can assign any of 3 port available on ESP32, check my fork here: https://github.com/dzungpv/mitsubishi2MQTT/commit/55b17905fc24eb43c9da6d5a72cd93e20210eadd