Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/server_updating.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ async def updating_task(context):
that there is a lrace condition for the update.
"""
_logger.debug("updating the context")
register = 3
fc_as_hex = 3
slave_id = 0x00
address = 0x10
values = context[slave_id].getValues(register, address, count=5)
values = context[slave_id].getValues(fc_as_hex, address, count=5)
values = [v + 1 for v in values] # increment by 1.
txt = f"new values: {str(values)}"
_logger.debug(txt)
context[slave_id].setValues(register, address, values)
context[slave_id].setValues(fc_as_hex, address, values)
await asyncio.sleep(1)


Expand Down