Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-H8b can't connect python.
#1
I would like to know how to write python from the computer and connect it to the device. It seems that it can not connect to IP and port.
Reply
#2
set your relay controller work as "TCP Server" work mode. Then use IP and Port TCP socket connect by Python.
Here is demo source code: https://github.com/hzkincony/8-Channel-N...-By-Python
Reply
#3
Might be a bit late but here is something I recently did for the kc868-32. It is a class written in Python that also keeps the state of the relays. The goal was to limit the need to know the commands being sent to the kc868. Let me know if there is something that could be improved.

https://github.com/js82jumper/Shared/blo...l/kc868.py
Reply
#4
ok, now the new firmware also support integrate by http command. you can chose use TCP socket connection or http command.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)