thin-edge / thin-edge.io

The open edge framework for lightweight IoT devices
https://thin-edge.io
Apache License 2.0
221 stars 54 forks source link

c8y-configuration-plugin to detect local updates to its config file / Focus on our inotify library #1173

Closed albinsuresh closed 2 years ago

albinsuresh commented 2 years ago

When the c8y-configuration-plugin.toml file is updated locally from the device, the plugin doesn't reload its contents as done by the c8y-log-plugin. The same file watcher mechanism implemented for c8y-log-plugin must be implemented for the c8y-configuration-plugin as well. Whenever the config file is updated, either locally or via cloud, the updated list of config types must be sent to Cumulocity via the SmartREST 119 message.

rina23q commented 2 years ago

Don't do only copy-and-paste. The code where will be duplicate must be addressed as library so that we can avoid code duplication.

rina23q commented 2 years ago

We decided to split down this issue.