On Jan 10, 2021, at 4:37 AM, Roger Price <ro...@rogerprice.org> wrote:
> 
> I am trying to understand the specification of subcommand ENUM in
> https://networkupstools.org/docs/developer-guide.chunked/ar01s09.html
...
> What exactly does command LIST ENUM call for?  Is it a list of those 
> variables for which there is a fixed set of possible values?

"Is it a list of those variables" -> I would say that for a given variable 
called <varname> (on <upsname>), it returns the set of possible values that can 
be read or written. I don't think there is a way to query upsd for just the 
list of ENUM variables, the way it is possible to query for RW variables.

Several UPSes have settings which can be cycled via a front panel button (e.g. 
sensitivity or voltage thresholds), and if those are exposed in the protocols, 
then the drivers should use ENUMs to pass that along. This is not currently the 
case for usbhid-ups: https://github.com/networkupstools/nut/issues/134


-- 
Charles Lepple
clepple@gmail




_______________________________________________
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to