02-03-2021, 03:45 AM
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.
KC868-H8b can't connect python.
|
02-03-2021, 03:45 AM
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.
02-03-2021, 05:00 AM
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
03-13-2021, 03:33 AM
(This post was last modified: 03-13-2021, 03:33 AM by js82jumper.)
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
03-13-2021, 03:37 AM
ok, now the new firmware also support integrate by http command. you can chose use TCP socket connection or http command.
|
« Next Oldest | Next Newest »
|
Users browsing this thread: |
1 Guest(s) |