电源控制前端调试通过
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user