LUALoriotPro WEB site

LoriotPro scripting documentation
Extensions for LUA language

Table of contents Search function

Print the current page Mail this  link UTUBE Channel version française

lp.Sleep

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.

Syntax

value = lp.Sleep(delay)

Description

Wait for a delay

Parameters

delay - A value in milliseconds

Return Values

value : 1 if succeeded, return nil if an error occurs

Example

lp.Print(os.date(),"\n")
lp.Sleep(5000)
lp.Print(os.date(),"\n")

Example of return:

07/01/13 11:39:28
07/01/13 11:39:34


www.loriotpro.com