| | |
| | | case SPK.Inverter: |
| | | MainPage.Log("逆变器数据更新"); |
| | | var status = new Dictionary<string, object> { ["method"] = "status", ["data"] = temp.objects }; |
| | | //var dd = Newtonsoft.Json.JsonConvert.SerializeObject(status); |
| | | Inverter.Ins.H5Page.CallJS($"nativeToJs(\'{Newtonsoft.Json.JsonConvert.SerializeObject(status)}\')"); |
| | | MainPage.Log("逆变器数据更新1"); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | Inverter.Ins.H5Page.CallJS($"nativeToJs(\'{Newtonsoft.Json.JsonConvert.SerializeObject(status)}\')"); |
| | | }); |
| | | MainPage.Log("逆变器数据更新2"); |
| | | break; |
| | | } |
| | | |