Commit 04509291 authored by joliu's avatar joliu

移除无用的测试文件

parent 7b85e54a
...@@ -3,7 +3,7 @@ import sys ...@@ -3,7 +3,7 @@ import sys
import numpy as np import numpy as np
import json import json
port = 3000 port = 33335
inputTask = np.array([[0,0,1,0,0,0,0,0],\ inputTask = np.array([[0,0,1,0,0,0,0,0],\
[0,0,1,0,0,0,0,0],\ [0,0,1,0,0,0,0,0],\
...@@ -21,14 +21,27 @@ jsnInputTypeList = json.dumps(inputTypeList.tolist()) ...@@ -21,14 +21,27 @@ jsnInputTypeList = json.dumps(inputTypeList.tolist())
jsnDeviceList = json.dumps(deviceList) jsnDeviceList = json.dumps(deviceList)
# message = 'controller&addOutput&%s&%s&%s&0&2' % (jsnInputTask, jsnInputTypeList, jsnDeviceList) message = 'controller&addOutput&%s&%s&%s&0&2' % (jsnInputTask, jsnInputTypeList, jsnDeviceList)
# 执行逻辑矩阵数据库 # 执行逻辑矩阵数据库
# message = 'controller&show&resulovetable' #message = 'controller&show&resulovetable'
# 数据缓存数据库 # 数据缓存数据库
# message = 'controller&show&datacach' #message = 'controller&show&datacach'
# 数据采集控制数据库 # 数据采集控制数据库
# message = 'controller&show&decidedestination' #message = 'controller&show&decidedestination'
message = 'controller&clear' #message = 'controller&clear'
# 模拟Device设备发送信息
# message = 'device&dht102&0'
# 输出
# message = 'controller&stop'
#message = 'controller&start'
# 添加轮询查询传感器命令
#message = "controller&addInput&20&192.168.12.19:33335&20"
# 添加缓存数据库内容
data = [["delay1", "dht102", "dht103", "dht104"],[10,1,0,1]]
data_json = json.dumps(data)
message = "controller&addCach&%s" % data_json
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("192.168.12.19", port)) s.connect(("192.168.12.19", port))
s.sendall(message.encode()) s.sendall(message.encode())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment