Skip to main content

Device:sender()

Device:sender(unit_id[, value])

This method creates a native-action to send a value to output unit.

Parameters

ParameterTypeDescription
unit_idnumberOutput device unit ID.
valuenumberValue to be sent.
If this parameter is not specified, the event value is sent to the output device unit.

Return Values

This method returns a native-action.

See Also