42
Integration Into Existing Systems
Switching outputs using Subscribe
Here again you must add a new action. As initiator select
MQTT-Subscribe.
Then enter the path over which the Topic is
send which contains the keyword for switching. For action use
Switch output >> Switch this Web-IO output
. Then specify to what
state the output should be switches and if the state should
change.
Example:
A device writes as a topic the keyword ON for the Broker
specified in the Web-IO over the path wut/webio123/set0. This
path and the Topic are specified for the Web-IO as initiator
under
MQTT Subscribe
. Switching the output to ON is specified
as the action.
Each time ON is written the output is switched. You can use
a second action to specify what should be used to turn the
output off again.
The Web-IO as MQTT gateway
The flexibility which the Web-IO allows in configuring act4ions
means that depending on the contents of certain Topics you can
also send emails, SNMP traps or messages over other commu
-
nication paths. For more information see the Actions section.
REST
The Web-IO uses REST (Representational State Transfer) to
provide another Web-based communication path.
Communication is via Web-IO specific HTTP requests using the
HTTP or HTTPS port specified under B
asic settings >> Network
>> Access for Web services
.
To be able to exchange data via REST, access via
Communi-
cation paths >> Rest
must first be enabled.
If you wish to protect REST access against unauthorized
manipulation, you can enable digest authentication. The
requests must then take place as “admin” user with the Admin
-