在H
ARMony 2.01b上的SNMPv2中,我注意到了以下问题:我有一个被声明为16位宽度的整数变量。如果该值只使用一个字节,但高于127,则将其解释为字节,当使用MIB浏览器轮询时,它变成负整数。如果它超过了一个字节限制,则显示为ok(如256被报告为256,但255被报告为-1)。
以上来自于百度翻译
以下为原文
I no
ticed the following problem on SNMPv2 on Harmony 2.01b:
I have an integer variable that is declared as a 16 bit width. If the value is using only one byte but is higher than 127, then it is interpreted as a byte and it turns to a negative integer when polling with a MIB browser. If it passes over the one byte limit, then it is shown ok (like 256 is reported as 256 but 255 is reported as -1).
If I switch back to my old library (it is 1.02 or closer) it works ok.
The variables are declared as Integer32 in MIB file.
Adrian