Sensors - Magic Touch
[InvisOutlet -> TCP/WebSocket]
Last updated
[InvisOutlet -> TCP/WebSocket]
Sending update when magic touch is triggered.
This uses the same callbackName as Sensors.
sn: The serial number of the InvisOutlet.
packetID: Represents the packet ID.
payload:
callbackName : 11
callbackArgs :
0 : The InvisDeco device type.
1 :
magic_touch_1 : A flag indicating if the first Magic Touch button is pressed with touch duration in milliseconds.
magic_touch_2 : A flag indicating if the second Magic Touch button is pressed with touch duration in milliseconds.
{
"sn": "000FE441F7",
"packetID": 371939,
"payload": {
"callbackName": 11,
"callbackArgs": [
4,
{
"magic_touch_1": 270
}
]
}
}As the Magic Touch button will likely be triggered one at a time, the response payload will only contain either magic_touch_1 or magic_touch_2 .
Last updated