A rule is something to execute when a trigger is fired (any local event).

An input opening/closing is a local event.

Set a RULE to perform a LINK when INPUT 4 is closing

The device opens the connection to server - if not already connected - uploads data, downloads commands waiting in the command queue and leaves the connection open.

The connection could be closed by network operator after an inactivity period.

Updated information are publicly available.

Messages (if any) are sent to recipients.