Question on NodeSettings
#221
-
In struct NodeSettings {
...
pub sensors: bool,
pub sensor_list: HashMap<String, bool>,
} I'm not very sure about the usage and the implications of these two fields.
@sophie-cluml @sehkone, any ideas? Appreciate the help~ |
Beta Was this translation helpful? Give feedback.
Answered by
sophie-cluml
May 16, 2024
Replies: 1 comment
-
Hello,
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
minshao
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
NodeSettings::sensor_list
is the configuration settings field for Hog. In Hog, it is calledactive_sources
. The example of keys are like https://github.com/aicers/hog/blob/main/README.md?plain=1#L39. The value ofsensor_list
map is decided by the user in the UI. If it istrue
, it means user selected that one.NodeSettings::sensors
means if user clicked the checkbox "sensor" in the UI. This is also related to Hog. This does not mean that the node has a sensor module on it.