| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="2.3.0" package="com.hdl.onpro" xmlns:tools="http://schemas.android.com/tools" android:versionCode="202310301"> |
| | | <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="2.3.1" package="com.hdl.onpro" xmlns:tools="http://schemas.android.com/tools" android:versionCode="202311021"> |
| | | <uses-sdk android:minSdkVersion="26" android:targetSdkVersion="30" /> |
| | | <uses-permission android:name="android.permission.RECEIVE_SMS" /> |
| | | <!--友盟--> |
| | |
| | | { |
| | | |
| | | |
| | | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "13.2.0.99")] |
| | | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "13.2.1.111")] |
| | | public partial class Resource |
| | | { |
| | | |
| | |
| | | <key>CFBundleName</key> |
| | | <string>On Pro</string> |
| | | <key>CFBundleShortVersionString</key> |
| | | <string>2.3.0</string> |
| | | <string>2.3.1</string> |
| | | <key>CFBundleURLTypes</key> |
| | | <array> |
| | | <dict> |
| | |
| | | </dict> |
| | | </array> |
| | | <key>CFBundleVersion</key> |
| | | <string>2.3.0</string> |
| | | <string>2.3.1</string> |
| | | <key>LSApplicationQueriesSchemes</key> |
| | | <array> |
| | | <string>weixinULAPI</string> |
| | |
| | | } |
| | | } |
| | | |
| | | // 切换到竖屏模式 |
| | | public override UIInterfaceOrientationMask GetSupportedInterfaceOrientations() |
| | | { |
| | | return UIInterfaceOrientationMask.Portrait; |
| | | } |
| | | |
| | | |
| | | public override void ViewDidLoad() |
| | | { |
| | | base.ViewDidLoad(); |
| | |
| | | new System.Threading.Thread(async () => { |
| | | while (true) |
| | | { |
| | | if (!UserInfo.Current.IsLogin) |
| | | { |
| | | return; |
| | | } |
| | | try |
| | | { |
| | | System.Threading.Thread.Sleep(2000); |
| | |
| | | |
| | | await StartCloudMqtt(); |
| | | await SubscribeTopics(); |
| | | |
| | | } |
| | | catch { } |
| | | } |
| | |
| | | |
| | | |
| | | MqttInfoConfig.Current.mMqttInfo = mqttInfoRequestResult_Obj; |
| | | await MQTTConnectAsync(); |
| | | //await MQTTConnectAsync(); |
| | | //1.判断是否绑定了网关,获取网关远程连接的加密KEY |
| | | //if (DB_ResidenceData.Instance.CheckWhetherGatewayIsBound()) |
| | | { |
| | |
| | | if(apiPath == NewAPI.API_POST_Login) |
| | | { |
| | | var ddd = Newtonsoft.Json.JsonConvert.SerializeObject(response); |
| | | Console.WriteLine(ddd); |
| | | //Console.WriteLine(ddd); |
| | | } |
| | | if (response.StatusCode == HttpStatusCode.OK) |
| | | { |
| | |
| | | /// <summary> |
| | | /// 版本号 |
| | | /// </summary> |
| | | public static string VersionString = "2.3.0"; |
| | | public static string VersionString = "2.3.1"; |
| | | ///// <summary> |
| | | ///// 客户端类型 |
| | | ///// </summary> |
| | |
| | | public static void Log(string msg) |
| | | { |
| | | #if DEBUG |
| | | if (msg.Contains("收到数据") |
| | | || msg.Contains("发送") |
| | | || msg.Contains("接收到推送") |
| | | || msg.Contains("api") |
| | | || msg.Contains("读取功能状态") |
| | | if (msg.Contains("收到") |
| | | //|| msg.Contains("发送") |
| | | //|| msg.Contains("接收") |
| | | || true |
| | | ) |
| | | Console.WriteLine(msg); |
| | |
| | | etAccount.Text = "13533335801"; |
| | | etAccount.Text = "13682244600"; |
| | | etAccount.Text = "marketing@australindo.co.id"; |
| | | etAccount.Text = "dcai.assist@gmail.com"; |
| | | etAccount.Text = "support7@hdlautomation.com"; |
| | | |
| | | } |
| | | else |