AXISD3110ConnectivityHub
Configureyourdevice
3.GotoMQTTsubscriptionsandaddasubscription.
Enterthefollowinginformation:
-Subscriptionlter:Motion
-Subscriptiontype:Stateful
-QoS:0,1or2
4.ClickSave.
CreatearuleintheconnectivityhubforMQTTsubscriptions
1.GotoSystem>Events>Rulesandaddarule.
2.Enterthefollowinginformation:
-Name:Motiondetected
-Condition:MQTT>Stateful
-Subscriptionlter:Motion
-Payload:On
-Action:I/O>ToggleI/Owhiletheruleisactive
-Port:I/O1.
3.ClickSave.
Openalockwhenabuttonispressed
Thisexampleexplainshowtoconnectarelaytotheconnectivityhubandhowtosetupaneventtoopenalockwhensomeone
pressesabuttonconnectedtotheconnectivityhub.
Prerequisites
•Connecta2-wirecable(COM,NO)tothelockandtotherelayconnectorontheconnectivityhub.
•Connecta2-wirecable(ground,I/O)tothebuttonandtotheI/Oconnectorontheconnectivityhub.
ConguretheI/Oportsintheconnectivityhub
1.GotoSystem>Accessories.
2.EnterthefollowinginformationinPort1:
-Name:Button
-Direction:Input
-Normalstate:Opencircuit
3.EnterthefollowinginformationinPort9:
-Name:Lock
-Normalstate:Opencircuit
Createaruleintheconnectivityhub
1.GotoSystem>Eventsandaddarule.
2.Enterthefollowinginformation:
9