有人能帮助我使用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