Smart Home Automation Forum
How to use TCP Server and TCP Client work mode for your own software - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1)
+--- Forum: Development (https://www.kincony.com/forum/forumdisplay.php?fid=4)
+--- Thread: How to use TCP Server and TCP Client work mode for your own software (/showthread.php?tid=1081)



How to use TCP Server and TCP Client work mode for your own software - admin - 11-09-2021


1: Ethernet work mode = "TCP Server"

controller is a "server", your software is "client".

2: WiFi work mode = "TCP Server"

controller is a "server", your software is "client".

3: Ethernet work mode = "TCP Client"

your software is a "server", controller is "client". when power on, controller will auto connect to your software by ethernet. just "client" will auto connect to "server".

4: WiFi work mode = "TCP Client" instead by MQTT in new firmware

your software is a "server", controller is "client". when power on, controller will auto connect to your software by wifi. just "client" will auto connect to "server".

5: Ethernet work mode = "TCP Client"; WiFi work mode = "TCP Server"

A. your software is a "server", controller is "client". when power on, controller will auto connect to your software by ethernet.

B. controller is a "server", you software is "client".