# 保存预置
该接口可以将当前屏幕内容保存为预置场景。
# 请求路径
{CLTPlatform-ip}:8086/processor/savePreset
- 请求地址替换为对应的 ip 地址
- 请求端口号为
8086
# 请求协议
HTTP
# 请求方法
POST
# 请求参数
- 请求体的
Content-Type
请设置为application/json
参数名 | 说明 | 必填 | 类型 | 数据字典 | 限制 | 示例 |
---|---|---|---|---|---|---|
command | 指令类型 | 是 | [string] | processor/savePreset | ||
data | 数据 | 是 | [object] | |||
data>>index | 发送器序号(从0开始,-1表示广播) | 是 | [int] | |||
data>>groupIndex | 屏幕分组数 | 是 | [int] | |||
data>>presetIndex | 预置参数序号 | 是 | [int] | |||
data>>presetName | 预置参数名称(UTF-8,最长47字节) | 是 | [string] | |||
data>>bSaveColorBrightness | 是否预置颜色亮度相关参数 | 是 | [boolean] |
# 请求示例
{
"command": "processor/savePreset",
"data": {
"index": 0,
"groupIndex": 0,
"presetIndex": 0,
"presetName": "",
"bSaveColorBrightness": false
}
}
# 返回结果
参数名 | 说明 | 必填 | 类型 | 数据字典 | 限制 | 示例 |
---|---|---|---|---|---|---|
command | 指令类型 | 是 | [string] | processor/savePreset | ||
code | 状态码 | 是 | [int] | |||
message | 消息 | 是 | [string] | |||
data | 数据 | 是 | [object] |
# 返回示例
{
"code": 20000,
"command": "processor/savePreset",
"data": {},
"message": "Common_Success"
}