| | |
| | | InitMqtt(); |
| | | } |
| | | |
| | | public static bool IsInitMqtt = false; |
| | | |
| | | static void InitMqtt() |
| | | { |
| | | new System.Threading.Thread(async () => { |
| | |
| | | try |
| | | { |
| | | var topic = e.ApplicationMessage.Topic; |
| | | MainPage.Log($"收到mqtt主题:{topic}"); |
| | | //MainPage.Log($"收到mqtt主题:{topic}"); |
| | | //一端口主题处理 |
| | | if (DB_ResidenceData.Instance.GatewayType == 0 && !DB_ResidenceData.Instance.CheckWhetherGatewayIdIsNull()) |
| | | { |
| | |
| | | static void ReceiveNotifySqueezeAsync(string mMes) |
| | | { |
| | | MainPage.Log($"推送标识:{mMes};本地标识:{PushSignStr}"); |
| | | #if DEBUG |
| | | MainPage.Log("调试模式,不触发挤下线。"); |
| | | return; |
| | | #endif |
| | | if (mMes == PushSignStr) return;//是自己的登录推送不处理//或者当前不是远程链接状态 |
| | | |
| | | DisConnectRemoteMqttClient("挤下线"); |