diff --git a/router.go b/router.go index 0d5dd3b..fef3b53 100644 --- a/router.go +++ b/router.go @@ -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