[Nut-upsuser] What does ENUM mean?

Charles Lepple clepple at gmail.com
Sun Jan 10 16:29:22 GMT 2021


On Jan 10, 2021, at 4:37 AM, Roger Price <roger at 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 at gmail






More information about the Nut-upsuser mailing list