There's no need to probe the controller for a value that has just been read as we can easily cache it.
Scenario:
Some application reads a given temperature at 3 Hz. The thermostat only makes an update every 30 seconds or every 2 minutes, so there's little gained with the fast polling.
Solution:
For read-only values we should cache it and only request an update from the controller over serial if the cached value is too old.
There's no need to probe the controller for a value that has just been read as we can easily cache it.
Scenario: Some application reads a given temperature at 3 Hz. The thermostat only makes an update every 30 seconds or every 2 minutes, so there's little gained with the fast polling.
Solution: For read-only values we should cache it and only request an update from the controller over serial if the cached value is too old.