ACCESSORY The user is recognized by the MAC address presented by remote accessory devices that connect to Avior via SMM Server. The MAC address is made up of 12 characters.
|
A remote accessory (WiFi button) stored as a user sends the message corresponding to the single pressure of the button, activating the output. |
||
|
|
ACE MESSAGE FROM ACCESSORY |
|
$S22=F4FA2E9C892 LAST ACCESSORY MAC = FA... |
|
|
$S24(single ACCESSORY LAST TEXT ( single |
|
|
|
|
|
|
|
|
|
|
|
out1=1,5 |
|
|
$S24 |
|
|
|
|
|
|
|
|
|
|
trigger event is the receipt of a message from an active accessory. The first condition verifies that the message received from an accessory was sent by the one with the specified MAC address. The second condition to check is that the message received contains (also) the text single. The first action contains the command that turns output 1 on for 5 seconds. The second action contains the tag that represents the text of the last message received from accessory, if this is a valid command it will be executed. Since the button periodically sends the battery charge level <NAME>.batt=xx if we assign the name <NAME>.batt (where <NAME> is the name assigned to the WiFi button) to a variable, this command will save the received value in the variable. |