function log()

From wiki.netio-products.com
Revision as of 17:34, 18 April 2017 by Jturon (talk | contribs) (Založena nová stránka s textem „{{DISPLAYTITLE:function log()}} Insert a record into the socket's event log. Suitable for debugging purposes. <i>nil</i> log(<u>message</u>) === Paramet…“)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Insert a record into the socket's event log. Suitable for debugging purposes.

nil log(message)

Parameters

string message will be inserted into the event log. Can display socket properties using ${property} syntax - see the example below.

Return value

nil

Usage

-- prints i.e. 'The power of outlet 1 is 17 Watts.'
log("The power of outlet 1 is ${devices.system.output1_consumption} Watts.")