![Asentria Teleboss 850 User Manual Download Page 187](http://html.mh-extra.com/html/asentria/teleboss-850/teleboss-850_user-manual_2981745187.webp)
TeleBoss 850 2.06.280_STD User Manual
Page 181
a_lib.SendMessage
Description
Posts a message to another script.
Syntax
a_lib.SendMessage(target_script, message_id)
a_lib.SendMessage(target_script, message_id, message)
target_script: Target script name, or its 1-based settings index
message_id: Message ID (used-defined) (message id's greater than
10000 are reserved)
message: String containing message data; as a Lua string, it can
contain binary values
Returns
Returns 1 if the target script is running, or 'nil' if not. Note that there is no guarantee the target script will actually
process the message.
Example
-- set target script by name
name = "Switch Handler"
-- set message id
msg_id = 5
-- send some text as the message
msg_text = "Manual override"
-- send the message
a_lib.SendMessage(name, msg_id, msg_text)
a_lib.SetLED
Description
Controls the state of front panel LEDs on the SL85. Supported LEDs can be set to off, steady on, or flashing at 1
cycle per second.
Syntax
a_lib.SetLED(led, state)
led: Which led to control ("alert1", "alert2", or "alert3")
state: State to set the LED to ("off", "on", or "flash")
Returns
None.
Example
-- turn on the alert1 LED
a_lib.SetLED("alert1", "on")
-- make alert2 LED flash
a_lib.SetLED("alert2", "flash")
Summary of Contents for Teleboss 850
Page 6: ......