42ity / fty-sensor-gpio

Agent to manage GPIO sensors and devices
Other
0 stars 9 forks source link

Problem: Agent fty-sensor-gpio needs a state file. #47

Closed jana-rapava closed 6 years ago

jana-rapava commented 6 years ago

Solution: Implement a zhashx cache containing <asset_name, {gpo_number, default_state, last_action}>. On exit, store the cache into file. On ASSET message, check whether the asset is GPO and update cache accordingly. On GPO_INTERACTION command, update the last action. On start, load the cache from the state file.

Signed-off-by: Jana Rapava janarapava@eaton.com