1b3709ecde
ENVSYS_GSTRING (aka Generic String) uses the genstr member in the envsys_data_t struct to add a generic string that envstat(8) will show as value or state. It's like the ENVSYS_DRIVER, but doesn't use value_cur. Below is the dictionary created on these sensors: <dict> <key>description</key> <string>acpibat0 charge state</string> <key>generic-state-string</key> <string>NORMAL</string> <key>monitoring-supported</key> <false/> <key>state</key> <string>valid</string> <key>type</key> <string>Generic string</string> </dict> Note that it's limited to 32 chars, but we can grow it if needed. envstat(8) will print ENVSYS_GSTRING sensors as: $ envstat -dacpibat0 -s"acpibat0 charge state" acpibat0 charge state: NORMAL $ |
||
---|---|---|
.. | ||
Makefile | ||
envstat.8 | ||
envstat.c |