| | |
| | | /// <param name="msgData">接收的数据</param>
|
| | | public void GatewayOverallMsgReceive(string gatewayId, string topic, string reportTopic, string msgData)
|
| | | {
|
| | | //如果它在登陆界面,则不做任何处理
|
| | | if (Common.Config.Instance.HomeId == string.Empty)
|
| | | {
|
| | | return;
|
| | | }
|
| | | if (topic == "AppNoLogin")
|
| | | {
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | |
| | | {
|
| | | if (HdlGatewayLogic.Current.IsGatewayExist(gatewayId) == false)
|
| | | {
|
| | | //不是自己绑定的网关,则不处理
|
| | | //不是自己绑定的网关,则不处理,但是下面这个东西有点特殊
|
| | | if (gatewayId == this.GatewayReceiveId)
|
| | | {
|
| | | this.GatewayReceiveEvent?.Invoke(topic, msgData);
|
| | | }
|
| | | return;
|
| | | }
|
| | | //设备属性上报
|