Fixed
Details
Details
Assignee
Romain Forlot
Romain ForlotReporter
Romain Forlot
Romain ForlotFix versions
Labels
Contract ID
Components
Priority
Created November 9, 2018 at 4:07 PM
Updated April 16, 2019 at 5:01 PM
Resolved March 29, 2019 at 1:20 PM
Here is a description about a binding meant to provide os/platform/system information to others bindings or apps through application framework.
Idea is to have an API which you could interrogate to retrieve some informations about the current configuration. This is useful to determine by example whether or not a bluetooth interface is available, or a GPS is present, the BSP version etc and then take the appropriates actions.
So, to be consistent this work will follow the work which already provides files with build, platform, informations. The binding reads the files defined by the and keeps the informations in memory then it could be requested through an api verb "ask" with argument:
The easier way would be to have JSON file in input or to have the ability to interpret several input format ini, yaml, bash conf, in some manner to stock their informations in a simple tree which classes the information in a namespace which is the file name (minus the potential extension).
No further depth allowed, the binding is only meant to provide very simple and limited informations on the current running configuration. Goal here is again to have a KISS micro service.
In a next step, it would monitor the files using inotify mechanism to catch updates and more important be connected to the udev daemon to be aware of any hotplug hardware.