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

A request to change the debounce, counter, etc. returns the original value #122

Open
vytun opened this issue Mar 26, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@vytun
Copy link
Collaborator

vytun commented Mar 26, 2024

When sending a API request to set a debounce, counter, etc., the original value is returned in the API response (tested with WS, REST). This is probably a feature, since the value is already written via Modbus at the time of receiving the API response, but has not yet been read from the device (via Modbus).

Solution: mention this and similar in the documentation in the "Good to know" section.

@kratochvil01
Copy link
Contributor

Evok returns the last read values. The request to set the value is a blocking operation that takes place during modbus writing, but after the writing is finished, reading is not performed immediately. So the status of the device, which Evok returns immediately after writing, is not yet updated.

Evok regularly reads all devices (based on configuration). The updated status can therefore be obtained even after the Evok has read. To check the status change, We recommend using a websocket that sends an event in case of a status change.

@kratochvil01 kratochvil01 added the enhancement New feature or request label Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants