Tuya iOS Smart Life App SDK 5.15.0
<ThingSmartBLEActiveDelegate> Protocol Reference

用于处理解耦后的BLEKitCore在激活/解绑阶段想要的一些数据回调,比如秘钥、注册的gid等等,回头要拆到public里 More...

#import <ThingSmartBLEActiveDelegate.h>

Inheritance diagram for <ThingSmartBLEActiveDelegate>:

Instance Methods

(void) - transEncKeyWithAdvModel:encKeyType:handler:failure:
 
(void) - registerToServe:devId:encryptedAuthKey:productKey:pv:sv:mac:isRegisterKey:isShare:options:success:failure:
 注册设备到云端 More...
 
(NSInteger) - getExtModuleType:
 
(void) - activateExtendedModule:automatic:success:failure:
 
(void) - activateExtendedWiFiModule:automatic:ssid:password:success:failure:
 
(void) - validateBLEBeaconCapability:
 
(void) - handleChipEncrypt:success:failure:
 
(void) - syncDeviceInfo:devId:handler:failure:
 
(void) - activeFailed:
 
(void) - unbindDevice:handler:failure:
 
(void) - updateDeviceInfo:
 
(void) - reportDps:devId:dpsTime:mode:reportType:
 上报dp点 More...
 
(void) - reportDps:mac:dpsTime:mode:reportType:
 上报dp点(无devId本地类型设备) More...
 
(void) - reportDps:devId:dpsTimeMap:mode:reportType:
 上报dp点,time 是个 map More...
 
(void) - updateOTAVersion:otaType:otaVersion:
 
(void) - updateBLEOnlineStatus:isOnline:
 
(void) - discoverBleChannel:services:
 
(void) - transferPSKInfoWithSL:handler:failure:
 
(void) - didScanWifiListSuccess:failure:
 
(void) - transEncKeyWithAdvModel:encKeyType:handler:failure:
 
(void) - registerToServe:devId:encryptedAuthKey:productKey:pv:sv:mac:isRegisterKey:isShare:options:success:failure:
 注册设备到云端 More...
 
(NSInteger) - getExtModuleType:
 
(void) - activateExtendedModule:automatic:success:failure:
 
(void) - activateExtendedWiFiModule:automatic:ssid:password:success:failure:
 
(void) - validateBLEBeaconCapability:
 
(void) - handleChipEncrypt:success:failure:
 
(void) - syncDeviceInfo:devId:handler:failure:
 
(void) - activeFailed:
 
(void) - unbindDevice:handler:failure:
 
(void) - updateDeviceInfo:
 
(void) - reportDps:devId:dpsTime:mode:reportType:
 上报dp点 More...
 
(void) - reportDps:mac:dpsTime:mode:reportType:
 上报dp点(无devId本地类型设备) More...
 
(void) - reportDps:devId:dpsTimeMap:mode:reportType:
 上报dp点,time 是个 map More...
 
(void) - updateOTAVersion:otaType:otaVersion:
 
(void) - updateBLEOnlineStatus:isOnline:
 
(void) - discoverBleChannel:services:
 
(void) - transferPSKInfoWithSL:handler:failure:
 
(void) - didScanWifiListSuccess:failure:
 

Detailed Description

用于处理解耦后的BLEKitCore在激活/解绑阶段想要的一些数据回调,比如秘钥、注册的gid等等,回头要拆到public里

Definition at line 26 of file ThingSmartBLEActiveDelegate.h.

Method Documentation

◆ activateExtendedModule:automatic:success:failure: [1/2]

- (void) activateExtendedModule: (NSString *)  devId
automatic: (BOOL)  automatic
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 
optional

◆ activateExtendedModule:automatic:success:failure: [2/2]

- (void) activateExtendedModule: (NSString *)  devId
automatic: (BOOL)  automatic
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 
optional

◆ activateExtendedWiFiModule:automatic:ssid:password:success:failure: [1/2]

- (void) activateExtendedWiFiModule: (NSString *)  devId
automatic: (BOOL)  automatic
ssid: (NSString *)  ssid
password: (NSString *)  pwd
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 
optional

◆ activateExtendedWiFiModule:automatic:ssid:password:success:failure: [2/2]

- (void) activateExtendedWiFiModule: (NSString *)  devId
automatic: (BOOL)  automatic
ssid: (NSString *)  ssid
password: (NSString *)  pwd
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 
optional

◆ activeFailed: [1/2]

- (void) activeFailed: (NSString *)  devId
optional

激活失败

Parameters
devId设备id

◆ activeFailed: [2/2]

- (void) activeFailed: (NSString *)  devId
optional

激活失败

Parameters
devId设备id

◆ didScanWifiListSuccess:failure: [1/2]

- (void) didScanWifiListSuccess: (NSArray *)  wifiList
failure: (nullable NSError *)  error 
optional

◆ didScanWifiListSuccess:failure: [2/2]

- (void) didScanWifiListSuccess: (NSArray *)  wifiList
failure: (nullable NSError *)  error 
optional

◆ discoverBleChannel:services: [1/2]

- (void) discoverBleChannel: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
services: (NSArray *)  services 
optional

发现大数据通道

Parameters
deviceInfo设备信息
servicesservices

◆ discoverBleChannel:services: [2/2]

- (void) discoverBleChannel: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
services: (NSArray *)  services 
optional

发现大数据通道

Parameters
deviceInfo设备信息
servicesservices

◆ getExtModuleType: [1/2]

- (NSInteger) getExtModuleType: (NSString *)  devId
optional

◆ getExtModuleType: [2/2]

- (NSInteger) getExtModuleType: (NSString *)  devId
optional

◆ handleChipEncrypt:success:failure: [1/2]

- (void) handleChipEncrypt: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 
optional

激活流程加签

Parameters
deviceInfo设备信息
successsuccess
failurefailure

◆ handleChipEncrypt:success:failure: [2/2]

- (void) handleChipEncrypt: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 
optional

激活流程加签

Parameters
deviceInfo设备信息
successsuccess
failurefailure

◆ registerToServe:devId:encryptedAuthKey:productKey:pv:sv:mac:isRegisterKey:isShare:options:success:failure: [1/2]

- (void) registerToServe: (NSString *)  uuid
devId: (nullable NSString *)  devId
encryptedAuthKey: (NSString *)  encryptedAuthKey
productKey: (NSString *)  productKey
pv: (NSString *)  pv
sv: (NSString *)  sv
mac: (nullable NSString *)  mac
isRegisterKey: (BOOL)  isRegisterKey
isShare: (BOOL)  isShare
options: (NSDictionary *)  options
success: (ThingSuccessDict success
failure: (ThingFailureError failure 
optional

注册设备到云端

◆ registerToServe:devId:encryptedAuthKey:productKey:pv:sv:mac:isRegisterKey:isShare:options:success:failure: [2/2]

- (void) registerToServe: (NSString *)  uuid
devId: (nullable NSString *)  devId
encryptedAuthKey: (NSString *)  encryptedAuthKey
productKey: (NSString *)  productKey
pv: (NSString *)  pv
sv: (NSString *)  sv
mac: (nullable NSString *)  mac
isRegisterKey: (BOOL)  isRegisterKey
isShare: (BOOL)  isShare
options: (NSDictionary *)  options
success: (ThingSuccessDict success
failure: (ThingFailureError failure 
optional

注册设备到云端

◆ reportDps:devId:dpsTime:mode:reportType: [1/2]

- (void) reportDps: (NSDictionary *)  dps
devId: (NSString *)  devId
dpsTime: (NSString *)  dpsTime
mode: (NSUInteger)  mode
reportType: (NSUInteger)  type 
optional

上报dp点

◆ reportDps:devId:dpsTime:mode:reportType: [2/2]

- (void) reportDps: (NSDictionary *)  dps
devId: (NSString *)  devId
dpsTime: (NSString *)  dpsTime
mode: (NSUInteger)  mode
reportType: (NSUInteger)  type 
optional

上报dp点

◆ reportDps:devId:dpsTimeMap:mode:reportType: [1/2]

- (void) reportDps: (NSDictionary *)  dps
devId: (NSString *)  devId
dpsTimeMap: (NSDictionary *)  dpsTimeMap
mode: (NSUInteger)  mode
reportType: (NSUInteger)  type 
optional

上报dp点,time 是个 map

◆ reportDps:devId:dpsTimeMap:mode:reportType: [2/2]

- (void) reportDps: (NSDictionary *)  dps
devId: (NSString *)  devId
dpsTimeMap: (NSDictionary *)  dpsTimeMap
mode: (NSUInteger)  mode
reportType: (NSUInteger)  type 
optional

上报dp点,time 是个 map

◆ reportDps:mac:dpsTime:mode:reportType: [1/2]

- (void) reportDps: (NSDictionary *)  dps
mac: (NSString *)  mac
dpsTime: (NSString *)  dpsTime
mode: (NSUInteger)  mode
reportType: (NSUInteger)  type 
optional

上报dp点(无devId本地类型设备)

◆ reportDps:mac:dpsTime:mode:reportType: [2/2]

- (void) reportDps: (NSDictionary *)  dps
mac: (NSString *)  mac
dpsTime: (NSString *)  dpsTime
mode: (NSUInteger)  mode
reportType: (NSUInteger)  type 
optional

上报dp点(无devId本地类型设备)

◆ syncDeviceInfo:devId:handler:failure: [1/2]

- (void) syncDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
devId: (NSString *)  devId
handler: (nullable ThingSuccessID handler
failure: (nullable ThingFailureError error 
optional

同步设备信息,业务根据 devId 获取 device 并处理后传递给 SDK

Parameters
devIddevId
handler业务层使用 handler 传递 device 给SDK
errorerror

◆ syncDeviceInfo:devId:handler:failure: [2/2]

- (void) syncDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
devId: (NSString *)  devId
handler: (nullable ThingSuccessID handler
failure: (nullable ThingFailureError error 
optional

同步设备信息,业务根据 devId 获取 device 并处理后传递给 SDK

Parameters
devIddevId
handler业务层使用 handler 传递 device 给SDK
errorerror

◆ transEncKeyWithAdvModel:encKeyType:handler:failure: [1/2]

- (void) transEncKeyWithAdvModel: (ThingBLEAdvModel *)  advModel
encKeyType: (ThingSmartBLEEncKeyType)  encKeyType
handler: (nullable void(^)(id _Nullable key))  handler
failure: (nullable ThingFailureError error 
optional

激活、解绑过程传递秘钥给 SDK

Parameters
advModel设备信息
encKeyType激活、解绑
handler业务层使用handler传递秘钥给SDK
errorerror

◆ transEncKeyWithAdvModel:encKeyType:handler:failure: [2/2]

- (void) transEncKeyWithAdvModel: (ThingBLEAdvModel *)  advModel
encKeyType: (ThingSmartBLEEncKeyType)  encKeyType
handler: (nullable void(^)(id _Nullable key))  handler
failure: (nullable ThingFailureError error 
optional

激活、解绑过程传递秘钥给 SDK

Parameters
advModel设备信息
encKeyType激活、解绑
handler业务层使用handler传递秘钥给SDK
errorerror

◆ transferPSKInfoWithSL:handler:failure: [1/2]

- (void) transferPSKInfoWithSL: (NSNumber *)  SL
handler: (nullable ThingSuccessDict handler
failure: (nullable ThingFailureError error 
optional

传递 psk 信息

Parameters
SL安全级别
handler回调
errorfailure

◆ transferPSKInfoWithSL:handler:failure: [2/2]

- (void) transferPSKInfoWithSL: (NSNumber *)  SL
handler: (nullable ThingSuccessDict handler
failure: (nullable ThingFailureError error 
optional

传递 psk 信息

Parameters
SL安全级别
handler回调
errorfailure

◆ unbindDevice:handler:failure: [1/2]

- (void) unbindDevice: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
handler: (nullable ThingSuccessHandler handler
failure: (nullable ThingFailureError error 
optional

设备解绑

Parameters
deviceInfo设备信息
handlerhandler
errorerror

◆ unbindDevice:handler:failure: [2/2]

- (void) unbindDevice: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
handler: (nullable ThingSuccessHandler handler
failure: (nullable ThingFailureError error 
optional

设备解绑

Parameters
deviceInfo设备信息
handlerhandler
errorerror

◆ updateBLEOnlineStatus:isOnline: [1/2]

- (void) updateBLEOnlineStatus: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
isOnline: (BOOL)  isOnline 
optional

更新设备在线状态

Parameters
deviceInfo设备信息
isOnline是否在线

◆ updateBLEOnlineStatus:isOnline: [2/2]

- (void) updateBLEOnlineStatus: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
isOnline: (BOOL)  isOnline 
optional

更新设备在线状态

Parameters
deviceInfo设备信息
isOnline是否在线

◆ updateDeviceInfo: [1/2]

- (void) updateDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
optional

更新设备信息

Parameters
deviceInfo设备信息

◆ updateDeviceInfo: [2/2]

- (void) updateDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
optional

更新设备信息

Parameters
deviceInfo设备信息

◆ updateOTAVersion:otaType:otaVersion: [1/2]

- (void) updateOTAVersion: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
otaType: (ThingSmartBLEOTAType)  otaType
otaVersion: (NSString *)  otaVersion 
optional

更新OTA信息

Parameters
deviceInfo设备信息
otaTypeOTA类型
otaVersionOTA版本

◆ updateOTAVersion:otaType:otaVersion: [2/2]

- (void) updateOTAVersion: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
otaType: (ThingSmartBLEOTAType)  otaType
otaVersion: (NSString *)  otaVersion 
optional

更新OTA信息

Parameters
deviceInfo设备信息
otaTypeOTA类型
otaVersionOTA版本

◆ validateBLEBeaconCapability: [1/2]

- (void) validateBLEBeaconCapability: (nullable ThingBLESecurityDevInfo *)  devInfo
optional

◆ validateBLEBeaconCapability: [2/2]

- (void) validateBLEBeaconCapability: (nullable ThingBLESecurityDevInfo *)  devInfo
optional

The documentation for this protocol was generated from the following files: