简体中文
简体中文
English
联系我们
注册
登录
layout空间导航

v1.9.6 接口变更

更新时间:2022-02-17 06:18:47下载pdf

本文介绍 v1.9.6 版本与 v1.0 版本的商用照明 App SDK 安卓版的相关变更。SDK 版本更新时间请参考 更新日志

变更对比

1.0 API 1.9.6 API 说明
TuyaCommercialLightingSdk#init TuyaSdk#init SDK初始化
TuyaCommercialLightingSdk#setDebugMode TuyaSdk#setDebugMode SDK设置Debug模式
TuyaCommercialLightingSdk#onDestroy TuyaSdk#onDestroy 注销涂鸦 IoT 云连接
TuyaCommercialLightingSdk#setOnNeedLoginListener TuyaSdk#setOnNeedLoginListener 设置登录接口回调
TuyaCommercialLightingSdk#newProjectInstance TuyaCommercialLightingProject#newProjectInstance 创建项目接口对象实现
TuyaCommercialLightingSdk#getLightingProjectManager TuyaCommercialLightingProject#getLightingProjectManager 查询项目管理类对象
TuyaCommercialLightingSdk#newAreaInstance TuyaCommercialLightingArea#newAreaInstance 创建空间实例
TuyaCommercialLightingSdk#getLightingAreaManager TuyaCommercialLightingArea#getLightingAreaManager 查询空间管理类对象
TuyaCommercialLightingSdk#getLightingUserManager TuyaOSUser#getUserInstance 查询用户管理类对象
TuyaCommercialLightingSdk#getGroupPackManager TuyaCommercialLightingGroupPack#getGroupPackManager 查询组合群组管理类
TuyaCommercialLightingSdk#newGroupPackInstance TuyaCommercialLightingGroupPack#newGroupPackInstance 创建组合群组实例
TuyaCommercialLightingSdk#getProjectConfig TuyaCommercialLightingProject#getProjectConfig 查询项目配置
TuyaCommercialLightingSdk#getAreaObserverManager TuyaCommercialLightingArea#getAreaObserverManager 查询空间观察者管理对象
TuyaCommercialLightingSdk#newDeviceInstance TuyaOSDevice#newDeviceInstance 创建设备对象
TuyaCommercialLightingSdk#newGatewayInstance TuyaOSDevice#newGatewayInstance 创建网关对象
TuyaCommercialLightingSdk#getActivatorInstance TuyaOSActivator#deviceActivator 查询设备配网实例
TuyaCommercialLightingSdk#getBleManager TuyaOSBLE#manager 查询蓝牙设备管理类
TuyaCommercialLightingSdk#getBleOperator TuyaOSBLE#operator 查询蓝牙设备操作对象
TuyaCommercialLightingSdk#newSigMeshDeviceInstance TuyaOSMesh#newDevice 创建蓝牙Mesh设备对象
TuyaCommercialLightingSdk#getTuyaBlueMeshConfig TuyaOSMesh#activator 查询私有蓝牙Mesh配网对象
TuyaCommercialLightingSdk.newSigMeshDeviceInstance TuyaOSMesh#newDevice
TuyaCommercialLightingSdk.newBlueMeshDeviceInstance TuyaOSTyMesh#newDevice
TuyaCommercialLightingSdk#getMeshInstance TuyaCommercialLightingBLE#getMeshInstance
TuyaCommercialLightingSdk#getSigMeshInstance TuyaCommercialLightingBLE#getSigMeshInstance
TuyaCommercialLightingSdk#getTuyaBlueMeshClient TuyaCommercialLightingBLE#getTuyaBlueMeshClient
TuyaCommercialLightingSdk#getTuyaSigMeshClient TuyaCommercialLightingBLE#getTuyaSigMeshClient
TuyaCommercialLightingSdk#getDeviceManager TuyaCommercialLightingDevice#getDeviceManager

新增 API

API 说明
TuyaCommercialLightingRegion#getRegionManager 查询区域管理类,在室外项目中使用
TuyaCommercialLightingRepair#getRepairManager 查询设备报修管理类
TuyaCommercialLightingRepair#newRepairInstance 创建设备报修实例对象
TuyaCommercialLightingRepair#getRepairUploader 查询设备报修文件上传接口类
TuyaCommercialLightingSysAlarm#getSysAlarmInstance 查询系统告警实例
TuyaCommercialLightingEnergy#getLightingEnergy 查询设备能耗对象

已删除 API

  • TuyaCommercialLightingSdk#getDeviceManager
  • TuyaCommercialLightingSdk#newBlueMeshDeviceInstance
  • TuyaCommercialLightingSdk#newBlueMeshGroupInstance
  • TuyaCommercialLightingSdk#newSigMeshGroupInstance
  • TuyaCommercialLightingSdk#newBlueMeshLocalGroupInstance
  • TuyaCommercialLightingSdk#getMeshInstance
  • TuyaCommercialLightingSdk#getSigMeshInstance
  • TuyaCommercialLightingSdk#getTuyaBlueMeshClient
  • TuyaCommercialLightingSdk#getTuyaSigMeshClient

设备基础能力模块门面类

API 说明
TuyaOSActivator 设备配网模块门面类
TuyaOSBLE 蓝牙模块门面类
TuyaOSCamera 摄像头模块门面类
TuyaOSDevice 设备侧能力门面类
TuyaOSMesh 蓝牙Mesh模块门面类
TuyaOSMQTT MQTT模块门面类
TuyaOSMultiControl 设备多控模块门面类
TuyaOSTimer 定时模块门面类
TuyaOSUser 用户模块门面类

商照业务模块门面类

API 说明
TuyaCommercialLightingArea 空间管理模块门面类
TuyaCommercialLightingEnergy 设备能耗模块门面类
TuyaCommercialLightingGroupPack 组合群组模块门面类
TuyaCommercialLightingProject 项目管理模块门面类
TuyaCommercialLightingRegion 区域模块门面类 (仅适用于户外项目)
TuyaCommercialLightingRepair 设备报修模块门面类
TuyaCommercialLightingSysAlarm 系统告警模块门面类
TuyaCommercialLightingBLE 商照蓝牙相关能力(不建议使用,后续有废弃风险)
TuyaCommercialLightingDevice 商照设备相关能力(不建议使用,后续有废弃风险)