02-12-2023, 12:03 PM
2 ways:
a. when using in TCP Server mode. if H16B relay have changed state by switch terminal board. will auto feedback some STRING information tell you to update. STRING is Feedback:RELAY-KEY-255,x,1,OK (x is the channel of Relay)
change the status of one relay, such as your relay is ON, when send this command , relay will be OFF. if your relay is OFF, when send this command , relay will be ON.
b. send read relay state command
5.Read all relays status by one command:
Send: RELAY-STATE-255
Feedback:
KC868-H2,KC868-H4,KC868-H8: RELAY-STATE-255,D0,OK/ERROR
KC868-H16:RELAY-STATE-255,D1,D0,OK/ERROR
KC868-H32:RELAY-STATE-255,D3,D2,D1,D0,OK/ERROR
here is protocol details: https://www.kincony.com/smart-controller...tocol.html
a. when using in TCP Server mode. if H16B relay have changed state by switch terminal board. will auto feedback some STRING information tell you to update. STRING is Feedback:RELAY-KEY-255,x,1,OK (x is the channel of Relay)
change the status of one relay, such as your relay is ON, when send this command , relay will be OFF. if your relay is OFF, when send this command , relay will be ON.
b. send read relay state command
5.Read all relays status by one command:
Send: RELAY-STATE-255
Feedback:
KC868-H2,KC868-H4,KC868-H8: RELAY-STATE-255,D0,OK/ERROR
KC868-H16:RELAY-STATE-255,D1,D0,OK/ERROR
KC868-H32:RELAY-STATE-255,D3,D2,D1,D0,OK/ERROR
here is protocol details: https://www.kincony.com/smart-controller...tocol.html