Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: list index out of range #58

Open
fencepost-error opened this issue May 16, 2024 · 0 comments
Open

IndexError: list index out of range #58

fencepost-error opened this issue May 16, 2024 · 0 comments

Comments

@fencepost-error
Copy link

When I poll a device the code runs for a minute or two and then starts throwing 'IndexError: list index out of range' errors:

ERROR    Failed to poll modbus device, attempting to reconnect: list index out of range
Traceback (most recent call last):
  File "/home/odroid/.local/lib/python3.10/site-packages/modbus4mqtt/modbus4mqtt.py", line 100, in poll
    self._mb.poll()
  File "/home/odroid/.local/lib/python3.10/site-packages/modbus4mqtt/modbus_interface.py", line 134, in poll
    self._values[table][key] = values[x]
IndexError: list index out of range

I've had a quick look into the code, but see my previous post about lack of familiarity with Python.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant