0neblock / Arduino_SNMP

SNMP Agent built with Arduino
MIT License
77 stars 30 forks source link

Float #39

Closed workpage2 closed 1 year ago

workpage2 commented 1 year ago

Is there any plan to work with a variable of the float type? addFloatHandler would be nice.

0neblock commented 1 year ago

Hi @workpage2. Unfortunately there is no "float" datatype in SNMP. If I ever need to represent a decimal value, I use an Integer callback and divide the float by 10 or 100 to get the decimals out.