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

    请扫码查看示例

    # createHome ^7.9

    创建家庭

    # 请求参数

    Prop Type Default Comment
    name String N/A 家庭名称

    # 引入接口模块

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

    # 接口调用示例

    const params = {
      name: '家庭名称',
    }
    bridge
      .createHome(params)
      .then((res) => {
        console.log(res)
      })
      .catch((err) => {
        console.log(err)
      })
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11

    # 接口返回示例

    {
        "address": "",
        "coordinate": "123.123,30.122",
        "roleId": "1001",
        "areaid": "101010300",
        "createUserUid": "369ae3682b714836bf296c63cfd0351d",
        "homegroupId": "151230",
        "number": "151230",
        "isDefault": "",
        "des": "测试家庭2",
        "profilePicUrl": "",
        "createTime": "Fri Jun 29 21:29:30 CST 2018",
        "name": "18682212804的家2",
        "nickname": "",
        "roomList": [
            {
                "name": "客厅",
                "homegroupId": "151230",
                "roomId": "1521",
                "desc": "系统默认的客厅"
            }
        ]
    }
    
    
    
    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