| | |
| | | //设备管理 |
| | | struct DevicesInfo |
| | | { |
| | | char deviceName[32];//设备名称 |
| | | char deviceStatus[32];//设备状态 |
| | | char area[32];//地区 |
| | | double longitude;//经度 |
| | | double latitude;//纬度 |
| | | char purchasingTime[15];//购买时间 |
| | | char installTime[15];//安装时间 |
| | | char manufacturer[100];//厂家 |
| | | char deviceSerialNumber[32];//设备编码 |
| | | int id;//设备ID |
| | | char deviceName[32];//设备名称 |
| | | char deviceType[32];//设备类型 |
| | | char deviceSerialNumber[32];//设备编码 |
| | | char deviceStatus[32];//设备状态 |
| | | char area[100];//地区 |
| | | double longitude;//经度 |
| | | double latitude;//纬度 |
| | | char purchasingTime[15];//购买时间 |
| | | char installTime[15];//安装时间 |
| | | char manufacturer[100];//厂家 |
| | | }; |
| | | //添加设备 |
| | | struct ADReq//添加请求 |
| | |
| | | { |
| | | Head head; |
| | | DevicesInfo info; |
| | | char condition[32]; |
| | | char modifiedContent[100]; |
| | | double laOrLo; |
| | | MDReq() { |
| | | head.type = MD_REQ; |
| | | head.len = sizeof(MDReq); |
| | |
| | | { |
| | | Head head; |
| | | int status; |
| | | char conditon[32]; |
| | | char modifiedContent[100]; |
| | | double laOrLo; |
| | | MDRes() { |
| | | head.type = MD_RES; |
| | | head.len = sizeof(MDRes); |