olehs / PZEM004T

Arduino communication library for Peacefair PZEM-004T Energy monitor
MIT License
226 stars 114 forks source link

Constructor overload with custom pins for ESP32 #73

Closed vortigont closed 3 years ago

vortigont commented 3 years ago

Allows to use hwserial on a non-default pins with ESP32

vortigont commented 3 years ago

@olehs my bad, a small copy-paste error in my last commit tx and rx must be swapped port->begin(PZEM_BAUD_RATE, SERIAL_8N1, txpin, rxpin);

could you, pls fix it? sorry for the mess

olehs commented 3 years ago

Done. Thx!