旧指令的设备不允许入网

This commit is contained in:
nnhy 2015-12-09 11:24:45 +00:00
parent 176d1b392a
commit a724c24bf4
1 changed files with 2 additions and 0 deletions

View File

@ -200,6 +200,8 @@ bool TinyServer::OnJoin(const TinyMessage& msg)
JoinMessage dm; JoinMessage dm;
dm.ReadMessage(msg); dm.ReadMessage(msg);
if(dm.Kind == 0x1004) return false;
// 根据硬件编码找设备 // 根据硬件编码找设备
auto dv = FindDevice(dm.HardID); auto dv = FindDevice(dm.HardID);
if(!dv) if(!dv)