On Sun, Jan 10, 2021 at 10:37:13AM +0100, Roger Price wrote:
> I am trying to understand the specification of subcommand ENUM in
> https://networkupstools.org/docs/developer-guide.chunked/ar01s09.html
>
> This says:
>
> ENUM
> Form:
> LIST ENUM <upsname> <varname>
> LIST ENUM su700 input.transfer.low
>
> Response:
> BEGIN LIST ENUM <upsname> <varname>
> ENUM <upsname> <varname> "<value>"
> ...
> END LIST ENUM <upsname> <varname>
>
> BEGIN LIST ENUM su700 input.transfer.low
> ENUM su700 input.transfer.low "103"
> ENUM su700 input.transfer.low "100"
> ...
> END LIST ENUM su700 input.transfer.low
>
> 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?
>
I can't speak specifically about the NUT case, but if "ENUM" is short
for "enumerate" or it's anything like the C 'enum' keyword, I think your
assessment may be correct.
Jonathan
_______________________________________________
Nut-upsuser mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser