beautypg.com

Httptrigger, Multicasttrigger, Event.multicasttrigger – 2N Helios IP Automation Manual v2.7 User Manual

Page 16: Parameters, Variables, Example

background image

16

2N TELEKOMUNIKACE a.s., www.2n.cz

®

Event.HttpTrigger

The

block defines the event generated by receiving of an HTTP command

HttpTrigger

from the intercom HTTP server. When the HTTP command http://ip_addr/enu/trigger/i

is received, the event will be generated whose ID matches the value that follows

d
'trigger/' in the HTTP command. The intercom sends a simple reply to this request (200
OK).

Parameters

Name – define a unique HTTP command identifier including alphabetical
characters and digits.

Variables

The HttpTrigger event is always generated by the HTTP command which can carry a list
of user parameters as included in the URI command.

http://ip_address/trigger/id?param1=value1¶m2=value2

The list of parameters follows the ? character. Each parameter must include the name
and value separated with the = character. If the list includes more parameters than
one, & is used as the separator.

The HTTP-received parameters are available as HttpTrigger block variables. The
variable name equals to the name of the parameter transferred.

Example

Event generated by receiving of the following HTTP command: http://ip_addr/enu/trigg

:

er/opendoor

Event.HttpTrigger: Name=opendoor

Event.MulticastTrigger

The MulticastTrigger block defines the event generated by receiving of a command sent
via SendMulticastRequest. The request is a message sent by UDP to a multicast
address (235.255.255.250:4433) and can thus be received by multiple devices at the
same time. The message includes the command ID (Command parameter) and
additional optional parameters. The message can be password-secured (Password
parameter).