| | |
| | | NsqTopicDeviceUpdate = "aps.%v.device.update" //设备信息更改 |
| | | NsqTopicPullDataRequest = "aps.%v.pull.data.request" //拉取数据请求 |
| | | NsqTopicPullDataResponse = "aps.%v.pull.data.response" //拉取数据响应 |
| | | NsqTopicApsClientReportData = "aps.%v.apsClient.report.data" //apsClient上报数据 |
| | | NsqTopicSendDashboardData = "aps.%v.apsClient.dashboard" //下发dashboard数据 |
| | | ) |
| | | |
| | | type PlcStartAddressType int |
| | | |
| | | const ( |
| | | PlcStartAddressTypeFinishNumber PlcStartAddressType = 1 |
| | | PlcStartAddressTypeTotalNumber PlcStartAddressType = 2 |
| | | PlcStartAddressTypeFinishNumber PlcStartAddressType = 1 |
| | | PlcStartAddressTypeTotalNumber PlcStartAddressType = 2 |
| | | PlcStartAddressTypeTotalNumberWrite PlcStartAddressType = 3 |
| | | ) |
| | | |
| | | type PlcStartAddressValueType string |
| | |
| | | SystemStatusValueNormal SystemStatusValue = "1" |
| | | SystemStatusValueUnNormal SystemStatusValue = "2" |
| | | ) |
| | | |
| | | type ReportType int //上报类型 |
| | | |
| | | const ( |
| | | ReportTypeSystemDeviceID ReportType = 1 |
| | | ReportTypeReportWork ReportType = 2 |
| | | ) |
| | | |
| | | type SyncStatus int //同步状态 |
| | | |
| | | const ( |
| | | SyncStatusWait SyncStatus = 1 //待同步 |
| | | SyncStatusOk SyncStatus = 2 //已完成 |
| | | ) |