添加测试大妈

This commit is contained in:
fish 2019-03-22 17:49:55 +08:00
parent f3d5fba717
commit c4334ef893
1 changed files with 8 additions and 2 deletions

View File

@ -99,7 +99,6 @@ func yunhorn_ys_l_v1(data_buf []byte) {
DEVICEDATAS.DATA[demoDevice.VERSION+"_1"] = device
} else {
demoDevice.DATA["data"+strconv.Itoa(7)] = data_int[0]
var device Device
device.Lock()
device.ID = demoDevice.ID
@ -109,7 +108,6 @@ func yunhorn_ys_l_v1(data_buf []byte) {
device.DATA["data7"] = data_int[0]
device.Unlock()
DEVICEDATAS.DATA[demoDevice.VERSION+"_1"] = device
}
device.DATA = demoDevice.DATA
@ -118,6 +116,14 @@ func yunhorn_ys_l_v1(data_buf []byte) {
}
send_data(1005, device)
var device2 Device
device2.ID = "BDA9D650-5E4C-41A0-A78F-DA8A8D488E45"
device2.VERSION = "yunhorn_kgl_l_v1"
device2.ONLINE = demoDevice.ONLINE
device2.DATA["data"]=data_int[0]
send_data(1005, device2)
}
func yunhorn_lorawan_l_v1(s *serial.Port) {