| | |
| | | { |
| | | try |
| | | { |
| | | var MqttInfoConfigBytes = FileUtils.ReadFile(ConfigFile); |
| | | var MqttInfoConfigBytes = Common.FileUtlis.Files.ReadFile(ConfigFile); |
| | | var MqttInfoConfigString = Encoding.UTF8.GetString(MqttInfoConfigBytes); |
| | | MqttInfoConfig temp = null; |
| | | if (MqttInfoConfigString != null) |
| | |
| | | } |
| | | } |
| | | |
| | | public HomeGatewayInfo HomeGatewayInfo = null; |
| | | public HomeGatewayInfo HomeGatewayInfo = new HomeGatewayInfo(); |
| | | |
| | | public MqttInfo mMqttInfo = null; |
| | | |
| | |
| | | public void Refresh() |
| | | { |
| | | m_Current = null; |
| | | Save(); |
| | | Common.FileUtlis.Files.DeleteFile(ConfigFile); |
| | | //Save(); |
| | | } |
| | | |
| | | public void Save() |
| | | { |
| | | FileUtils.WriteFileByBytes(ConfigFile, GetMqttInfoConfigBytes()); |
| | | Common.FileUtlis.Files.WriteFileByBytes(ConfigFile, GetMqttInfoConfigBytes()); |
| | | } |
| | | } |
| | | } |