MiniX自绘渲染跨平台框架
  • 框架说明
  • 声明式开发范式
  • 内置Api
指南
接口
  • Minix CLI
示例
  • 类Web框架

    • 框架说明
    • 类Web开发范式
    • 内置Api
  • 指南
  • 组件
  • 接口
  • 示例
  • 规范
  • DophinHybrid

    • 快速上手 (opens new window)
    • UI 组件库 (opens new window)
    • jsBridge 接口 (opens new window)
  • DolphinWeex

    • 快速上手 (opens new window)
    • UI 组件库 (opens new window)
    • jsBridge 接口 (opens new window)
  • 发布消息
  • 常见问题
  • 更新日志
  • 框架说明
  • 声明式开发范式
  • 内置Api
指南
接口
  • Minix CLI
示例
  • 类Web框架

    • 框架说明
    • 类Web开发范式
    • 内置Api
  • 指南
  • 组件
  • 接口
  • 示例
  • 规范
  • DophinHybrid

    • 快速上手 (opens new window)
    • UI 组件库 (opens new window)
    • jsBridge 接口 (opens new window)
  • DolphinWeex

    • 快速上手 (opens new window)
    • UI 组件库 (opens new window)
    • jsBridge 接口 (opens new window)
  • 发布消息
  • 常见问题
  • 更新日志
  • 快速上手
  • Basic 基础

  • Account

  • UI 界面

  • Device 设备

  • Bluetooth 蓝牙

  • Wifi WiFi

  • HomeManage 家庭管理

    • getHomeInfo 获取家庭信息及其设备列表
      • getAllHomeInfoList 获取所有的家庭信息(不包含设备信息)
      • createHome 创建家庭
      • deleteHome 删除家庭
      • getHomeMemberList 获取家庭成员列表
      • inviteToHome 邀请家庭成员
      • refreshHomeInfo 刷新家庭信息
    • RoomManage 房间管理

    • Media 媒体

    • Location 定位

    • Encryption 加/解密

    • FileStorage 文件/存储

    • Http 网络/请求

    • weather 天气信息

    • Siri

    • TelPhone

    请扫码查看示例

    # getHomeInfo ^7.9

    获取家庭信息及其设备列表

    # 请求参数

    Prop Type Default Comment
    homeId String N/A 家庭 id
    isCurrentFamily String N/A 是否是当前家庭 ,0:否,1 是
    hasRoomAndDeviceInfo String N/A 是否附带房间和设备信息,0:否,1 是

    # 引入接口模块

    import bridge from '@minix-iot/etsbridge-sdk'
    
    1

    # 接口调用示例

    const params = {
      homeId: '家庭id',
      isCurrentFamily: '是否是当前家庭 ,0:否,1是',
      hasRoomAndDeviceInfo: '是否附带房间和设备信息,0:否,1是 ',
    }
    bridge
      .getHomeInfo(params)
      .then((res) => {
        console.log(res)
      })
      .catch((err) => {
        console.log(err)
      })
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13

    # 接口返回示例

    {
        "homeId": "123456",
        "homeName": "林首富之家",
        "isOwner": "1",
        "address": "string",
        "coordinate": "string",
        "areaid": "string",
        "isLocal": "0",
        "deviceList": [
            {
                "masterId": "xxx",
                "roomId": "xxx",
                "roomName": "xxx",
                "deviceId": "xxxxx",
                "deviceName": "xxxxxx",
                "deviceType": "xxxx",
                "deviceSubType": "xxxxx",
                "deviceSn": "xxxxxxxxx",
                "deviceSnDecrypt": "xxxxx",
                "deviceSn8": "xxxxxxxx",
                "isOnline": 1,
                "attrs": "xxx"
            }
        ],
        "roomList": [
            {
                "roomId": "xxx",
                "name": "xxx",
                "des": "xxx",
                "icon": "",
                "isDefault": "1"
            }
        ]
    }
    
    
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36