1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
| { statusCode: 200, message: '操作成功!', data: { server: [ { host: '127.0.0.1', port: 233, username: '233', password: '233', }, ], debugServer: { host: '127.0.0.1', port: 233, username: '233', password: '233', }, active: { realTimeData: { open: true, uartCommandData: [1, 2, 3, 4, 5, 6], uartCommandInterval: 500, }, alarm: { open: true, threshold: [ { key: '压力', rawRanges: [ [0, 5], [20], ], filters: [ { key: '单位', rawRanges: [ [4, 4], ], }, ], message: '压力异常', }, ] } fireAlarm: { open: true, threshold: [ { key: '火警', rawRanges: [ [1], ], filters: [], message: '设备报告火警', }, ] } operation: { open: true, threshold: [ { key: '复位', rawRanges: [ [1], ], filters: [], message: '设备报告复位操作' }, ] } }, protocol: { type: 'modbus', gb26875Config: { name: 'default', }, modbusConfig: { id: 1, name: '源诚消防水源水压监测设备', version: 1, keys: [ { key: '单位', position: [4, 5], high: true, unit: '' switch: [ { range: [0, 0], value: 'Mpa', }, ], }, { key: '小数点', position: [6, 7], high: true, unit: '' switch: [ { range: [1, 1], value: 0.1, }, ], }, { key: '压力', position: [8, 9], high: true, unit: 'Mpa' switch: [], }, ], } }, } }
|