- 登录
- 场景刀具
- 系统设置
- 网卡设置POST
- 网卡立即生效POST
- 网络连接测试POST
- 获取系统设置POST
- 系统设置POST
- 系统配置字典查询POST
- 服务重启POST
- 传感器固件升级POST
- 服务器网络连接设置POST
- 传感器设置POST
- 复制参数POST
- 执行shellPOST
- 传感器设置读取POST
- 传感器属性设置POST
- 传感器断电重启POST
- 风扇设置POST
- 添加读取NCPOST
- 编辑读取NCPOST
- 删除读取NCPOST
- 编辑NC读取信息POST
- 配置页面NC重启POST
- NC采集开关设置POST
- 公用刀号设置POST
- 恢复出厂设置POST
- 系统操作日志查询POST
- 报警模式设置POST
- 设置WIFIPOST
- ssh远程设置POST
- 上下限设置POST
- 上下限读取POST
- 上下限读取 CopyPOST
- 极性设置POST
- 刀具报警统计POST
- 日志
- 实时数据
上下限读取 Copy
开发中
POST
/api/system/set
请求参数
Body 参数application/json
object {0}
示例
{
"sceneNum": 0,
"setInfo": {
"scenes": [
{
"sceneNum": 0,
"detectors": [
{
"index": 0,
"lowLimit": 100,
"highLimit": 2000
}
]
}
]
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/system/set' \
--header 'Content-Type: application/json' \
--data-raw '{
"sceneNum": 0,
"setInfo": {
"scenes": [{
"sceneNum": 0,
"detectors": [
{
"index": 0,
"lowLimit": 100,
"highLimit": 2000
}
]}
]
}
}'
返回响应
🟢200成功
application/json
Body
cmdResult
string
必需
code
integer
必需
currentKnifeNum
integer
必需
currentSceneNum
integer
必需
deviceName
string
必需
knifeNum
integer
必需
msg
integer
必需
sceneNum
integer
必需
sceneSize
integer
必需
specialSceneNum
integer
必需
sysInfo
object
必需
G00OutCheck
integer
必需
G01OutCheck
integer
必需
IOConfig
integer
必需
adminPassword
integer
必需
autoLearnState
integer
必需
autoRMode
integer
必需
autoRModeTime
integer
必需
autoRatioMax
integer
必需
autoRatioMin
integer
必需
autoRatioState
integer
必需
changeKnifeToNormal
integer
必需
copIP
string
必需
copMAC
string
必需
copVersion
string
必需
ct
array
必需
currentState
integer
必需
currentWarnCount
integer
必需
currentWarnGapTime
integer
必需
detectorMaxSize
integer
必需
detectorSize
integer
必需
detectors
array [object {21}]
必需
deviceType
integer
必需
elecKeepTime
integer
必需
fanDuty
integer
必需
fpgaVersion
integer
必需
funcConfig
integer
必需
funcVersion
integer
必需
fwVersion
string
必需
g01OptimSave
integer
必需
g01PlimitM
integer
必需
g4Signal
integer
必需
gapForce
integer
必需
highElecKeepTime
integer
必需
iccid
string
必需
initCurrentStep
integer
必需
initStepCount
integer
必需
interfaces
array [object {14}]
必需
iotHeartState
integer
必需
iotState
integer
必需
isAutoRMode
integer
必需
isSubTask
integer
必需
knifeMode
integer
必需
knifeMultiWarnOptimGap
integer
必需
knifeNCWarnMode
integer
必需
learnMode
integer
必需
learnTime
integer
必需
mcuIP
string
必需
mcuMAC
string
必需
mcuVersion
string
必需
monitor
object
必需
multiG01Optim
integer
必需
multiG01OptimMAX
integer
必需
nc
object
必需
ncDeviceName
string
必需
ncError
string
必需
ncInfos
array [object {24}]
必需
ncList
array [object {21}]
必需
ncState
integer
必需
ncUpdateMode
integer
必需
ncVersion
string
必需
netTestState
integer
必需
pcIP
string
必需
pcMAC
string
必需
ratioMode
integer
必需
restTime
array[integer]
必需
restTimeCount
integer
必需
saveHistory
integer
必需
sceneMode
integer
必需
scenes
array [object {25}]
必需
schedule
integer
必需
sensorConfig
object
必需
sensorStatus
array
必需
sensors
array [object {9}]
必需
serverAddress
string
必需
serverPort
integer
必需
signal
integer
必需
specialSceneCleanTime
integer
必需
superPassword
integer
必需
uploadGap
integer
必需
uploadLevel
integer
必需
version
integer
必需
vibrationState
integer
必需
warnGapTime
integer
必需
warnMode
integer
必需
warnTime
integer
必需
webVersion
string
必需
wifiSignal
integer
必需
withIoT
integer
必需
workTime
array[integer]
必需
tabId
integer
必需
timestamp
integer
必需
total
integer
必需
示例
{
"cmdResult": "string",
"code": 0,
"currentKnifeNum": 0,
"currentSceneNum": 0,
"deviceName": "string",
"knifeNum": 0,
"msg": 0,
"sceneNum": 0,
"sceneSize": 0,
"specialSceneNum": 0,
"sysInfo": {
"G00OutCheck": 0,
"G01OutCheck": 0,
"IOConfig": 0,
"adminPassword": 0,
"autoLearnState": 0,
"autoRMode": 0,
"autoRModeTime": 0,
"autoRatioMax": 0,
"autoRatioMin": 0,
"autoRatioState": 0,
"changeKnifeToNormal": 0,
"copIP": "string",
"copMAC": "string",
"copVersion": "string",
"ct": [
null
],
"currentState": 0,
"currentWarnCount": 0,
"currentWarnGapTime": 0,
"detectorMaxSize": 0,
"detectorSize": 0,
"detectors": [
{
"G00DOffset": 0,
"alarm": 0,
"autoRatioValue": 0,
"dataIndex": 0,
"dataLength": 0,
"highLimit": 0,
"highPass": 0,
"index": 0,
"iot": 0,
"isUse": 0,
"lowLimit": 0,
"lowPass": 0,
"max": 0,
"real": 0,
"sensor": 0,
"sensorIP": 0,
"sensorIPLast": 0,
"sensorMAC": 0,
"state": 0,
"type": 0,
"version": 0
}
],
"deviceType": 0,
"elecKeepTime": 0,
"fanDuty": 0,
"fpgaVersion": 0,
"funcConfig": 0,
"funcVersion": 0,
"fwVersion": "string",
"g01OptimSave": 0,
"g01PlimitM": 0,
"g4Signal": 0,
"gapForce": 0,
"highElecKeepTime": 0,
"iccid": "string",
"initCurrentStep": 0,
"initStepCount": 0,
"interfaces": [
{
"connectionName": "string",
"connectionState": "string",
"dns1": "string",
"dns2": "string",
"gateWay": "string",
"ip": "string",
"ipv6Method": "string",
"linkState": "string",
"mac": "string",
"method": "string",
"name": "string",
"netmask": "string",
"route": "string",
"showName": "string"
}
],
"iotHeartState": 0,
"iotState": 0,
"isAutoRMode": 0,
"isSubTask": 0,
"knifeMode": 0,
"knifeMultiWarnOptimGap": 0,
"knifeNCWarnMode": 0,
"learnMode": 0,
"learnTime": 0,
"mcuIP": "string",
"mcuMAC": "string",
"mcuVersion": "string",
"monitor": {
"cpuTemp": 0,
"cpuUsage": 0,
"frpPort": "string"
},
"multiG01Optim": 0,
"multiG01OptimMAX": 0,
"nc": {
"DNCPassword": "string",
"PLCPassword": "string",
"brand": "string",
"connectPassword": "string",
"index": 0,
"ip": "string",
"isUse": 0,
"localPort": 0,
"machineBrand": "string",
"machineCode": "string",
"machineModel": "string",
"machineType": "string",
"machineVersion": "string",
"model": "string",
"ncDeviceName": "string",
"port": 0,
"protocol": 0,
"remark": "string",
"sampleInterval": 0,
"state": 0,
"version": "string"
},
"ncDeviceName": "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"
}
],
"ncList": [
{
"DNCPassword": "string",
"PLCPassword": "string",
"brand": "string",
"connectPassword": "string",
"index": 0,
"ip": "string",
"isUse": 0,
"localPort": 0,
"machineBrand": "string",
"machineCode": "string",
"machineModel": "string",
"machineType": "string",
"machineVersion": "string",
"model": "string",
"ncDeviceName": "string",
"port": 0,
"protocol": 0,
"remark": "string",
"sampleInterval": 0,
"state": 0,
"version": "string"
}
],
"ncState": 0,
"ncUpdateMode": 0,
"ncVersion": "string",
"netTestState": 0,
"pcIP": "string",
"pcMAC": "string",
"ratioMode": 0,
"restTime": [
0
],
"restTimeCount": 0,
"saveHistory": 0,
"sceneMode": 0,
"scenes": [
{
"autoRatioState": 0,
"dataTime": 0,
"detectorSize": 0,
"detectors": [
{
"G00DOffset": 0,
"alarm": 0,
"autoRatioValue": 0,
"dataIndex": 0,
"dataLength": 0,
"highLimit": 0,
"highPass": 0,
"index": 0,
"iot": 0,
"isUse": 0,
"lowLimit": 0,
"lowPass": 0,
"max": 0,
"real": 0,
"sensor": 0,
"sensorIP": 0,
"sensorIPLast": 0,
"sensorMAC": 0,
"state": 0,
"type": 0,
"version": 0
}
],
"g00Offset": 0,
"knifeDia": 0,
"knifeLen": 0,
"knifeLift": 0,
"knifeName": "string",
"knifeNum": 0,
"knifeR": 0,
"knifeRemark": "string",
"knifeType": 0,
"material": 0,
"multiOptimRatio": 0,
"ncUpdateWarn": 0,
"reverse1": 0,
"reverse2": 0,
"sceneId": 0,
"sceneNum": 0,
"selfLearnTime": 0,
"specialSceneNum": 0,
"version": 0,
"warnRatio": 0,
"workMode": 0
}
],
"schedule": 0,
"sensorConfig": {
"alarmAccX": 0,
"alarmAccY": 0,
"alarmAccZ": 0,
"code": 0,
"curEmergencyState": 0,
"curPauseState": 0,
"curRatio": 0,
"curRatioCtrlMode": 0,
"curRatioIndex": 0,
"curSensorFrequency": 0,
"curSensorRange": 0,
"deviceType": 0,
"empty1": 0,
"empty2": 0,
"empty3": 0,
"empty4": 0,
"empty5": 0,
"empty6": 0,
"empty7": 0,
"empty8": 0,
"ip4": 0,
"respMode": 0
},
"sensorStatus": [
null
],
"sensors": [
{
"deviceCheck": "string",
"deviceID": "string",
"deviceIP": "string",
"deviceIPInt": 0,
"deviceName": "string",
"deviceType": 0,
"deviceTypeStr": "string",
"mainVersion": "string",
"subVersion": "string"
}
],
"serverAddress": "string",
"serverPort": 0,
"signal": 0,
"specialSceneCleanTime": 0,
"superPassword": 0,
"uploadGap": 0,
"uploadLevel": 0,
"version": 0,
"vibrationState": 0,
"warnGapTime": 0,
"warnMode": 0,
"warnTime": 0,
"webVersion": "string",
"wifiSignal": 0,
"withIoT": 0,
"workTime": [
0
]
},
"tabId": 0,
"timestamp": 0,
"total": 0
}
修改于 2024-11-07 07:16:43