完善门磁以及aq设备数据转发解析

This commit is contained in:
fish 2019-06-24 09:43:11 +08:00
parent b0d515ef17
commit 1c46db8faa
1 changed files with 6 additions and 4 deletions

View File

@ -189,7 +189,7 @@ func dealDatav3(data []byte) string{
//红外人体感应
readyData.WriteString(cs2001Str)
newdtype := strs[5]
newdtype := strs[5]
tmp := []byte{0, 0}
tof := tmp[0]
@ -344,8 +344,9 @@ func dealDatav3(data []byte) string{
}else if datatype==3{
var R_data P1004_6
R_data.CODE = 1010
R_data.ID = "853c0000"
R_data.CODE = 1005
R_data.ID = adr
// "853c0000"
//尿布台
R_data.VERSION = "yunhorn_door_c_v1"
R_data.ONLINE = true
@ -441,7 +442,8 @@ func dealDatav3(data []byte) string{
var R_data P1004_6
R_data.CODE = 1005
R_data.ID = "dc390000"
R_data.ID = adr
// "dc390000"
//尿布台
R_data.VERSION = "yunhorn_kq_c_v1"
R_data.ONLINE = true