Pymodbus功能崩溃

时间:2020-03-24 22:03:09

标签: python crash pymodbus

有人能帮助我使用pymodbus吗??? 当我多次调用此函数时,它崩溃并表示ModbusIOException'对象没有属性'registers'

def status():

 client = ModbusClient('my ip lol')
 result = client.read_input_registers(100)
 resultlol = str(result.registers)
 parsingisboring = resultlol.replace("[", "")
 final = parsingisboring.replace("]", "")
 return final

0 个答案:

没有答案