Events
1.3
Event.HttpTrigger
The
HttpTrigger
block defines the event generated by receiving of an HTTP command
from the intercom HTTP server. When the HTTP command
http://ip_addr/enu/trigger/id
is received, an event will be generated whose ID
matches the value that follows ‘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_adresa/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/trigger/opendoor:
Event.HttpTrigger: Name=opendoor