This commit is contained in:
cdyong 2015-10-30 07:35:26 +00:00
parent 93c3f95395
commit 4b3fbee9e2
1 changed files with 2 additions and 1 deletions

View File

@ -110,8 +110,9 @@ bool TinyClient::OnReceive(TinyMessage& msg)
// 不处理来自网关以外的消息
//if(Server == 0 || Server != msg.Dest) return true;
debug_printf("源地址: 0x%08X 网关地址:0x%08X \r\n",Server, msg.Src);
if(msg.Code != 0x01 && Server != 0 && Server != msg.Dest) return true;
if(msg.Code != 0x01 && Server != msg.Src && Type != 0x01C8) return true;//不是无线中继,不是组网消息。不是被组网网关消息,不受其它消息设备控制.
if(msg.Src == Server) LastActive = Time.Current();