send_to/3—send an event modification to another cell or gateway

The syntax for send_to/3 is as follows:

send_to($DEST,$EVENT,$SLOTS)

send_to/3 arguments 

Argument

Mode

Type

Description

$DEST

Input

  • STRING
  • LIST_OF STRING

Specifies a single destination or a list of possible destinations for the event

$EVENT

Input

OBJECT

Specifies the event to send

$SLOTS

Input

LIST_OF STRING

Specifies a list of modified slots to send

Use send_to/3 to send modifications of slots $SLOTS of event $EVENT to destination $DEST.

The destination must be specified by name. If $DEST is a list of destination names, the event is sent to the first destination that can be reached.

Only the slots that are explicitly indicated will be sent to the destination, in the form of an event modification.

send_to/3 example

send_to([Cell2,Cell3],$E,[status,severity]);
Was this page helpful? Yes No Submitting... Thank you

Comments