电源控制前端调试通过

This commit is contained in:
2026-06-19 22:22:18 +08:00
parent 6f9d6ed0d6
commit add7f6c361
5 changed files with 72 additions and 3 deletions
+6
View File
@@ -1,11 +1,17 @@
import time
import os
from config import *
from tcp_io_module import TcpIoModule
from hvs import HvService
from mqtt_client import mqtt_client
# pinctrl set 26 op pn dl
def main():
#通过pinctrl打开电源
os.system("pinctrl set 26 op pn dl")
io_module = TcpIoModule(host='192.168.8.211', port=502)
io_module.start()