描述:

下发设备配置参数到设备;
可用于通知设备上传相关信息到指定地址

请求说明

协议 方法 PATH
HTTPS POST /open/sendSettingsParameters

测试环境:https://deviceiotapi.szymzh.com

正式环境:https://deviceopenapi.ymlot.cn

PATH参数

URL参数

参数 类型 必填 说明
appId string appId
expires string 过期时间
signature string 签名

Body参数

参数 类型 必填 说明
deviceNo string 设备编号
paramType int 设置参数的类型,0文本字符串,1下载地址,默认为文本字符串,当设置参数过多,可以考虑使用下载地址
paramContent String paramType为0,设置参数的内容
paramUrl String paramType为1,设置参数下载地址

下发参数 paramContent(具体设置下发以具体业务来确定,例如下面是第三方平台地址设置参数)

参数 类型 必填 说明
thirdEventState int 设备是否上传事件给第三方 0否,1是
thirdAddr String 设备上传第三方接口回调地址
thirdMsg String 设备上传第三方接口的描述消息

parentContent内容可以为:

{"thirdEventState":1, "thirdAddr":"","thirdMsg":""}

请求示例

POST https://deviceopenapi.ymlot.cn/open/sendSettingsParameters?appId=ym3b7f242fc0814489&expires=1739583239&signature=HjWxXvZ7q7MY%2ByCCoY2LIVBsOX1d0G8YsRbkGeL%2FGRw%3D HTTP/1.1

Content-Length: 202
Content-Type: application/json

{
        "deviceNo": "P06F07FDF0DF878",
        "paramType": 0,
        "paramContent": "",
        "thirdPlafromMessage":""
}

返回参数

参数名 必选 类型 说明
code int 响应状态码
msg String 响应消息

返回示例

{
    "code": 0,
    "msg": "操作成功"
}
作者:mry  创建时间:2025-09-12 14:32
最后编辑:mry  更新时间:2025-09-12 14:34