You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm failing to create a ModbusRTU object on a blackpill device. See below for a minimal working example.
I would be more than happy to get some advice what's wrong here.
Reproduction steps
Include umodbus as extmod within micropython
Load it (working flawlessly)
Try to execute the code below
...
MicroPython version
v.1.24.0
MicroPython board
other
MicroPython Modbus version
# e.g. v2.3.3# use the following command to get the used versionimportosfromumodbusimportversionprint('MicroPython infos:', os.uname())
print('Used micropthon-modbus version:', version.__version__))
MicroPythoninfos: (sysname='pyboard', nodename='pyboard', release='1.24.0-preview', version='v1.24.0-preview.100.g358e501e7.dirty on 2024-07-16', machine='WeAct_Core with STM32F411CE')
Usedmicropthon-modbusversion: 2.3.7
Relevant log output
>>> ModbusRTU(addr=1, pins=(MODBUS_TX_PIN, MODBUS_RX_PIN))
Traceback (most recent call last):
File "<stdin>", line 1, in<module>
File "umodbus/serial.py", line 1, in __init__
File "umodbus/serial.py", line 1, in __init__
Description
I'm failing to create a ModbusRTU object on a blackpill device. See below for a minimal working example.
I would be more than happy to get some advice what's wrong here.
Reproduction steps
...
MicroPython version
v.1.24.0
MicroPython board
other
MicroPython Modbus version
Relevant log output
User code
Additional informations
No response
The text was updated successfully, but these errors were encountered: