跳到主要内容

SetDeviceAttrubte

调用该接口set device attribte。

Request​

post /devices/{id}/attribute/set
NameLocated inTypeDescription
idpathstring设备Id

Request Body​

DescriptionTypeSchema
设置内容Objectv1SetContent

v1SetContent​

NameTypeDescription
idstring属性 or 命令 标识符id
valueObject设置的 value

Response​

Response 200​

Code3DescriptionType
200OK{ { }}

Response default​

Code2DescriptionTypeSchema
defaultAn unexpected error response.ObjectrpcStatus

rpcStatus​

NameTypeDescription
codeinteger
detailsArray[protobufAny][ 具体参数可见下面 protobufAny ]
messagestring

protobufAny​

NameTypeDescription
@typestring