产品:飞企继电器(8路)

拥有8路控制的继电器

编解码协议

选择官方标准协议

基础信息

物模型

物模型定义

  • 物模型TSL
{
  "events": [],
  "properties": [],
  "functions": [
    {
      "id": "on_off",
      "name": "开关控制",
      "async": true,
      "output": {
        "type": "object",
        "properties": [
          {
            "id": "code",
            "name": "返回码",
            "valueType": {
              "type": "int"
            },
            "description": "200 成功  -1失败"
          },
          {
            "id": "msg",
            "name": "说明",
            "valueType": {
              "type": "string"
            }
          }
        ]
      },
      "inputs": [
        {
          "id": "control",
          "name": "控制",
          "valueType": {
            "type": "boolean",
            "trueText": "开",
            "trueValue": "1",
            "falseText": "关",
            "falseValue": "0"
          }
        },
        {
          "id": "port",
          "name": "端口",
          "valueType": {
            "type": "string"
          }
        }
      ]
    },
    {
      "id": "on_off_all",
      "name": "全控制",
      "async": true,
      "output": {
        "type": "object",
        "properties": [
          {
            "id": "code",
            "name": "返回码",
            "valueType": {
              "type": "int"
            },
            "description": "200 成功 -1 失败"
          },
          {
            "id": "msg",
            "name": "说明",
            "valueType": {
              "type": "string"
            }
          }
        ]
      },
      "inputs": [
        {
          "id": "control",
          "name": "控制",
          "valueType": {
            "type": "boolean",
            "trueText": "全开",
            "falseText": "全关",
            "trueValue": "1",
            "falseValue": "0"
          }
        }
      ]
    }
  ],
  "tags": [
    {
      "id": "geoPoint",
      "name": "地理位置",
      "valueType": {
        "type": "geoPoint"
      },
      "expands": {
        "readOnly": "false"
      }
    }
  ]
}

物模型-参数

物模型-功能

物模型-事件

物模型-标签

网关协议

不使用网关协议进行终端对接

流文件

参考产品开发示例

文档更新时间: 2023-06-12 11:11   作者:管理员