This pull request adds the option to specify an update interval per request.
For instance, consider the following request definition. This definition will update the register range 0x0584 - 0x0589 no earlier than every 60 seconds, even if MIN_TIME_BETWEEN_UPDATES is set to 15 seconds.
This allows for finer control. For example, we could query the current home power consumption every 15 seconds while we query the daily generated solar power only once every 120 seconds.
However, the MIN_TIME_BETWEEN_UPDATES setting specifies the absolute minimum. If MIN_TIME_BETWEEN_UPDATES is set to 15 seconds, the interval setting will have no effect if it is less or equal to 15 seconds. Furthermore, if the interval for a range is set to 20 and MIN_TIME_BETWEEN_UPDATES to 15 seconds, the range might only be updated after 30 seconds (or a multiple of MIN_TIME_BETWEEN_UPDATES)
This pull request adds the option to specify an update interval per request.
For instance, consider the following request definition. This definition will update the register range 0x0584 - 0x0589 no earlier than every 60 seconds, even if
MIN_TIME_BETWEEN_UPDATES
is set to 15 seconds.This allows for finer control. For example, we could query the current home power consumption every 15 seconds while we query the daily generated solar power only once every 120 seconds.
However, the
MIN_TIME_BETWEEN_UPDATES
setting specifies the absolute minimum. IfMIN_TIME_BETWEEN_UPDATES
is set to 15 seconds, theinterval
setting will have no effect if it is less or equal to 15 seconds. Furthermore, if theinterval
for a range is set to 20 andMIN_TIME_BETWEEN_UPDATES
to 15 seconds, the range might only be updated after 30 seconds (or a multiple ofMIN_TIME_BETWEEN_UPDATES
)