1

I wan't to use modbus library in pico. First of all, I just try ModbusTCP then ModbusSerial. I am trying to use this https://github.com/techbase123/micropython-modbus github source.

When I run the uModBusTcp.py after add other modules, there is an error like " ImportError: no module named 'socket' " in thonny.

What should I do ? I didn't find to install socket module.

Is there any suggesstion about it ? What should I try ?

2
  • 1
    But uModBus is for ESP32 only.
    – tlfong01
    Apr 6 at 14:21
  • 1
    Thanks for your answer, I realize that pi pico has no wi-fi. So, I just use modbusRTU with pi pico.
    – noobinmath
    Apr 6 at 21:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.