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.
The lp.Stop LUA function stops and leaves a running LUA script.
A character string is dispalyed : ‘Break - exit program !’ and a dump of the variable of the current running loop.
We define a loop of 10 cycles that should stop after 5 cycles.
The LUA code :
for i=0,10 do
if (i==5) then lp.Stop(); end
lp.Print("Value : ",i,"\n");