增加了网页服务
This commit is contained in:
@@ -30,8 +30,8 @@ class PowerManagerApp:
|
||||
|
||||
# UDP通信配置
|
||||
# self.udp_ip = "127.0.0.1"
|
||||
self.udp_ip = "192.168.0.140"
|
||||
self.udp_port = 7000
|
||||
self.udp_ip = "192.168.0.224"
|
||||
self.udp_port = 5002
|
||||
self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
self.sock.bind((self.udp_ip, self.udp_port))
|
||||
|
||||
@@ -40,6 +40,11 @@ class PowerManagerApp:
|
||||
self.disSysPortC2 = 6000
|
||||
self.disSysHostC2 = '192.168.1.158'
|
||||
|
||||
# self.disSysPortC1 = 7000
|
||||
# self.disSysHostC1 = '192.168.0.140'
|
||||
# self.disSysPortC2 = 7000
|
||||
# self.disSysHostC2 = '192.168.0.140'
|
||||
|
||||
# 数据库配置
|
||||
# self.db = DB('/home/zjk/project/H100/H100PowerManger/test/disSysTest/test.db')
|
||||
self.db = DB(os.path.join(os.path.dirname(__file__), 'test.db'))
|
||||
|
||||
Reference in New Issue
Block a user