Source Web Status
label, level, data = source.web(p, [label], [level], [data])
label, level, data = source.web(p, [label], [level], id, value)
Update, or override, channel source status information.
Parameter | Type | Description |
---|---|---|
p |
table | Protocol table |
label |
string | Label string to replace the Source |
level |
integer | Value for colour. 0=none; 1=green; 2=amber; 3=red |
data |
table | Table of id/value pairs |
id |
string | ID to add |
value |
string | Value to add |
Updates, or adds status values to the web display.
e.g.
sources[4]:web('Test', 1) -- set label and level only
-- Add a couple of entries of status information
sources[4]:web(_, _, 'Some', 'Data')
sources[4]:web(_, _, 'More', 'Info')
sources[4]:web('Test', 2, { {'Some', 'Data'}, {'More', 'Info'} } ) -- same as above
Internally this just updates the i.chnl[#].src.web
and i.chnl[#].src.data
tables.