We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80d83c8 commit a21cc9aCopy full SHA for a21cc9a
examples/server_updating.py
@@ -49,14 +49,14 @@ async def updating_task(context):
49
that there is a lrace condition for the update.
50
"""
51
_logger.debug("updating the context")
52
- register = 3
+ fc_as_hex = 3
53
slave_id = 0x00
54
address = 0x10
55
- values = context[slave_id].getValues(register, address, count=5)
+ values = context[slave_id].getValues(fc_as_hex, address, count=5)
56
values = [v + 1 for v in values] # increment by 1.
57
txt = f"new values: {str(values)}"
58
_logger.debug(txt)
59
- context[slave_id].setValues(register, address, values)
+ context[slave_id].setValues(fc_as_hex, address, values)
60
await asyncio.sleep(1)
61
62
0 commit comments