| | |
| | | using Microsoft.AppCenter.Analytics; |
| | | using Microsoft.AppCenter.Crashes; |
| | | using Shared; |
| | | using Shared.SimpleControl; |
| | | using UIKit; |
| | | using UserNotifications; |
| | | |
| | |
| | | //com.freeview.global.Video.FVapplicationDidBecomeActive (application); |
| | | } |
| | | |
| | | //DateTime closeTime = DateTime.MinValue; |
| | | DateTime closeTime = DateTime.MinValue; |
| | | /// <summary> |
| | | /// BusSocketStop |
| | | /// </summary> |
| | | void BusSocketStop () |
| | | { |
| | | Shared.BusSocket.Stop (); |
| | | //closeTime = DateTime.Now; |
| | | closeTime = DateTime.Now; |
| | | } |
| | | |
| | | |
| | |
| | | void BusSocketStart () |
| | | { |
| | | |
| | | if (closeTime == DateTime.MinValue) { |
| | | closeTime = DateTime.Now; |
| | | } else if (closeTime.AddSeconds (20) < DateTime.Now) { |
| | | if (CommonPage.IsRemote) { |
| | | SmartHome.MqttCommon.DisConnectRemoteMqttClient ("closeTime"); |
| | | } |
| | | } |
| | | |
| | | //if (closeTime == DateTime.MinValue) { |
| | | // closeTime = DateTime.Now; |
| | | //} else if (closeTime.AddMinutes (2) > DateTime.Now) { |