Skip to content

Cache read values #13

@paller

Description

@paller

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions