evok
evok copied to clipboard
A request to change the debounce, counter, etc. returns the original value
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.
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.