[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WG: TEXTUAL-CONVENTION and UNITS question



> >>>>> Jeff Parker writes:
> 
> >> dcVoltage OBJECT-TYPE SYNTAX Volts UNITS "Volt DC" ...
> 
> Jeff> In my ignorance, I would have thought the "Units" clause would
> Jeff> tell us the Units used.  This TC is not measuring Volts, it is
> Jeff> measuring hundred's of volts.
> 
> Oops, I see your point.
> 
> It obviously depends on how you look at the TC. If you are used to
> software which interprets display hints, the number displayed will be
> volts. If you look at the number without that conversion, the value
> will be in hundred's of volts. Since I am use to software which does
> display hint interpretation, I was not thinking carefully enough about
> cases where applications do not have this capability.
> 
> So just discard the example since it assumes that the UNITS clause is
> only interpreted if the DISPLAY-HINT clause is also interpreted, which
> is not necessarily true.
> 
> Thanks for pointing this out.
> 
> /js
> 
> 
[Epping, Jörg]  
Is it possible (or correct) to keep the TC and change the UNIT clause in the
OT to "0.01 Volt DC" then? Or is the best way to remove the DISPLAY-HINT and
only use the "0.0x"-syntax in the UNIT clause?
I took the "0.0x"-syntax from the UPS-MIB, but the combination with TC and
UNIT looked nicer to me.

Thanks, Joerg