LoriotPro has extended the LUA sripting language by providing its own LUA libraries. The new functions provided are dedicated to the creation of monitoring and SNMP automation application.
‘ip’ = lp.iptoa(long);
Convert an IP address from long integer to character string.
See lp.atoip function (WARNING the conversion is performed in the BIG INDIAN mode- the IP value is read from left to right)
long - An IP address in long integer format
ip - The IP address in a charater string format.
nil if an error occurs.
lp.Print("My ip address : ",ip,"\n");