Troubles with locking #24

Closed
opened 2023-03-09 16:12:40 +02:00 by jarno · 1 comment
Owner

When trying to write a holding register, the write function hangs, causing updates to hang as well. Probably due to mistakes in the locking logic.

When trying to write a holding register, the write function hangs, causing updates to hang as well. Probably due to mistakes in the locking logic.
Author
Owner

The issues were caused by some places acquiring the lock before calling a function that also tries to acquire it.
While at it, moved to using only single modbus.Handler and modbus.Client. This also reduced boilerplate code a lot.

The issues were caused by some places acquiring the lock before calling a function that also tries to acquire it. While at it, moved to using only single modbus.Handler and modbus.Client. This also reduced boilerplate code a lot.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jarno/enervent-ctrl#24
No description provided.