Skip to content

Commit

Permalink
Reduce cache_timeout to 0.5 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jan 15, 2024
1 parent d29902f commit ed2aac7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### 🚀 New

* Added a cache to the registers with default timeout 1 second.
* Added a cache to the registers with default timeout 0.5 second.
* `Modbus.read_group()` calls `Modbus.get_all()` instead of reading individual registers sequentially. Since during a `status` all groups are read in quick succession, and with caching, this results in much faster status outputs.

### ✨ Improved
Expand Down
2 changes: 1 addition & 1 deletion python/lvmecp/etc/lvmecp.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
modbus:
host: 10.8.38.51
port: 502
cache_timeout: 1
cache_timeout: 0.5
registers:
door_locked:
address: 0
Expand Down

0 comments on commit ed2aac7

Please sign in to comment.