<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Thank you for the info, Roger. I was going off of the <a moz-do-not-send="true" href="https://networkupstools.org/docs/developer-guide.chunked/ar01s09.html">developer
guide</a> at nut.org which seems pretty close to the one you
linked to, at least for the section I'm in right now. I don't
think I quite have the answer I'm looking for.</p>
<p>To give a little more background, I'm working on a program that,
among other things, will parse the variable type(s) that are
passed to it from a NUT server. I'd like to understand just how
exotic/complicated a variable type can get. If that means ENUMs
are just enum and nothing else, great - although from my
understanding in the master branch of the nut-ups code, it seems
possible that variables can mix and match when the server responds
to such a query. I'm hoping someone can maybe provide a few
examples of what the most complex variables look like, since I
don't seem to have those on my end.</p>
<p>Glen<br>
</p>
<div class="moz-cite-prefix">On 9/2/2021 2:50 AM, Roger Price wrote:<br>
</div>
<blockquote type="cite" cite="mid:alpine.DEB.2.20.2109021148440.26816@maria.rogerprice.org">On
Wed, 1 Sep 2021, Glen Bakeman via Nut-upsdev wrote:
<br>
<br>
<blockquote type="cite">I'm currently trying to understand the
implementation of get_type in netget.c, specifically how more
complex variable types (such as ENUMs or RANGEs) are represented
by text. On my own UPS, it doesn't seem to have anything more
complicated than a number or string (or UNKNOWN).
<br>
<br>
It looks like it would be theoretically possible for a var to
show as enum OR range AND string OR number, is that true?
<br>
</blockquote>
<br>
Have a look at section 4.2.4 GET at
<br>
<a class="moz-txt-link-freetext" href="http://rogerprice.org/NUT/draft-rprice-ups-management-protocol-05.html#name-get-2">http://rogerprice.org/NUT/draft-rprice-ups-management-protocol-05.html#name-get-2</a>
<br>
<br>
Roger
<br>
<br>
_______________________________________________
<br>
Nut-upsdev mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Nut-upsdev@alioth-lists.debian.net">Nut-upsdev@alioth-lists.debian.net</a>
<br>
<a class="moz-txt-link-freetext" href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev</a>
<br>
</blockquote>
</body>
</html>