1. 智能插座通用网关接入Demo
DTS模拟输入测试
  • 智能冰箱通用网关接入Demo
    • 自定义设备上报
      POST
    • 自定义数据接入-属性
      POST
    • 自定义数据接入-事件
      POST
    • 自定义Topic上报
      POST
    • 自定义Topic下行
      POST
    • 服务调用下行
      POST
  • 智能插座通用网关接入Demo
    • 标准设备上报
      POST
    • 标准数据接入-属性
      POST
    • 标准数据接入-事件
      POST
  1. 智能插座通用网关接入Demo

标准数据接入-事件

POST
http://192.168.100.38:48083/bv-universal-gateway/api/accessGateway/rawDataToProtocol

请求参数

Authorization
在 header 添加参数
bv-api-key
示例:
bv-api-key: ********************
Body 参数application/json

示例
{
    "method": 1,
    "productId": "ovw9GOl46TSqbedc",
    "deviceId": "b28baf9c-40cc-4fe7-9488-8bc28f28717f",
    "identifier": "PowerOverload",
    "deviceStatus": {% mock 'integer', 0, 1 %},
    "payload": {
        "ratedPower": {% mock 'natural', 1000, 3000 %},
        "currentPower": {% mock 'natural', 500, 1500 %}
    }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'http://192.168.100.38:48083/bv-universal-gateway/api/accessGateway/rawDataToProtocol' \
--header 'bv-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "method": 1,
    "productId": "ovw9GOl46TSqbedc",
    "deviceId": "b28baf9c-40cc-4fe7-9488-8bc28f28717f",
    "identifier": "PowerOverload",
    "deviceStatus": {% mock '\''integer'\'', 0, 1 %},
    "payload": {
        "ratedPower": {% mock '\''natural'\'', 1000, 3000 %},
        "currentPower": {% mock '\''natural'\'', 500, 1500 %}
    }
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
    "code": 0,
    "message": "string",
    "info": null
}
修改于 2025-05-18 10:10:42
上一页
标准数据接入-属性
Built with