{
"setInfo": {
// "detectors": [{
// "highPass": 2, // 高通
// "index": 0, // 索引 按返回值填充
// "lowPass": 1, // 低通
// "state": 0, //状态 0关闭 1开启
// "type": 5 //类型
// }, {
// "highPass": 3,
// "index": 1,
// "lowPass": 2,
// "state": 0,
// "type": 6
// }, {
// "highPass": 4,
// "index": 2,
// "lowPass": 3,
// "state": 0,
// "type": 7
// }, {
// "highPass": 5,
// "index": 3,
// "lowPass": 4,
// "state": 0,
// "type": 8
// }],
// "warnMode": 218, // 报警模式
// "warnTime": 2585, // 报警时长
// "schedule":4, // 排班表类型(没有此项单发workTime无效~!)
// "workTime":[490,1280,1280,490,720,780,840,900]
"adminPassword":65428
}
}
//
curl --location --request POST '/api/system/set' \
--header 'Content-Type: application/json' \
--data-raw '{
"setInfo": {
// "detectors": [{
// "highPass": 2, // 高通
// "index": 0, // 索引 按返回值填充
// "lowPass": 1, // 低通
// "state": 0, //状态 0关闭 1开启
// "type": 5 //类型
// }, {
// "highPass": 3,
// "index": 1,
// "lowPass": 2,
// "state": 0,
// "type": 6
// }, {
// "highPass": 4,
// "index": 2,
// "lowPass": 3,
// "state": 0,
// "type": 7
// }, {
// "highPass": 5,
// "index": 3,
// "lowPass": 4,
// "state": 0,
// "type": 8
// }],
// "warnMode": 218, // 报警模式
// "warnTime": 2585, // 报警时长
// "schedule":4, // 排班表类型(没有此项单发workTime无效~!)
// "workTime":[490,1280,1280,490,720,780,840,900]
"adminPassword":65428
}
}
//'
{
"cmdResult": "string",
"code": 0,
"currentKnifeNum": 0,
"currentSceneNum": 0,
"deviceName": "string",
"knifeNum": 0,
"msg": 0,
"sceneNum": 0,
"sceneSize": 0,
"specialSceneNum": 0,
"sysInfo": {
"IOConfig": 0,
"adminPassword": 0,
"autoLearnState": 0,
"autoRatioState": 0,
"copIP": "string",
"copMAC": "string",
"copVersion": "string",
"currentWarnCount": 0,
"currentWarnGapTime": 0,
"detectorMaxSize": 0,
"detectorSize": 0,
"detectors": [
{
"alarm": 0,
"autoRatioValue": 0,
"dataIndex": 0,
"dataLength": 0,
"highPass": 0,
"index": 0,
"iot": 0,
"lowPass": 0,
"max": 0,
"real": 0,
"sensor": 0,
"sensorMAC": 0,
"state": 0,
"type": 0,
"version": 0
}
],
"deviceType": 0,
"elecKeepTime": 0,
"fpgaVersion": 0,
"funcConfig": 0,
"funcVersion": 0,
"fwVersion": "string",
"g01OptimSave": 0,
"highElecKeepTime": 0,
"initCurrentStep": 0,
"initStepCount": 0,
"interfaces": [
{
"gateWay": "string",
"ip": "string",
"mac": "string",
"name": "string",
"netmask": "string"
}
],
"iotState": 0,
"knifeMode": 0,
"knifeMultiWarnOptimGap": 0,
"knifeNCWarnMode": 0,
"learnMode": 0,
"learnTime": 0,
"mcuIP": "string",
"mcuMAC": "string",
"mcuVersion": "string",
"multiG01Optim": 0,
"multiG01OptimMAX": 0,
"nc": {
"DNCPassword": "string",
"PLCPassword": "string",
"brand": "string",
"connectPassword": "string",
"index": 0,
"ip": "string",
"model": "string",
"port": 0,
"protocol": 0,
"remark": "string",
"sampleInterval": 0,
"version": "string"
},
"ncError": "string",
"ncInfos": [
{
"addr": "string",
"addrBit": 0,
"addrInt": 0,
"addrType": 0,
"bias": 0,
"byteOrder": 0,
"dataId": 0,
"dataProcess": 0,
"dataProcessFormula": "string",
"dataTime": 0,
"dataType": 0,
"index": 0,
"isBit": true,
"isUse": true,
"length": 0,
"mode": 0,
"name": "string",
"resultLength": 0,
"resultStart": 0,
"scale": 0,
"send": "string",
"sendBytesLength": 0,
"value": 0,
"valueStr": "string"
}
],
"ncState": 0,
"ncUpdateMode": 0,
"ncVersion": "string",
"netTestState": 0,
"pcIP": "string",
"pcMAC": "string",
"ratioMode": 0,
"restTime": [
0
],
"restTimeCount": 0,
"sceneMode": 0,
"schedule": 0,
"sensorStatus": [
{
"deviceStatus": 0,
"deviceType": 0,
"remark": "string",
"sensorMAC": 0,
"sensorStatus": 0
}
],
"sensors": [
{
"deviceCheck": "string",
"deviceID": "string",
"deviceIP": "string",
"deviceName": "string",
"deviceType": 0,
"deviceTypeStr": "string",
"mainVersion": "string",
"subVersion": "string"
}
],
"serverAddress": "string",
"serverPort": 0,
"specialSceneCleanTime": 0,
"version": 0,
"warnGapTime": 0,
"warnMode": 0,
"warnTime": 0,
"workTime": [
0
]
},
"tabId": 0,
"timestamp": 0,
"total": 0
}