Got it
Ahh okey, this is an way easier way then. Thanks
Code:
res, err = walk('192.168.1.252', 'public', snmp.SNMPv1, '1.3.6.1.4.1.318.1.1.26.6.3.1.6')
log(res, err)
if type(res) == 'table' then
voltage = res["1.3.6.1.4.1.318.1.1.26.6.3.1.6.1"]
log(voltage)
end
(21.02.2020, 08:22)admin Wrote: walk is needed when you want to finds all sub-OIDs within a sub-tree.
Have a look at this example:
https://forum.logicmachine.net/showthrea...51#pid9651
You just need to provide device IP and OID to group address mapping. Script will then handle reading.
Ahh okey, this is an way easier way then. Thanks