| | |
| | | break; |
| | | case CommunicationTopic.BusPcGetAppOids: |
| | | |
| | | var bytes = FileUtils.ReadFile(DB_ResidenceData.OidSavePathName); |
| | | var bytes = Common.FileUtlis.Files.ReadFile(DB_ResidenceData.OidSavePathName); |
| | | if (bytes.Length > 0) |
| | | { |
| | | socket.Send(bytes); |
| | |
| | | sendSidObj.id = Control.Ins.msg_id.ToString(); |
| | | sendSidObj.time_stamp = ""; |
| | | //转换成bus需要的数据格式 |
| | | var localFunction = DB_ResidenceData.functionList.GetAllFunction(); |
| | | var localFunction = FunctionList.List.GetDeviceFunctionList(); |
| | | var localFunctionString = Newtonsoft.Json.JsonConvert.SerializeObject(localFunction); |
| | | var tcpFunction = Newtonsoft.Json.JsonConvert.DeserializeObject<List<BusSidObj>>(localFunctionString); |
| | | |