techbase123 / micropython-modbus

Modbus Master library for MicroPython ESP32 devices. Based on pycom-modbus from pycom
https://www.instructables.com/id/ESP32-Modbus-Master-TCP/
GNU General Public License v3.0
72 stars 27 forks source link

AttributeError: 'UART' object has no attribute 'wait_tx_done' #4

Open untitledlt opened 4 years ago

untitledlt commented 4 years ago

Looks like micropython UART does not have wait_tx_done but it's used in https://github.com/techbase123/micropython-modbus/blob/master/uModBusSerial.py#L98

ThomasRgbg commented 3 years ago

I'm trying to do this instead with some timing calculations. See https://github.com/ThomasRgbg/esp8266-pichler/blob/83379d6ef57f6f5afdd2535a2cbf9ca922b5c4ae/uModBusSerial.py#L106 Maybe not most elegant and might need a bit of calibration with the scope. But at least works for my Modbus RTU devices.