简要描述:
流量计脉冲设置
请求域名:
- http://xx.com
请求路由:
plugin.yz-supply-hydrogen-water-system.frontend.device.device.set-flow-pulse
请求参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| device_id | int | 设备ID |
| pulse | int | 脉冲数,必须大于0 |
| remark | string | 备注 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "流量计脉冲设置成功",
"data": {
"device_id": 1,
"device_imei": "123456789",
"pulse": 100,
"third_response": {
"device_id": 1,
"device_sn": "SN123456",
"imei": "123456789",
"iccid": "89860000000000000000",
"pulse": 100,
"success": true,
"message": "流量计脉冲设置成功",
"sent_count": 1,
"modified_at": 1777500000,
"received_data": "AGQ="
}
}
}
返回参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| device_id | int | 设备ID |
| device_imei | string | 设备IMEI |
| pulse | int | 脉冲数 |
| third_response | object | 中台返回数据 |
简要描述:
工作压差设置
请求域名:
- http://xx.com
请求路由:
plugin.yz-supply-hydrogen-water-system.frontend.device.device.set-work-pressure
请求参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| device_id | int | 设备ID |
| work_pressure | float | 工作压差 |
| remark | string | 备注 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "工作压差设置成功",
"data": {
"device_id": 1,
"device_imei": "123456789",
"work_pressure": 1.5,
"third_response": {
"device_id": 1,
"device_sn": "SN123456",
"imei": "123456789",
"iccid": "89860000000000000000",
"command_code": 27,
"operation_key": "set_work_pressure",
"setting_name": "工作压差",
"setting_value": 15,
"success": true,
"message": "工作压差设置成功",
"sent_count": 1,
"modified_at": 1777500000,
"received_data": "AA8="
}
}
}
返回参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| device_id | int | 设备ID |
| device_imei | string | 设备IMEI |
| work_pressure | float | 工作压差 |
| third_response | object | 中台返回数据 |
简要描述:
压力检测类型设置
请求域名:
- http://xx.com
请求路由:
plugin.yz-supply-hydrogen-water-system.frontend.device.device.set-pressure-detection-type
请求参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| device_id | int | 设备ID |
| pressure_detection_type | int | 压力检测类型:0压力传感器,1高压开关 |
| remark | string | 备注 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "压力检测类型设置成功",
"data": {
"device_id": 1,
"device_imei": "123456789",
"pressure_detection_type": 1,
"third_response": {
"device_id": 1,
"device_sn": "SN123456",
"imei": "123456789",
"iccid": "89860000000000000000",
"command_code": 25,
"operation_key": "set_pressure_detection_type",
"setting_name": "压力检测类型",
"setting_value": 1,
"success": true,
"message": "压力检测类型设置成功",
"sent_count": 1,
"modified_at": 1777500000,
"received_data": "AAE="
}
}
}
返回参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| device_id | int | 设备ID |
| device_imei | string | 设备IMEI |
| pressure_detection_type | int | 压力检测类型 |
| third_response | object | 中台返回数据 |
简要描述:
槽内TDS报警值设置
请求域名:
- http://xx.com
请求路由:
plugin.yz-supply-hydrogen-water-system.frontend.device.device.set-tds-alarm
请求参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| device_id | int | 设备ID |
| tds_alarm | int | 槽内TDS报警值 |
| remark | string | 备注 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "槽内TDS报警值设置成功",
"data": {
"device_id": 1,
"device_imei": "123456789",
"tds_alarm": 100,
"third_response": {
"device_id": 1,
"device_sn": "SN123456",
"imei": "123456789",
"iccid": "89860000000000000000",
"command_code": 28,
"operation_key": "set_tds_alarm",
"setting_name": "槽内TDS报警值",
"setting_value": 100,
"success": true,
"message": "槽内TDS报警值设置成功",
"sent_count": 1,
"modified_at": 1777500000,
"received_data": "AGQ="
}
}
}
返回参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| device_id | int | 设备ID |
| device_imei | string | 设备IMEI |
| tds_alarm | int | 槽内TDS报警值 |
| third_response | object | 中台返回数据 |
简要描述:
槽内电压报警值设置
请求域名:
- http://xx.com
请求路由:
plugin.yz-supply-hydrogen-water-system.frontend.device.device.set-voltage-alarm
请求参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| device_id | int | 设备ID |
| voltage_alarm | float | 槽内电压报警值 |
| remark | string | 备注 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "槽内电压报警值设置成功",
"data": {
"device_id": 1,
"device_imei": "123456789",
"voltage_alarm": 220,
"third_response": {
"device_id": 1,
"device_sn": "SN123456",
"imei": "123456789",
"iccid": "89860000000000000000",
"command_code": 29,
"operation_key": "set_voltage_alarm",
"setting_name": "槽内电压报警值",
"setting_value": 22000,
"success": true,
"message": "槽内电压报警值设置成功",
"sent_count": 1,
"modified_at": 1777500000,
"received_data": "VfA="
}
}
}
返回参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| device_id | int | 设备ID |
| device_imei | string | 设备IMEI |
| voltage_alarm | float | 槽内电压报警值 |
| third_response | object | 中台返回数据 |
简要描述:
温度传感器使能设置
请求域名:
- http://xx.com
请求路由:
plugin.yz-supply-hydrogen-water-system.frontend.device.device.set-temperature-sensor-enabled
请求参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| device_id | int | 设备ID |
| enabled | int | 是否启用:0关闭,1开启 |
| remark | string | 备注 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "温度传感器使能设置成功",
"data": {
"device_id": 1,
"device_imei": "123456789",
"enabled": 1,
"third_response": {
"device_id": 1,
"device_sn": "SN123456",
"imei": "123456789",
"iccid": "89860000000000000000",
"command_code": 30,
"operation_key": "set_temperature_sensor_enabled",
"setting_name": "温度传感器使能",
"setting_value": 1,
"success": true,
"message": "温度传感器使能设置成功",
"sent_count": 1,
"modified_at": 1777500000,
"received_data": "AAE="
}
}
}
返回参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| device_id | int | 设备ID |
| device_imei | string | 设备IMEI |
| enabled | int | 是否启用 |
| third_response | object | 中台返回数据 |
简要描述:
漏水保护使能设置
请求域名:
- http://xx.com
请求路由:
plugin.yz-supply-hydrogen-water-system.frontend.device.device.set-leakage-protection-enabled
请求参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| device_id | int | 设备ID |
| enabled | int | 是否启用:0关闭,1开启 |
| remark | string | 备注 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "漏水保护使能设置成功",
"data": {
"device_id": 1,
"device_imei": "123456789",
"enabled": 1,
"third_response": {
"device_id": 1,
"device_sn": "SN123456",
"imei": "123456789",
"iccid": "89860000000000000000",
"command_code": 31,
"operation_key": "set_leakage_protection_enabled",
"setting_name": "漏水保护使能",
"setting_value": 1,
"success": true,
"message": "漏水保护使能设置成功",
"sent_count": 1,
"modified_at": 1777500000,
"received_data": "AAE="
}
}
}
返回参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| device_id | int | 设备ID |
| device_imei | string | 设备IMEI |
| enabled | int | 是否启用 |
| third_response | object | 中台返回数据 |
简要描述:
获取设备设置限制
请求域名:
- http://xx.com
请求路由:
plugin.yz-supply-hydrogen-water-system.frontend.device.device.find-setting
请求参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| 无 | - | 无 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "获取成功",
"data": {
"values": "{\"work_pressure_min\":0.5,\"work_pressure_max\":2,\"tds_alarm_min\":0,\"tds_alarm_max\":100,\"voltage_alarm_min\":200,\"voltage_alarm_max\":240}",
"setting": {
"work_pressure_min": 0.5,
"work_pressure_max": 2,
"tds_alarm_min": 0,
"tds_alarm_max": 100,
"voltage_alarm_min": 200,
"voltage_alarm_max": 240
},
"limits": {
"work_pressure": {
"min": 0.5,
"max": 2
},
"tds_alarm": {
"min": 0,
"max": 100
},
"voltage_alarm": {
"min": 200,
"max": 240
}
},
"third_response": {
"values": "{\"work_pressure_min\":0.5,\"work_pressure_max\":2,\"tds_alarm_min\":0,\"tds_alarm_max\":100,\"voltage_alarm_min\":200,\"voltage_alarm_max\":240}"
}
}
}
返回参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| values | string | 中台原始设置JSON字符串 |
| setting | object | 解析后的设置 |
| limits | object | 设置范围限制 |
| work_pressure | object | 工作压差范围 |
| tds_alarm | object | TDS报警值范围 |
| voltage_alarm | object | 电压报警值范围 |
| third_response | object | 中台返回数据 |