Tuya iOS Smart Life App SDK 5.15.0
ThingSmartBLEManager Class Reference

ThingSmartBLEManager provides methods to manage Bluetooth LE devices by using multiple functions, such as activation, device control, and OTA updates. More...

#import <ThingSmartBLEManager.h>

Inheritance diagram for ThingSmartBLEManager:

Instance Methods

(BOOL) - checkBLEStatus
 
(void) - startListenCore:handler:configNotify:scanType:
 
(void) - startEnhancedQRListenWithCache:handler:configNotify:scanType:
 
(void) - startScanWithInterval:scanHandler:finishHandler:
 
(void) - stopListenCore:
 
(void) - setScanDelegate:
 
(void) - connectWithDeviceInfo:localKey:
 
(void) - connectWithDeviceInfo:localKey:secKey:sign:
 
(void) - connectWithDeviceInfo:localKey:secKey:sign:success:failure:
 
(void) - forceDeleteWithDeviceInfo:success:failure:
 
(void) - connectWithUUID:capability:productId:localKey:configMetas:handlerDelegate:scanHandler:success:failure:
 
(void) - connectWithDeviceInfo:capability:productId:localKey:configMetas:handlerDelegate:scanHandler:success:failure:
 
(void) - connectWithParamsModel:success:failure:
 
(void) - disconnectWithUUID:success:failure:
 
(void) - disconnectWithDeviceInfo:success:failure:
 
(void) - activeBLEWithDevice:handlerDelegate:
 Active device. More...
 
(void) - publishBleTransparentDataWithUUID:data:success:failure:
 
(void) - publishBleTransparentDataWithDeviceInfo:data:success:failure:
 
(void) - publishQueryDpCommandWithUUID:dpsData:success:failure:
 
(void) - publishQueryDpCommandWithDeviceInfo:dpsData:success:failure:
 
(void) - publishQueryDpCommandWithDeviceInfo:dpIds:success:failure:
 
(BOOL) - bleCapabilityIsSupport:hex:
 
(void) - sendPacketInfoWithDev:data:type:packageMaxSize:success:failure:
 
(BOOL) - pairBLEAdvertisingData:
 
(void(^)) - success
 
(BOOL) - checkBLEStatus
 
(void) - startListenCore:handler:configNotify:scanType:
 
(void) - startEnhancedQRListenWithCache:handler:configNotify:scanType:
 
(void) - startScanWithInterval:scanHandler:finishHandler:
 
(void) - stopListenCore:
 
(void) - setScanDelegate:
 
(void) - connectWithDeviceInfo:localKey:
 
(void) - connectWithDeviceInfo:localKey:secKey:sign:
 
(void) - connectWithDeviceInfo:localKey:secKey:sign:success:failure:
 
(void) - forceDeleteWithDeviceInfo:success:failure:
 
(void) - connectWithUUID:capability:productId:localKey:configMetas:handlerDelegate:scanHandler:success:failure:
 
(void) - connectWithDeviceInfo:capability:productId:localKey:configMetas:handlerDelegate:scanHandler:success:failure:
 
(void) - connectWithParamsModel:success:failure:
 
(void) - disconnectWithUUID:success:failure:
 
(void) - disconnectWithDeviceInfo:success:failure:
 
(void) - activeBLEWithDevice:handlerDelegate:
 Active device. More...
 
(void) - publishBleTransparentDataWithUUID:data:success:failure:
 
(void) - publishBleTransparentDataWithDeviceInfo:data:success:failure:
 
(void) - publishQueryDpCommandWithUUID:dpsData:success:failure:
 
(void) - publishQueryDpCommandWithDeviceInfo:dpsData:success:failure:
 
(void) - publishQueryDpCommandWithDeviceInfo:dpIds:success:failure:
 
(BOOL) - bleCapabilityIsSupport:hex:
 
(void) - sendPacketInfoWithDev:data:type:packageMaxSize:success:failure:
 
(BOOL) - pairBLEAdvertisingData:
 
(id< ThingSmartBLEVoiceDelegate >) - buildVoiceEntityWithType:
 
(id< ThingSmartBLEVoiceDelegate >) - buildVoiceEntityWithType:
 
(void) - publishAudioStartSpeech:deviceId:dialogId:
 
(void) - publishAudioStartSpeech:deviceId:dialogId:
 
(void) - publishAudioProvideSpeech:dialogId:
 
(void) - publishAudioProvideSpeech:dialogId:
 
(void) - publishAudioSpeechState:deviceId:
 
(void) - publishAudioSpeechState:deviceId:
 
(void) - publishAudioEndpoint:dialogId:
 
(void) - publishAudioEndpoint:dialogId:
 
(void) - publishAudioResult:type:deviceId:
 
(void) - publishAudioResult:type:deviceId:
 
(void) - publishAudioStopSpeech:deviceId:dialogId:
 
(void) - publishAudioStopSpeech:deviceId:dialogId:
 
(void) - setAlarmClockWithAlarmClockModel:deviceId:success:failure:
 
(void) - setAlarmClockWithAlarmClockModel:deviceId:success:failure:
 
(void) - getAudioVoiceAuthorizationToken:deviceId:success:failure:
 
(void) - getAudioVoiceAuthorizationToken:deviceId:success:failure:
 
(void) - publishAudioMD5Token:token:deviceId:
 
(void) - publishAudioMD5Token:token:deviceId:
 
(void) - publishAudioMD5Token:token:deviceId:success:failure:
 
(void) - publishAudioMD5Token:token:deviceId:success:failure:
 
(void) - clearAuthorizationToken:success:failure:
 
(void) - clearAuthorizationToken:success:failure:
 
(void) - setNotificationStatus:isPermanentVision:isPlayAudio:deviceId:success:failure:
 
(void) - setNotificationStatus:isPermanentVision:isPlayAudio:deviceId:success:failure:
 
(void) - sendAlexaSuccessWithDeviceId:andToken:
 
(void) - sendAlexaSuccessWithDeviceId:andToken:
 
(void) - postBleBigDataChannel:params:success:failure:
 
(void) - postBleBigDataChannel:params:success:failure:
 
(void) - postBleBigDataChannel:params:progress:success:failure:
 
(void) - postBleBigDataChannel:params:progress:success:failure:
 
(void) - postBleBigDataChannel:params:receivedDpsProgress:receivedDps:uploadClouldProgress:success:failure:
 
(void) - postBleBigDataChannel:params:receivedDpsProgress:receivedDps:uploadClouldProgress:success:failure:
 
(void) - deleteBleBigDataChannel:success:failure:
 
(void) - deleteBleBigDataChannel:success:failure:
 
(void) - startListening:
 
(void) - startListening:
 
(void) - startListeningWithType:cacheStatu:
 
(void) - startListeningWithType:cacheStatu:
 
(void) - scanActivatedDeviceWithTimeInterval:scanHandler:finishHandler:
 
(void) - scanActivatedDeviceWithTimeInterval:scanHandler:finishHandler:
 
(void) - stopListening:
 
(void) - stopListening:
 
(void) - connectBLEWithUUID:productKey:success:failure:
 
(void) - connectBLEWithUUID:productKey:success:failure:
 
(void) - disconnectBLEWithUUID:success:failure:
 
(void) - disconnectBLEWithUUID:success:failure:
 
(void) - activeBLEWithUUID:homeId:productKey:success:failure:
 
(void) - activeBLEWithUUID:homeId:productKey:success:failure:
 
(void) - activeBLE:homeId:success:failure:
 
(void) - activeBLE:homeId:success:failure:
 
(void) - publishBleTransparentData:data:success:failure:
 
(void) - publishBleTransparentData:data:success:failure:
 
(void) - publishQueryDpCommand:dpIds:success:failure:
 
(void) - publishQueryDpCommand:dpIds:success:failure:
 
(NSInteger) - getPeripheralRSSI:
 
(NSInteger) - getPeripheralRSSI:
 
(BOOL) - deviceStatueWithUUID:
 
(BOOL) - deviceStatueWithUUID:
 
(void) - queryNameWithUUID:productKey:success:failure:
 
(void) - queryNameWithUUID:productKey:success:failure:
 
(void) - queryDeviceInfoWithUUID:productId:success:failure:
 
(void) - queryDeviceInfoWithUUID:productId:success:failure:
 
(void) - publishIoTTransparentData:devId:success:failure:
 
(void) - publishIoTTransparentData:devId:success:failure:
 
(void) - getBLECapabilityWithUUID:success:failure:
 
(void) - getBLECapabilityWithUUID:success:failure:
 
(BOOL) - otaUpgradeStatusWithUUID:
 
(BOOL) - otaUpgradeStatusWithUUID:
 
(void) - startBleBeaconListening
 
(void) - startBleBeaconListening
 
(void) - stopBleBeaconListening
 stop ble beacon scan More...
 
(void) - stopBleBeaconListening
 stop ble beacon scan More...
 
(void) - startBleBeaconListeningWithDeviceId:
 
(void) - startBleBeaconListeningWithDeviceId:
 
(void) - stopBleBeaconListeningWithDeviceId:
 
(void) - stopBleBeaconListeningWithDeviceId:
 
(void) - activeBLEWithAdvertisingData:homeId:success:failure:
 
(void) - activeBLEWithAdvertisingData:homeId:success:failure:
 
(void) - publishFileWithDevId:fileId:fileIdentifier:fileVersion:fileData:progressBlock:success:failure:
 
(void) - publishFileWithDevId:fileId:fileIdentifier:fileVersion:fileData:progressBlock:success:failure:
 
(void) - publishFileWithDevId:fileId:fileIdentifier:fileVersion:fileData:fileType:progressBlock:success:failure:
 
(void) - publishFileWithDevId:fileId:fileIdentifier:fileVersion:fileData:fileType:progressBlock:success:failure:
 
(void) - stopFileTransfer:
 
(void) - stopFileTransfer:
 
(void) - publishTransparentData:devId:success:failure:
 
(void) - publishTransparentData:devId:success:failure:
 
(void) - publishSystemTimeWithDeviceId:
 
(void) - publishSystemTimeWithDeviceId:
 
(void) - handActiveFittingWithMainDeviceId:
 
(void) - handActiveFittingWithMainDeviceId:
 
(NSInteger) - getExtModuleType:
 
(NSInteger) - getExtModuleType:
 
(void) - activateExtendedModule:automatic:success:failure:
 
(void) - activateExtendedModule:automatic:success:failure:
 
(void) - activateExtendedWiFiModule:automatic:ssid:password:success:failure:
 
(void) - activateExtendedWiFiModule:automatic:ssid:password:success:failure:
 
(void) - bindSlaveDeviceWithSlaveDeviceId:masterDeviceId:success:failure:
 
(void) - bindSlaveDeviceWithSlaveDeviceId:masterDeviceId:success:failure:
 
(void) - unBindSlaveDeviceWithSlaveDeviceId:success:failure:
 
(void) - unBindSlaveDeviceWithSlaveDeviceId:success:failure:
 
(void) - querySlaveInfoWithMasterDeviceId:success:failure:
 
(void) - querySlaveInfoWithMasterDeviceId:success:failure:
 
(void) - querySlaveDpsWithSlaveDeviceId:success:failure:
 
(void) - querySlaveDpsWithSlaveDeviceId:success:failure:
 
(void) - recordBleConnectEventWithDevId:src:actId:extra:
 Record ble connect event. More...
 
(void) - recordBleConnectEventWithDevId:src:actId:extra:
 Record ble connect event. More...
 
(void) - disconnectAllBleDevicesExcludeDevIds:
 
(void) - disconnectAllBleDevicesExcludeDevIds:
 
(BOOL) - isBLEChannelDeviceConnect:
 
(BOOL) - isBLEChannelDeviceConnect:
 
(void) - setCompletionBlock:uuid:
 
(void) - setCompletionBlock:uuid:
 
(void) - appApplyLaunch:
 
(void) - appApplyLaunch:
 
(BOOL) - appMandatoryTrans:
 
(BOOL) - appMandatoryTrans:
 
(void) - startCommRodScan
 
(void) - startCommRodScan
 
(void) - readWithDeviceId:serviceUUID:charactUUID:completion:
 
(void) - readWithDeviceId:serviceUUID:charactUUID:completion:
 
(void) - writeWithDeviceId:data:serviceUUID:charactUUID:completion:
 
(void) - writeWithDeviceId:data:serviceUUID:charactUUID:completion:
 
(void) - notifyWithDeviceId:notifyValue:serviceUUID:charactUUID:completion:
 
(void) - notifyWithDeviceId:notifyValue:serviceUUID:charactUUID:completion:
 
(void) - queryBLEDualModeBTInfoWithDeviceId:success:failure:
 
(void) - queryBLEDualModeBTInfoWithDeviceId:success:failure:
 
(void) - sendOTAPack:otaData:success:failure:
 
(void) - sendOTAPack:otaData:success:failure:
 
(void) - sendOTAPack:pid:otaData:success:failure:
 
(void) - sendOTAPack:pid:otaData:success:failure:
 
(void) - sendOTAPack:pid:otaData:otaType:otaVersion:success:failure:
 
(void) - sendOTAPack:pid:otaData:otaType:otaVersion:success:failure:
 
(void) - sendOTAPack:deviceModel:upgradeModel:success:failure:
 
(void) - sendOTAPack:deviceModel:upgradeModel:success:failure:
 
(void) - activatorDualDeviceWithBleChannel:homeId:token:success:failure:
 
(void) - activatorDualDeviceWithBleChannel:homeId:token:success:failure:
 
(void) - activatorZigbeeSubDeviceWithBleChannel:homeId:success:failure:
 
(void) - activatorZigbeeSubDeviceWithBleChannel:homeId:success:failure:
 
(void) - switchZigbeeSubDeviceToZigbeeActivator:homeId:success:failure:
 
(void) - switchZigbeeSubDeviceToZigbeeActivator:homeId:success:failure:
 
(void) - activeDualDeviceWifiChannel:ssid:password:timeout:success:failure:
 
(void) - activeDualDeviceWifiChannel:ssid:password:timeout:success:failure:
 
(void) - startListeningWithUUID:
 
(void) - startListeningWithUUID:
 
(void) - startListeningWithUUID:success:failure:
 
(void) - startListeningWithUUID:success:failure:
 
(void) - fetchResetKeyWithUUID:shortUrl:success:failure:
 
(void) - fetchResetKeyWithUUID:shortUrl:success:failure:
 
(void) - scanQRCodeToResetDeviceWithUUID:encryptedAuthKey:random:success:failure:
 
(void) - scanQRCodeToResetDeviceWithUUID:encryptedAuthKey:random:success:failure:
 

Class Methods

(instancetype) + sharedInstance
 The single instance. More...
 
(instancetype) + sharedInstance
 The single instance. More...
 

Properties

BOOL isPoweredOn
 A Boolean value that indicates whether the mobile phone's Bluetooth is enabled or disabled. More...
 
BOOL disableBLECapability
 Whether to disable bluetooth. Default NO. More...
 
id< ThingSmartBLEManagerDelegatedelegate
 The delegate for scanning and notifications of Bluetooth status changes. More...
 
id< ThingSmartBLELocalDataDelegatelocalDataDelegate
 
id< ThingSmartBLEAlexaAudioDelegatealexaAudioDelegate
 
id< ThingSmartBLEAudioNotifyDelegatecommonAudioDelegate
 
id< ThingBLEFindMacDelegatefindMacDelegatel
 
ThingFailureHandler failureHandler
 
void(^ success )(id deviceModel)
 
NSString * currentDialogId
 
NSMutableDictionary * resultDic
 
ThingBLEScanHandler scanHandler
 

Detailed Description

ThingSmartBLEManager provides methods to manage Bluetooth LE devices by using multiple functions, such as activation, device control, and OTA updates.

The types of OTA updates: firmware and MCU.

Definition at line 174 of file ThingSmartBLEManager.h.

Method Documentation

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

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

Activate the extended module. If it is WiFi, it will return an error because the SSID and password are not entered

Parameters
devIddevice id
automaticactivate mode. If NO, need to wait for the result of MQTT response activation
successIf successfully activated, this block is called.
failureIf activation fails, this block calls back an error

Provided by category ThingSmartBLEManager(Biz).

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

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

Activate the extended module. If it is WiFi, it will return an error because the SSID and password are not entered

Parameters
devIddevice id
automaticactivate mode. If NO, need to wait for the result of MQTT response activation
successIf successfully activated, this block is called.
failureIf activation fails, this block calls back an error

Provided by category ThingSmartBLEManager(Biz).

◆ 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 

Activate the extended WiFi module. SSID and password required.

Parameters
devIddevice id
automaticactivate mode. If NO, need to wait for the result of MQTT response activation
ssidWiFi SSID
pwdWiFi password
successIf successfully activated, this block is called.
failureIf activation fails, this block calls back an error

Provided by category ThingSmartBLEManager(Biz).

◆ 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 

Activate the extended WiFi module. SSID and password required.

Parameters
devIddevice id
automaticactivate mode. If NO, need to wait for the result of MQTT response activation
ssidWiFi SSID
pwdWiFi password
successIf successfully activated, this block is called.
failureIf activation fails, this block calls back an error

Provided by category ThingSmartBLEManager(Biz).

◆ activatorDualDeviceWithBleChannel:homeId:token:success:failure: [1/2]

- (void) activatorDualDeviceWithBleChannel: (ThingBLEAdvModel *)  advModel
homeId: (long long)  homeId
token: (NSString *)  token
success: (void(^)(ThingSmartDeviceModel *deviceModel))  success
failure: (ThingFailureError failure 

Activates the Bluetooth mode for a dual-mode device.

Parameters
advModelThe device advertisement model.
homeIdThe ID of the current home.
tokenThe token.
successCalled when the task is finished. DeviceModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(PlugPlay).

◆ activatorDualDeviceWithBleChannel:homeId:token:success:failure: [2/2]

- (void) activatorDualDeviceWithBleChannel: (ThingBLEAdvModel *)  advModel
homeId: (long long)  homeId
token: (NSString *)  token
success: (void(^)(ThingSmartDeviceModel *deviceModel))  success
failure: (ThingFailureError failure 

Activates the Bluetooth mode for a dual-mode device.

Parameters
advModelThe device advertisement model.
homeIdThe ID of the current home.
tokenThe token.
successCalled when the task is finished. DeviceModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(PlugPlay).

◆ activatorZigbeeSubDeviceWithBleChannel:homeId:success:failure: [1/2]

- (void) activatorZigbeeSubDeviceWithBleChannel: (id< ThingBLEDeviceInfoProtocol >)  dev
homeId: (long long)  homeId
success: (ThingSuccessID success
failure: (ThingFailureError failure 

Provided by category ThingSmartBLEManager(PlugPlay).

◆ activatorZigbeeSubDeviceWithBleChannel:homeId:success:failure: [2/2]

- (void) activatorZigbeeSubDeviceWithBleChannel: (id< ThingBLEDeviceInfoProtocol >)  dev
homeId: (long long)  homeId
success: (ThingSuccessID success
failure: (ThingFailureError failure 

Provided by category ThingSmartBLEManager(PlugPlay).

◆ activeBLE:homeId:success:failure: [1/2]

- (void) activeBLE: (ThingBLEAdvModel *)  deviceInfo
homeId: (long long)  homeId
success: (nullable void(^)(ThingSmartDeviceModel *deviceModel))  success
failure: (nullable ThingFailureHandler failure 

Activates the Bluetooth LE device.

Parameters
deviceInfoThe advertisingData model for the Bluetooth LE device.
homeIdThe ID for the current home.
successCalled when the task is finished. DeviceModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

◆ activeBLE:homeId:success:failure: [2/2]

- (void) activeBLE: (ThingBLEAdvModel *)  deviceInfo
homeId: (long long)  homeId
success: (nullable void(^)(ThingSmartDeviceModel *deviceModel))  success
failure: (nullable ThingFailureHandler failure 

Activates the Bluetooth LE device.

Parameters
deviceInfoThe advertisingData model for the Bluetooth LE device.
homeIdThe ID for the current home.
successCalled when the task is finished. DeviceModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

◆ activeBLEWithAdvertisingData:homeId:success:failure: [1/2]

- (void) activeBLEWithAdvertisingData: (NSData *)  advertisingData
homeId: (long long)  homeId
success: (void(^)(ThingSmartDeviceModel *deviceModel))  success
failure: (ThingFailureHandler failure 

Activates the Bluetooth LE device.

Parameters
advertisingDataThe advertisingData model for the Bluetooth LE device.
homeIdThe ID for the current home.
successCalled when the task is finished. DeviceModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

◆ activeBLEWithAdvertisingData:homeId:success:failure: [2/2]

- (void) activeBLEWithAdvertisingData: (NSData *)  advertisingData
homeId: (long long)  homeId
success: (void(^)(ThingSmartDeviceModel *deviceModel))  success
failure: (ThingFailureHandler failure 

Activates the Bluetooth LE device.

Parameters
advertisingDataThe advertisingData model for the Bluetooth LE device.
homeIdThe ID for the current home.
successCalled when the task is finished. DeviceModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

◆ activeBLEWithDevice:handlerDelegate: [1/2]

- (void) activeBLEWithDevice: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
handlerDelegate: (id< ThingSmartBLEActiveDelegate >)  handlerDelegate 

Active device.

◆ activeBLEWithDevice:handlerDelegate: [2/2]

- (void) activeBLEWithDevice: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
handlerDelegate: (id< ThingSmartBLEActiveDelegate >)  handlerDelegate 

Active device.

◆ activeBLEWithUUID:homeId:productKey:success:failure: [1/2]

- (void) activeBLEWithUUID: (NSString *)  uuid
homeId: (long long)  homeId
productKey: (NSString *)  productKey
success: (nullable void(^)(ThingSmartDeviceModel *deviceModel))  success
failure: ("This method is)  deprecated
(Use ThingSmartBLEManager::activeBLE:homeId:success:failure instead")  __deprecated_msg 

Activates the Bluetooth LE device.

Parameters
uuidThe UUID of the device.
homeIdThe ID of the current home.
productKeyThe product ID of the device.
successCalled when the task is finished. DeviceModel is returned.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use activeBLE:homeId:success:failure: (ThingSmartBLEManager(Biz)) instead.

Provided by category ThingSmartBLEManager(Biz).

◆ activeBLEWithUUID:homeId:productKey:success:failure: [2/2]

- (void) activeBLEWithUUID: (NSString *)  uuid
homeId: (long long)  homeId
productKey: (NSString *)  productKey
success: (nullable void(^)(ThingSmartDeviceModel *deviceModel))  success
failure: ("This method is)  deprecated
(Use ThingSmartBLEManager::activeBLE:homeId:success:failure instead")  __deprecated_msg 

Activates the Bluetooth LE device.

Parameters
uuidThe UUID of the device.
homeIdThe ID of the current home.
productKeyThe product ID of the device.
successCalled when the task is finished. DeviceModel is returned.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use activeBLE:homeId:success:failure: (ThingSmartBLEManager(Biz)) instead.

Provided by category ThingSmartBLEManager(Biz).

◆ activeDualDeviceWifiChannel:ssid:password:timeout:success:failure: [1/2]

- (void) activeDualDeviceWifiChannel: (NSString *)  devId
ssid: (NSString *)  ssid
password: (NSString *)  password
timeout: (NSTimeInterval)  timeout
success: (void(^)(ThingSmartDeviceModel *deviceModel))  success
failure: (ThingFailureError failure 

Activates the Wi-Fi channel of a dual-mode device for which the Bluetooth channel is activated.

Parameters
devIdThe device ID.
ssidThe name of the router.
passwordThe password for the device.
timeoutThe timeout value.
successCalled when the task is finished. DeviceModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(PlugPlay).

◆ activeDualDeviceWifiChannel:ssid:password:timeout:success:failure: [2/2]

- (void) activeDualDeviceWifiChannel: (NSString *)  devId
ssid: (NSString *)  ssid
password: (NSString *)  password
timeout: (NSTimeInterval)  timeout
success: (void(^)(ThingSmartDeviceModel *deviceModel))  success
failure: (ThingFailureError failure 

Activates the Wi-Fi channel of a dual-mode device for which the Bluetooth channel is activated.

Parameters
devIdThe device ID.
ssidThe name of the router.
passwordThe password for the device.
timeoutThe timeout value.
successCalled when the task is finished. DeviceModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(PlugPlay).

◆ appApplyLaunch: [1/2]

- (void) appApplyLaunch: (NSString *)  uuid

The app requests to start a big data transfer.

Parameters
uuidThe UUID of the device.

Provided by category ThingSmartBLEManager(Channel).

◆ appApplyLaunch: [2/2]

- (void) appApplyLaunch: (NSString *)  uuid

The app requests to start a big data transfer.

Parameters
uuidThe UUID of the device.

Provided by category ThingSmartBLEManager(Channel).

◆ appMandatoryTrans: [1/2]

- (BOOL) appMandatoryTrans: (NSString *)  uuid

The app forcibly terminates data transmission.

Parameters
uuidThe UUID of the device.

Provided by category ThingSmartBLEManager(Channel).

◆ appMandatoryTrans: [2/2]

- (BOOL) appMandatoryTrans: (NSString *)  uuid

The app forcibly terminates data transmission.

Parameters
uuidThe UUID of the device.

Provided by category ThingSmartBLEManager(Channel).

◆ bindSlaveDeviceWithSlaveDeviceId:masterDeviceId:success:failure: [1/2]

- (void) bindSlaveDeviceWithSlaveDeviceId: (NSString *)  slaveDeviceId
masterDeviceId: (NSString *)  masterDeviceId
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Bind master-slave devices

Parameters
slaveDeviceIdslave device id @par5rDeviceId master device id
successIf successfully bind, this block is called.
failureIf bind fails, this block calls back an error

Provided by category ThingSmartBLEManager(Biz).

◆ bindSlaveDeviceWithSlaveDeviceId:masterDeviceId:success:failure: [2/2]

- (void) bindSlaveDeviceWithSlaveDeviceId: (NSString *)  slaveDeviceId
masterDeviceId: (NSString *)  masterDeviceId
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Bind master-slave devices

Parameters
slaveDeviceIdslave device id @par5rDeviceId master device id
successIf successfully bind, this block is called.
failureIf bind fails, this block calls back an error

Provided by category ThingSmartBLEManager(Biz).

◆ bleCapabilityIsSupport:hex: [1/2]

- (BOOL) bleCapabilityIsSupport: (ThingSmartBLECapability i
hex: (NSString *)  hex 

Get Bluetooth device capability value.This method is used to analyze the Bluetooth capability of the device.

Parameters
iEnumeration value of Bluetooth capability to be obtained
hexThe ability to analyze

◆ bleCapabilityIsSupport:hex: [2/2]

- (BOOL) bleCapabilityIsSupport: (ThingSmartBLECapability i
hex: (NSString *)  hex 

Get Bluetooth device capability value.This method is used to analyze the Bluetooth capability of the device.

Parameters
iEnumeration value of Bluetooth capability to be obtained
hexThe ability to analyze

◆ buildVoiceEntityWithType: [1/2]

- (id< ThingSmartBLEVoiceDelegate >) buildVoiceEntityWithType: (ThingSmartVoiceType voiceType

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ buildVoiceEntityWithType: [2/2]

- (id< ThingSmartBLEVoiceDelegate >) buildVoiceEntityWithType: (ThingSmartVoiceType voiceType

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ checkBLEStatus [1/2]

- (BOOL) checkBLEStatus

◆ checkBLEStatus [2/2]

- (BOOL) checkBLEStatus

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

- (void) clearAuthorizationToken: (NSString *)  deviceId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

alexa clear AuthorizationToken

Parameters
deviceIddevice id
successsuccess
failurefailure

Provided by category ThingSmartBLEManager(AlexaVoice).

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

- (void) clearAuthorizationToken: (NSString *)  deviceId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

alexa clear AuthorizationToken

Parameters
deviceIddevice id
successsuccess
failurefailure

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ connectBLEWithUUID:productKey:success:failure: [1/2]

- (void) connectBLEWithUUID: (NSString *)  uuid
productKey: (NSString *)  productKey
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureHandler failure 

Connects to a device.

Parameters
uuidThe UUID of the device.
productKeyThe product ID of the device.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

◆ connectBLEWithUUID:productKey:success:failure: [2/2]

- (void) connectBLEWithUUID: (NSString *)  uuid
productKey: (NSString *)  productKey
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureHandler failure 

Connects to a device.

Parameters
uuidThe UUID of the device.
productKeyThe product ID of the device.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

◆ connectWithDeviceInfo:capability:productId:localKey:configMetas:handlerDelegate:scanHandler:success:failure: [1/2]

- (void) connectWithDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
capability: (NSUInteger)  capability
productId: (NSString *)  productId
localKey: (NSString *)  localKey
configMetas: (NSDictionary *)  configMetas
handlerDelegate: (id< ThingSmartBLEActiveDelegate >)  handlerDelegate
scanHandler: (nullable ThingBLEScanHandler scanHandler
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureHandler failure 

◆ connectWithDeviceInfo:capability:productId:localKey:configMetas:handlerDelegate:scanHandler:success:failure: [2/2]

- (void) connectWithDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
capability: (NSUInteger)  capability
productId: (NSString *)  productId
localKey: (NSString *)  localKey
configMetas: (NSDictionary *)  configMetas
handlerDelegate: (id< ThingSmartBLEActiveDelegate >)  handlerDelegate
scanHandler: (nullable ThingBLEScanHandler scanHandler
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureHandler failure 

◆ connectWithDeviceInfo:localKey: [1/2]

- (void) connectWithDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
localKey: ("This method is)  deprecated
(please use connectWithDeviceInfo:localKey:secKey:sign:")  __deprecated_msg 

◆ connectWithDeviceInfo:localKey: [2/2]

- (void) connectWithDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
localKey: ("This method is)  deprecated
(please use connectWithDeviceInfo:localKey:secKey:sign:")  __deprecated_msg 

◆ connectWithDeviceInfo:localKey:secKey:sign: [1/2]

- (void) connectWithDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
localKey: (NSString *)  localKey
secKey: (nullable NSString *)  secKey
sign: (NSString *)  sign 

◆ connectWithDeviceInfo:localKey:secKey:sign: [2/2]

- (void) connectWithDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
localKey: (NSString *)  localKey
secKey: (nullable NSString *)  secKey
sign: (NSString *)  sign 

◆ connectWithDeviceInfo:localKey:secKey:sign:success:failure: [1/2]

- (void) connectWithDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
localKey: (NSString *)  localKey
secKey: (nullable NSString *)  secKey
sign: (NSString *)  sign
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureHandler failure 

◆ connectWithDeviceInfo:localKey:secKey:sign:success:failure: [2/2]

- (void) connectWithDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
localKey: (NSString *)  localKey
secKey: (nullable NSString *)  secKey
sign: (NSString *)  sign
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureHandler failure 

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

- (void) connectWithParamsModel: (ThingSmartBleConnectParams *)  paramsModel
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureHandler failure 

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

- (void) connectWithParamsModel: (ThingSmartBleConnectParams *)  paramsModel
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureHandler failure 

◆ connectWithUUID:capability:productId:localKey:configMetas:handlerDelegate:scanHandler:success:failure: [1/2]

- (void) connectWithUUID: (NSString *)  uuid
capability: (NSUInteger)  capability
productId: (NSString *)  productId
localKey: (NSString *)  localKey
configMetas: (NSDictionary *)  configMetas
handlerDelegate: (id< ThingSmartBLEActiveDelegate >)  handlerDelegate
scanHandler: (nullable ThingBLEScanHandler handler
success: (nullable ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use connectWithDeviceInfo:capability:productId:localKey:configMetas:handlerDelegate:scanHandler:success:failure:instead")  __deprecated_msg 

◆ connectWithUUID:capability:productId:localKey:configMetas:handlerDelegate:scanHandler:success:failure: [2/2]

- (void) connectWithUUID: (NSString *)  uuid
capability: (NSUInteger)  capability
productId: (NSString *)  productId
localKey: (NSString *)  localKey
configMetas: (NSDictionary *)  configMetas
handlerDelegate: (id< ThingSmartBLEActiveDelegate >)  handlerDelegate
scanHandler: (nullable ThingBLEScanHandler handler
success: (nullable ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use connectWithDeviceInfo:capability:productId:localKey:configMetas:handlerDelegate:scanHandler:success:failure:instead")  __deprecated_msg 

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

- (void) deleteBleBigDataChannel: (NSString *)  devId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Send delete command to the BLE device, which delete data in device and will delete cache data. @Param devId The device Id for the device.

Parameters
successWhen successfully, this block will be called success.
failureThis block will be called if some error occurred.

Provided by category ThingSmartBLEManager(BigData).

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

- (void) deleteBleBigDataChannel: (NSString *)  devId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Send delete command to the BLE device, which delete data in device and will delete cache data. @Param devId The device Id for the device.

Parameters
successWhen successfully, this block will be called success.
failureThis block will be called if some error occurred.

Provided by category ThingSmartBLEManager(BigData).

◆ deviceStatueWithUUID: [1/2]

- (BOOL) deviceStatueWithUUID: (NSString *)  uuid

Returns the local connection status of the Bluetooth LE device by device UUID.

Parameters
uuidThe UUID of the device.
Returns
The local connection status of the Bluetooth LE device.

Provided by category ThingSmartBLEManager(Biz).

◆ deviceStatueWithUUID: [2/2]

- (BOOL) deviceStatueWithUUID: (NSString *)  uuid

Returns the local connection status of the Bluetooth LE device by device UUID.

Parameters
uuidThe UUID of the device.
Returns
The local connection status of the Bluetooth LE device.

Provided by category ThingSmartBLEManager(Biz).

◆ disconnectAllBleDevicesExcludeDevIds: [1/2]

- (void) disconnectAllBleDevicesExcludeDevIds: (nullable NSArray< NSString * > *)  excludeDevIds

Disconnect all ble devices exclud some devices.

Parameters
excludeDevIdsno need disconnect ble devices.

Provided by category ThingSmartBLEManager(Biz).

◆ disconnectAllBleDevicesExcludeDevIds: [2/2]

- (void) disconnectAllBleDevicesExcludeDevIds: (nullable NSArray< NSString * > *)  excludeDevIds

Disconnect all ble devices exclud some devices.

Parameters
excludeDevIdsno need disconnect ble devices.

Provided by category ThingSmartBLEManager(Biz).

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

- (void) disconnectBLEWithUUID: (NSString *)  uuid
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Disconnects a device.

Parameters
uuidThe UUID of the device.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

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

- (void) disconnectBLEWithUUID: (NSString *)  uuid
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Disconnects a device.

Parameters
uuidThe UUID of the device.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

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

- (void) disconnectWithDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Disconnect device

Parameters
deviceInfoThe deviceInfo.
successWhen disconnect successfully, this block will be called success.
failureThis block will be called if some error occurred.

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

- (void) disconnectWithDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Disconnect device

Parameters
deviceInfoThe deviceInfo.
successWhen disconnect successfully, this block will be called success.
failureThis block will be called if some error occurred.

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

- (void) disconnectWithUUID: (NSString *)  uuid
success: (nullable ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use disconnectWithDeviceInfo:success:failure:instead")  __deprecated_msg 

Disconnect device

Parameters
uuidThe UUID for the device.
successWhen disconnect successfully, this block will be called success.
failureThis block will be called if some error occurred.

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

- (void) disconnectWithUUID: (NSString *)  uuid
success: (nullable ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use disconnectWithDeviceInfo:success:failure:instead")  __deprecated_msg 

Disconnect device

Parameters
uuidThe UUID for the device.
successWhen disconnect successfully, this block will be called success.
failureThis block will be called if some error occurred.

◆ fetchResetKeyWithUUID:shortUrl:success:failure: [1/2]

- (void) fetchResetKeyWithUUID: (NSString *)  UUID
shortUrl: (NSString *)  shortUrl
success: (nullable ThingSmartBLEDevcieCheckHandler success
failure: (nullable ThingFailureError failure 

Provided by category ThingSmartBLEManager(QRCode).

◆ fetchResetKeyWithUUID:shortUrl:success:failure: [2/2]

- (void) fetchResetKeyWithUUID: (NSString *)  UUID
shortUrl: (NSString *)  shortUrl
success: (nullable ThingSmartBLEDevcieCheckHandler success
failure: (nullable ThingFailureError failure 

Provided by category ThingSmartBLEManager(QRCode).

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

- (void) forceDeleteWithDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

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

- (void) forceDeleteWithDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

◆ getAudioVoiceAuthorizationToken:deviceId:success:failure: [1/2]

- (void) getAudioVoiceAuthorizationToken: (ThingAudioTokenType type
deviceId: (NSString *)  deviceId
success: (ThingSuccessTokenModel success
failure: (ThingFailureError failure 

alexa audio voice AuthorizationToken

Parameters
typetype
deviceIddeviceId
successsuccess
failurefailure

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ getAudioVoiceAuthorizationToken:deviceId:success:failure: [2/2]

- (void) getAudioVoiceAuthorizationToken: (ThingAudioTokenType type
deviceId: (NSString *)  deviceId
success: (ThingSuccessTokenModel success
failure: (ThingFailureError failure 

alexa audio voice AuthorizationToken

Parameters
typetype
deviceIddeviceId
successsuccess
failurefailure

Provided by category ThingSmartBLEManager(AlexaVoice).

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

- (void) getBLECapabilityWithUUID: (NSString *)  uuid
success: (nullable ThingSuccessString success
failure: (nullable ThingFailureError failure 

Get device capability through Bluetooth channel.

Parameters
uuidThe device uuid.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

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

- (void) getBLECapabilityWithUUID: (NSString *)  uuid
success: (nullable ThingSuccessString success
failure: (nullable ThingFailureError failure 

Get device capability through Bluetooth channel.

Parameters
uuidThe device uuid.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

◆ getExtModuleType: [1/2]

- (NSInteger) getExtModuleType: (NSString *)  devId

Provided by category ThingSmartBLEManager(Biz).

◆ getExtModuleType: [2/2]

- (NSInteger) getExtModuleType: (NSString *)  devId

Provided by category ThingSmartBLEManager(Biz).

◆ getPeripheralRSSI: [1/2]

- (NSInteger) getPeripheralRSSI: (NSString *)  uuid

Returns the RSSI value of the Bluetooth LE device.

Parameters
uuidThe UUID of the device.
Returns
The RSSI value of the Bluetooth LE device.

Provided by category ThingSmartBLEManager(Biz).

◆ getPeripheralRSSI: [2/2]

- (NSInteger) getPeripheralRSSI: (NSString *)  uuid

Returns the RSSI value of the Bluetooth LE device.

Parameters
uuidThe UUID of the device.
Returns
The RSSI value of the Bluetooth LE device.

Provided by category ThingSmartBLEManager(Biz).

◆ handActiveFittingWithMainDeviceId: [1/2]

- (void) handActiveFittingWithMainDeviceId: (NSString *)  deviceId

Initiative activation fitting

Parameters
deviceIdmain device Id

Provided by category ThingSmartBLEManager(Biz).

◆ handActiveFittingWithMainDeviceId: [2/2]

- (void) handActiveFittingWithMainDeviceId: (NSString *)  deviceId

Initiative activation fitting

Parameters
deviceIdmain device Id

Provided by category ThingSmartBLEManager(Biz).

◆ isBLEChannelDeviceConnect: [1/2]

- (BOOL) isBLEChannelDeviceConnect: (NSString *)  uuid

Indicates whether the device is connected.

Parameters
uuidThe UUID for the device.
Returns
The local connection status of the Bluetooth LE device.

Provided by category ThingSmartBLEManager(Channel).

◆ isBLEChannelDeviceConnect: [2/2]

- (BOOL) isBLEChannelDeviceConnect: (NSString *)  uuid

Indicates whether the device is connected.

Parameters
uuidThe UUID for the device.
Returns
The local connection status of the Bluetooth LE device.

Provided by category ThingSmartBLEManager(Channel).

◆ notifyWithDeviceId:notifyValue:serviceUUID:charactUUID:completion: [1/2]

- (void) notifyWithDeviceId: (NSString *)  deviceId
notifyValue: (BOOL)  enabled
serviceUUID: (NSString *)  serviceUUID
charactUUID: (NSString *)  characteristicUUID
completion: (ThingBLECentralCallback callback 

setNotify to a Bluetooth device.

Parameters
deviceIddevice Id
enabledtransmit data
serviceUUIDthe service value for service.
characteristicUUIDhe characteristic whose characteristic value will be notify.
callbackcallback

Provided by category ThingSmartBLEManager(CustomChannel).

◆ notifyWithDeviceId:notifyValue:serviceUUID:charactUUID:completion: [2/2]

- (void) notifyWithDeviceId: (NSString *)  deviceId
notifyValue: (BOOL)  enabled
serviceUUID: (NSString *)  serviceUUID
charactUUID: (NSString *)  characteristicUUID
completion: (ThingBLECentralCallback callback 

setNotify to a Bluetooth device.

Parameters
deviceIddevice Id
enabledtransmit data
serviceUUIDthe service value for service.
characteristicUUIDhe characteristic whose characteristic value will be notify.
callbackcallback

Provided by category ThingSmartBLEManager(CustomChannel).

◆ otaUpgradeStatusWithUUID: [1/2]

- (BOOL) otaUpgradeStatusWithUUID: (NSString *)  uuid

Get whether Bluetooth is currently being OTA upgraded.

Parameters
uuidThe device uuid.

Provided by category ThingSmartBLEManager(Biz).

◆ otaUpgradeStatusWithUUID: [2/2]

- (BOOL) otaUpgradeStatusWithUUID: (NSString *)  uuid

Get whether Bluetooth is currently being OTA upgraded.

Parameters
uuidThe device uuid.

Provided by category ThingSmartBLEManager(Biz).

◆ pairBLEAdvertisingData: [1/2]

- (BOOL) pairBLEAdvertisingData: (NSData *)  advertisingData

◆ pairBLEAdvertisingData: [2/2]

- (BOOL) pairBLEAdvertisingData: (NSData *)  advertisingData

◆ postBleBigDataChannel:params:progress:success:failure: [1/2]

- (void) postBleBigDataChannel: (NSString *)  devId
params: (NSDictionary *)  paramsDict
progress: (nullable ThingBLEBigDataProgressBlock progress
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

Sending parameters data to the BLE device, whilc make device report data through big data channels.

Parameters
devIdThe device Id for the device.
paramsDictA dictionary of parameter, defined by the protocol party.
progressThis progress block will be called if report data revicein,progress value is 0-100.
successWhen successfully, this block will be called success.
failureThis block will be called if some error occurred.

Provided by category ThingSmartBLEManager(BigData).

◆ postBleBigDataChannel:params:progress:success:failure: [2/2]

- (void) postBleBigDataChannel: (NSString *)  devId
params: (NSDictionary *)  paramsDict
progress: (nullable ThingBLEBigDataProgressBlock progress
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

Sending parameters data to the BLE device, whilc make device report data through big data channels.

Parameters
devIdThe device Id for the device.
paramsDictA dictionary of parameter, defined by the protocol party.
progressThis progress block will be called if report data revicein,progress value is 0-100.
successWhen successfully, this block will be called success.
failureThis block will be called if some error occurred.

Provided by category ThingSmartBLEManager(BigData).

◆ postBleBigDataChannel:params:receivedDpsProgress:receivedDps:uploadClouldProgress:success:failure: [1/2]

- (void) postBleBigDataChannel: (NSString *)  devId
params: (NSDictionary *)  paramsDict
receivedDpsProgress: (nullable ThingBLEBigDataProgressBlock receivedDpsProgress
receivedDps: (nullable void(^)(NSArray< NSDictionary * > *dpsArray))  receivedDps
uploadClouldProgress: (nullable ThingBLEBigDataProgressBlock uploadClouldProgress
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

Sending parameters data to the BLE device, whilc make device report data through big data channels.

Parameters
devIdThe device Id for the device.
paramsDictA dictionary of parameter, defined by the protocol party.
receivedDpsProgressThis progress block will be called if report data revicein,progress value is 0-100.
receivedDpsreceivedDps will be called when the dps have been sent from device completed..
uploadClouldProgressprogress of upload cloud,progress value is 0-100.
successWhen successfully, this block will be called success.
failureThis block will be called if some error occurred.

Provided by category ThingSmartBLEManager(BigData).

◆ postBleBigDataChannel:params:receivedDpsProgress:receivedDps:uploadClouldProgress:success:failure: [2/2]

- (void) postBleBigDataChannel: (NSString *)  devId
params: (NSDictionary *)  paramsDict
receivedDpsProgress: (nullable ThingBLEBigDataProgressBlock receivedDpsProgress
receivedDps: (nullable void(^)(NSArray< NSDictionary * > *dpsArray))  receivedDps
uploadClouldProgress: (nullable ThingBLEBigDataProgressBlock uploadClouldProgress
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

Sending parameters data to the BLE device, whilc make device report data through big data channels.

Parameters
devIdThe device Id for the device.
paramsDictA dictionary of parameter, defined by the protocol party.
receivedDpsProgressThis progress block will be called if report data revicein,progress value is 0-100.
receivedDpsreceivedDps will be called when the dps have been sent from device completed..
uploadClouldProgressprogress of upload cloud,progress value is 0-100.
successWhen successfully, this block will be called success.
failureThis block will be called if some error occurred.

Provided by category ThingSmartBLEManager(BigData).

◆ postBleBigDataChannel:params:success:failure: [1/2]

- (void) postBleBigDataChannel: (NSString *)  devId
params: (NSDictionary *)  paramsDict
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use postBleBigDataChannel:params:progress:success:failure:instead")  __deprecated_msg 

Sending parameters data to the BLE device, whilc make device report data through big data channels.

Parameters
devIdThe device Id for the device.
paramsDictA dictionary of parameter, defined by the protocol party.
successWhen successfully, this block will be called success.
failureThis block will be called if some error occurred.

Provided by category ThingSmartBLEManager(BigData).

◆ postBleBigDataChannel:params:success:failure: [2/2]

- (void) postBleBigDataChannel: (NSString *)  devId
params: (NSDictionary *)  paramsDict
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use postBleBigDataChannel:params:progress:success:failure:instead")  __deprecated_msg 

Sending parameters data to the BLE device, whilc make device report data through big data channels.

Parameters
devIdThe device Id for the device.
paramsDictA dictionary of parameter, defined by the protocol party.
successWhen successfully, this block will be called success.
failureThis block will be called if some error occurred.

Provided by category ThingSmartBLEManager(BigData).

◆ publishAudioEndpoint:dialogId: [1/2]

- (void) publishAudioEndpoint: (NSString *)  deviceId
dialogId: (NSString *)  dialogId 

alexa audio endpoint

Parameters
deviceIddevice id
dialogIddialog id

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ publishAudioEndpoint:dialogId: [2/2]

- (void) publishAudioEndpoint: (NSString *)  deviceId
dialogId: (NSString *)  dialogId 

alexa audio endpoint

Parameters
deviceIddevice id
dialogIddialog id

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ publishAudioMD5Token:token:deviceId: [1/2]

- (void) publishAudioMD5Token: (NSString *)  md5Token
token: (NSString *)  token
deviceId: ("This method is)  deprecated
(Use publishAudioMD5Token:token:deviceId:success:failure:instead")  __deprecated_msg 

alexa md5 token

Parameters
md5Tokenmd5Token
tokentoken
deviceIddevice id

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ publishAudioMD5Token:token:deviceId: [2/2]

- (void) publishAudioMD5Token: (NSString *)  md5Token
token: (NSString *)  token
deviceId: ("This method is)  deprecated
(Use publishAudioMD5Token:token:deviceId:success:failure:instead")  __deprecated_msg 

alexa md5 token

Parameters
md5Tokenmd5Token
tokentoken
deviceIddevice id

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ publishAudioMD5Token:token:deviceId:success:failure: [1/2]

- (void) publishAudioMD5Token: (NSString *)  md5Token
token: (NSString *)  token
deviceId: (NSString *)  deviceId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Pulish alexa md5 token

Parameters
md5Tokenmd5 token
tokentoken
deviceIddeviceId
successsuccess
failurefailure

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ publishAudioMD5Token:token:deviceId:success:failure: [2/2]

- (void) publishAudioMD5Token: (NSString *)  md5Token
token: (NSString *)  token
deviceId: (NSString *)  deviceId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Pulish alexa md5 token

Parameters
md5Tokenmd5 token
tokentoken
deviceIddeviceId
successsuccess
failurefailure

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ publishAudioProvideSpeech:dialogId: [1/2]

- (void) publishAudioProvideSpeech: (NSString *)  deviceId
dialogId: (NSString *)  dialogId 

alexa provide speech

Parameters
deviceIddevice id
dialogIddialog id

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ publishAudioProvideSpeech:dialogId: [2/2]

- (void) publishAudioProvideSpeech: (NSString *)  deviceId
dialogId: (NSString *)  dialogId 

alexa provide speech

Parameters
deviceIddevice id
dialogIddialog id

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ publishAudioResult:type:deviceId: [1/2]

- (void) publishAudioResult: (id)  result
type: (ThingAudioResultType type
deviceId: (NSString *)  deviceId 

alexa audio result

Parameters
resultresult
typetype
deviceIddevice id

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ publishAudioResult:type:deviceId: [2/2]

- (void) publishAudioResult: (id)  result
type: (ThingAudioResultType type
deviceId: (NSString *)  deviceId 

alexa audio result

Parameters
resultresult
typetype
deviceIddevice id

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ publishAudioSpeechState:deviceId: [1/2]

- (void) publishAudioSpeechState: (ThingSmartAudioState state
deviceId: (NSString *)  deviceId 

alex speech state

Parameters
statestate
deviceIddevic id

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ publishAudioSpeechState:deviceId: [2/2]

- (void) publishAudioSpeechState: (ThingSmartAudioState state
deviceId: (NSString *)  deviceId 

alex speech state

Parameters
statestate
deviceIddevic id

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ publishAudioStartSpeech:deviceId:dialogId: [1/2]

- (void) publishAudioStartSpeech: (int)  status
deviceId: (NSString *)  deviceId
dialogId: (NSString *)  dialogId 

alexa start speedch

Parameters
statusstatus
deviceIddeviceId
dialogIddialog Id

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ publishAudioStartSpeech:deviceId:dialogId: [2/2]

- (void) publishAudioStartSpeech: (int)  status
deviceId: (NSString *)  deviceId
dialogId: (NSString *)  dialogId 

alexa start speedch

Parameters
statusstatus
deviceIddeviceId
dialogIddialog Id

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ publishAudioStopSpeech:deviceId:dialogId: [1/2]

- (void) publishAudioStopSpeech: (ThingAudioErrorCode errorCode
deviceId: (NSString *)  deviceId
dialogId: (NSString *)  dialogId 

alexa stop speech

Parameters
errorCodeerror code
deviceIddevice Id
dialogIddialog Id

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ publishAudioStopSpeech:deviceId:dialogId: [2/2]

- (void) publishAudioStopSpeech: (ThingAudioErrorCode errorCode
deviceId: (NSString *)  deviceId
dialogId: (NSString *)  dialogId 

alexa stop speech

Parameters
errorCodeerror code
deviceIddevice Id
dialogIddialog Id

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ publishBleTransparentData:data:success:failure: [1/2]

- (void) publishBleTransparentData: (NSString *)  devId
data: (NSData *)  data
success: (nullable ThingSuccessData success
failure: (nullable ThingFailureError failure 

Publishes the transmitted data.

Parameters
devIdThe device ID.
dataThe data to be transmitted to the device.
successThe data that is returned by the device.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

◆ publishBleTransparentData:data:success:failure: [2/2]

- (void) publishBleTransparentData: (NSString *)  devId
data: (NSData *)  data
success: (nullable ThingSuccessData success
failure: (nullable ThingFailureError failure 

Publishes the transmitted data.

Parameters
devIdThe device ID.
dataThe data to be transmitted to the device.
successThe data that is returned by the device.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

◆ publishBleTransparentDataWithDeviceInfo:data:success:failure: [1/2]

- (void) publishBleTransparentDataWithDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
data: (NSData *)  data
success: (nullable ThingSuccessData success
failure: (nullable ThingFailureError failure 

Publish the transmitted data.

Parameters
deviceInfoThe deviceInfo.
dataData to be transmitted to the device.
successTransmission data returned by the device.
failureThis block will be called if some error occurred.

◆ publishBleTransparentDataWithDeviceInfo:data:success:failure: [2/2]

- (void) publishBleTransparentDataWithDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
data: (NSData *)  data
success: (nullable ThingSuccessData success
failure: (nullable ThingFailureError failure 

Publish the transmitted data.

Parameters
deviceInfoThe deviceInfo.
dataData to be transmitted to the device.
successTransmission data returned by the device.
failureThis block will be called if some error occurred.

◆ publishBleTransparentDataWithUUID:data:success:failure: [1/2]

- (void) publishBleTransparentDataWithUUID: (NSString *)  uuid
data: (NSData *)  data
success: (nullable ThingSuccessData success
failure: ("This method is)  deprecated
(Use publishBleTransparentDataWithDeviceInfo:data:success:failure:instead")  __deprecated_msg 

Publish the transmitted data.

Parameters
uuidThe UUID for the device.
dataData to be transmitted to the device.
successTransmission data returned by the device.
failureThis block will be called if some error occurred.

◆ publishBleTransparentDataWithUUID:data:success:failure: [2/2]

- (void) publishBleTransparentDataWithUUID: (NSString *)  uuid
data: (NSData *)  data
success: (nullable ThingSuccessData success
failure: ("This method is)  deprecated
(Use publishBleTransparentDataWithDeviceInfo:data:success:failure:instead")  __deprecated_msg 

Publish the transmitted data.

Parameters
uuidThe UUID for the device.
dataData to be transmitted to the device.
successTransmission data returned by the device.
failureThis block will be called if some error occurred.

◆ publishFileWithDevId:fileId:fileIdentifier:fileVersion:fileData:fileType:progressBlock:success:failure: [1/2]

- (void) publishFileWithDevId: (NSString *)  devId
fileId: (NSInteger)  fileId
fileIdentifier: (NSString *)  fileIdentifier
fileVersion: (NSInteger)  fileVersion
fileData: (NSData *)  fileData
fileType: (unsigned int)  fileType
progressBlock: (nullable void(^)(float progress))  progressBlock
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

File transfer

Parameters
devIdThe device ID.
fileIdThe file ID.
fileIdentifierThe file identifier.
fileVersionThe file version.
fileDataThe file data.
fileTypeThe file type. If you do not contract filetype with hardware,please use the "-(void)publishFileWithDevId:fileId:fileIdentifier:fileVersion:fileData:progressBlock:success:failure:" api without filetype.
progressBlockThe progress callback
successCalled when the task is finished. DeviceModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

◆ publishFileWithDevId:fileId:fileIdentifier:fileVersion:fileData:fileType:progressBlock:success:failure: [2/2]

- (void) publishFileWithDevId: (NSString *)  devId
fileId: (NSInteger)  fileId
fileIdentifier: (NSString *)  fileIdentifier
fileVersion: (NSInteger)  fileVersion
fileData: (NSData *)  fileData
fileType: (unsigned int)  fileType
progressBlock: (nullable void(^)(float progress))  progressBlock
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

File transfer

Parameters
devIdThe device ID.
fileIdThe file ID.
fileIdentifierThe file identifier.
fileVersionThe file version.
fileDataThe file data.
fileTypeThe file type. If you do not contract filetype with hardware,please use the "-(void)publishFileWithDevId:fileId:fileIdentifier:fileVersion:fileData:progressBlock:success:failure:" api without filetype.
progressBlockThe progress callback
successCalled when the task is finished. DeviceModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

◆ publishFileWithDevId:fileId:fileIdentifier:fileVersion:fileData:progressBlock:success:failure: [1/2]

- (void) publishFileWithDevId: (NSString *)  devId
fileId: (NSInteger)  fileId
fileIdentifier: (NSString *)  fileIdentifier
fileVersion: (NSInteger)  fileVersion
fileData: (NSData *)  fileData
progressBlock: (nullable void(^)(float progress))  progressBlock
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

File transfer

Parameters
devIdThe device ID.
fileIdThe file ID.
fileIdentifierThe file identifier.
fileVersionThe file version.
fileDataThe file data.
progressBlockThe progress callback
successCalled when the task is finished. DeviceModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

◆ publishFileWithDevId:fileId:fileIdentifier:fileVersion:fileData:progressBlock:success:failure: [2/2]

- (void) publishFileWithDevId: (NSString *)  devId
fileId: (NSInteger)  fileId
fileIdentifier: (NSString *)  fileIdentifier
fileVersion: (NSInteger)  fileVersion
fileData: (NSData *)  fileData
progressBlock: (nullable void(^)(float progress))  progressBlock
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

File transfer

Parameters
devIdThe device ID.
fileIdThe file ID.
fileIdentifierThe file identifier.
fileVersionThe file version.
fileDataThe file data.
progressBlockThe progress callback
successCalled when the task is finished. DeviceModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

◆ publishIoTTransparentData:devId:success:failure: [1/2]

- (void) publishIoTTransparentData: (NSData *)  data
devId: (NSString *)  devId
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Publish data to the BLE device eg: scene data

Parameters
datadata
devIdThe device Id for the device.
successWhen publish successfully, this block will be called success.
failureThis block will be called if some error occurred.

Provided by category ThingSmartBLEManager(Biz).

◆ publishIoTTransparentData:devId:success:failure: [2/2]

- (void) publishIoTTransparentData: (NSData *)  data
devId: (NSString *)  devId
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Publish data to the BLE device eg: scene data

Parameters
datadata
devIdThe device Id for the device.
successWhen publish successfully, this block will be called success.
failureThis block will be called if some error occurred.

Provided by category ThingSmartBLEManager(Biz).

◆ publishQueryDpCommand:dpIds:success:failure: [1/2]

- (void) publishQueryDpCommand: (NSString *)  devId
dpIds: (NSArray *)  dpIds
success: (nullable ThingSuccessBOOL success
failure: (nullable ThingFailureError failure 

Queries the device DP data through Bluetooth channels.

Parameters
devIdThe device ID.
dpIdsThe array of DP IDs to be queried.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

◆ publishQueryDpCommand:dpIds:success:failure: [2/2]

- (void) publishQueryDpCommand: (NSString *)  devId
dpIds: (NSArray *)  dpIds
success: (nullable ThingSuccessBOOL success
failure: (nullable ThingFailureError failure 

Queries the device DP data through Bluetooth channels.

Parameters
devIdThe device ID.
dpIdsThe array of DP IDs to be queried.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

◆ publishQueryDpCommandWithDeviceInfo:dpIds:success:failure: [1/2]

- (void) publishQueryDpCommandWithDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
dpIds: (nullable NSArray *)  dpIds
success: (nullable ThingSuccessBOOL success
failure: (nullable ThingFailureError failure 

Query device dp data by Bluetooth channel. ( support 0x0003 / 0x0004 / 0x801E^0x000E )

Parameters
deviceInfoThe deviceInfo.
dpsDataArray of dpId's to be queried.
successWhen query successfully, this block will be called.
failureThis block will be called if some error occurred.

◆ publishQueryDpCommandWithDeviceInfo:dpIds:success:failure: [2/2]

- (void) publishQueryDpCommandWithDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
dpIds: (nullable NSArray *)  dpIds
success: (nullable ThingSuccessBOOL success
failure: (nullable ThingFailureError failure 

Query device dp data by Bluetooth channel. ( support 0x0003 / 0x0004 / 0x801E^0x000E )

Parameters
deviceInfoThe deviceInfo.
dpsDataArray of dpId's to be queried.
successWhen query successfully, this block will be called.
failureThis block will be called if some error occurred.

◆ publishQueryDpCommandWithDeviceInfo:dpsData:success:failure: [1/2]

- (void) publishQueryDpCommandWithDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
dpsData: (NSMutableData *)  dpsData
success: (nullable ThingSuccessBOOL success
failure: ("This method is)  deprecated
(Use publishQueryDpCommandWithDeviceInfo:dpIds:success:failure:instead")  __deprecated_msg 

Query device dp data by Bluetooth channel.

Parameters
deviceInfoThe deviceInfo.
dpsDataArray of dpId's to be queried.
successWhen query successfully, this block will be called.
failureThis block will be called if some error occurred.

◆ publishQueryDpCommandWithDeviceInfo:dpsData:success:failure: [2/2]

- (void) publishQueryDpCommandWithDeviceInfo: (id< ThingBLEDeviceInfoProtocol >)  deviceInfo
dpsData: (NSMutableData *)  dpsData
success: (nullable ThingSuccessBOOL success
failure: ("This method is)  deprecated
(Use publishQueryDpCommandWithDeviceInfo:dpIds:success:failure:instead")  __deprecated_msg 

Query device dp data by Bluetooth channel.

Parameters
deviceInfoThe deviceInfo.
dpsDataArray of dpId's to be queried.
successWhen query successfully, this block will be called.
failureThis block will be called if some error occurred.

◆ publishQueryDpCommandWithUUID:dpsData:success:failure: [1/2]

- (void) publishQueryDpCommandWithUUID: (NSString *)  uuid
dpsData: (NSMutableData *)  dpsData
success: (nullable ThingSuccessBOOL success
failure: ("This method is)  deprecated
(Use publishQueryDpCommandWithDeviceInfo:dpsData:success:failure:instead")  __deprecated_msg 

Query device dp data by Bluetooth channel.

Parameters
uuidThe UUID for the device.
dpsDataArray of dpId's to be queried.
successWhen query successfully, this block will be called.
failureThis block will be called if some error occurred.

◆ publishQueryDpCommandWithUUID:dpsData:success:failure: [2/2]

- (void) publishQueryDpCommandWithUUID: (NSString *)  uuid
dpsData: (NSMutableData *)  dpsData
success: (nullable ThingSuccessBOOL success
failure: ("This method is)  deprecated
(Use publishQueryDpCommandWithDeviceInfo:dpsData:success:failure:instead")  __deprecated_msg 

Query device dp data by Bluetooth channel.

Parameters
uuidThe UUID for the device.
dpsDataArray of dpId's to be queried.
successWhen query successfully, this block will be called.
failureThis block will be called if some error occurred.

◆ publishSystemTimeWithDeviceId: [1/2]

- (void) publishSystemTimeWithDeviceId: (NSString *)  deviceId

Update system time to device

Parameters
deviceIdThe device id

Provided by category ThingSmartBLEManager(Biz).

◆ publishSystemTimeWithDeviceId: [2/2]

- (void) publishSystemTimeWithDeviceId: (NSString *)  deviceId

Update system time to device

Parameters
deviceIdThe device id

Provided by category ThingSmartBLEManager(Biz).

◆ publishTransparentData:devId:success:failure: [1/2]

- (void) publishTransparentData: (NSData *)  data
devId: (NSString *)  devId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Send transparent data (Support multiple packages).

Parameters
dataTransparent data.
devIdThe device Id for the device.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

◆ publishTransparentData:devId:success:failure: [2/2]

- (void) publishTransparentData: (NSData *)  data
devId: (NSString *)  devId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Send transparent data (Support multiple packages).

Parameters
dataTransparent data.
devIdThe device Id for the device.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

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

- (void) queryBLEDualModeBTInfoWithDeviceId: (NSString *)  deviceId
success: (void(^)(ThingBLEDualModeBTModel *btModel))  success
failure: (ThingFailureError failure 

Get BT information, such as name ,macaddress,connect status.

Parameters
deviceIdThe device id
successCalled when the task is finished. btModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(DualModeBT).

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

- (void) queryBLEDualModeBTInfoWithDeviceId: (NSString *)  deviceId
success: (void(^)(ThingBLEDualModeBTModel *btModel))  success
failure: (ThingFailureError failure 

Get BT information, such as name ,macaddress,connect status.

Parameters
deviceIdThe device id
successCalled when the task is finished. btModel is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(DualModeBT).

◆ queryDeviceInfoWithUUID:productId:success:failure: [1/2]

- (void) queryDeviceInfoWithUUID: (NSString *)  uuid
productId: (NSString *)  productId
success: (nullable ThingSuccessDict success
failure: (nullable ThingFailureError failure 

Queries the device information before activation

Parameters
uuidThe UUID of the device.
productIdThe product ID for the device.
successCalled when the task is finished. A dictionary of device information is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

◆ queryDeviceInfoWithUUID:productId:success:failure: [2/2]

- (void) queryDeviceInfoWithUUID: (NSString *)  uuid
productId: (NSString *)  productId
success: (nullable ThingSuccessDict success
failure: (nullable ThingFailureError failure 

Queries the device information before activation

Parameters
uuidThe UUID of the device.
productIdThe product ID for the device.
successCalled when the task is finished. A dictionary of device information is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(Biz).

◆ queryNameWithUUID:productKey:success:failure: [1/2]

- (void) queryNameWithUUID: (NSString *)  uuid
productKey: (NSString *)  productKey
success: (nullable void(^)(NSString *name))  success
failure: ("This method is)  deprecated
(Use ThingSmartBLEManager::queryDeviceInfoWithUUID:productKey:success:failure instead")  __deprecated_msg 

Queries the device information before the activation.

Parameters
uuidThe UUID of the device.
productKeyThe product ID for the device.
successCalled when the task is finished. The device name string is returned.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use ThingSmartBLEManager::queryDeviceInfoWithUUID:productKey:success:failure: instead.

Provided by category ThingSmartBLEManager(Biz).

◆ queryNameWithUUID:productKey:success:failure: [2/2]

- (void) queryNameWithUUID: (NSString *)  uuid
productKey: (NSString *)  productKey
success: (nullable void(^)(NSString *name))  success
failure: ("This method is)  deprecated
(Use ThingSmartBLEManager::queryDeviceInfoWithUUID:productKey:success:failure instead")  __deprecated_msg 

Queries the device information before the activation.

Parameters
uuidThe UUID of the device.
productKeyThe product ID for the device.
successCalled when the task is finished. The device name string is returned.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use ThingSmartBLEManager::queryDeviceInfoWithUUID:productKey:success:failure: instead.

Provided by category ThingSmartBLEManager(Biz).

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

- (void) querySlaveDpsWithSlaveDeviceId: (NSString *)  slaveDeviceId
success: (nullable ThingSuccessBOOL success
failure: (nullable ThingFailureError failure 

Query all slave device dps under the master device

Parameters
slaveDeviceIdmaster deviceId
successsuccess
failurefailure

Provided by category ThingSmartBLEManager(Biz).

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

- (void) querySlaveDpsWithSlaveDeviceId: (NSString *)  slaveDeviceId
success: (nullable ThingSuccessBOOL success
failure: (nullable ThingFailureError failure 

Query all slave device dps under the master device

Parameters
slaveDeviceIdmaster deviceId
successsuccess
failurefailure

Provided by category ThingSmartBLEManager(Biz).

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

- (void) querySlaveInfoWithMasterDeviceId: (NSString *)  masterDeviceId
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Query all slave device information under the master device

Parameters
masterDeviceIdmaster deviceId
successsuccess
failurefailure

Provided by category ThingSmartBLEManager(Biz).

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

- (void) querySlaveInfoWithMasterDeviceId: (NSString *)  masterDeviceId
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Query all slave device information under the master device

Parameters
masterDeviceIdmaster deviceId
successsuccess
failurefailure

Provided by category ThingSmartBLEManager(Biz).

◆ readWithDeviceId:serviceUUID:charactUUID:completion: [1/2]

- (void) readWithDeviceId: (NSString *)  deviceId
serviceUUID: (NSString *)  serviceUUID
charactUUID: (NSString *)  characteristicUUID
completion: (ThingBLECentralCallback callback 

Read data from a Bluetooth device.

Parameters
deviceIddevice Id
serviceUUIDReads the service value for service.
characteristicUUIDReads the characteristic value for characteristic.
callbackcallback

Provided by category ThingSmartBLEManager(CustomChannel).

◆ readWithDeviceId:serviceUUID:charactUUID:completion: [2/2]

- (void) readWithDeviceId: (NSString *)  deviceId
serviceUUID: (NSString *)  serviceUUID
charactUUID: (NSString *)  characteristicUUID
completion: (ThingBLECentralCallback callback 

Read data from a Bluetooth device.

Parameters
deviceIddevice Id
serviceUUIDReads the service value for service.
characteristicUUIDReads the characteristic value for characteristic.
callbackcallback

Provided by category ThingSmartBLEManager(CustomChannel).

◆ recordBleConnectEventWithDevId:src:actId:extra: [1/2]

- (void) recordBleConnectEventWithDevId: (NSString *)  devId
src: (NSInteger)  src
actId: (nullable NSString *)  actId
extra: (nullable NSDictionary *)  extra 

Record ble connect event.

Provided by category ThingSmartBLEManager(Biz).

◆ recordBleConnectEventWithDevId:src:actId:extra: [2/2]

- (void) recordBleConnectEventWithDevId: (NSString *)  devId
src: (NSInteger)  src
actId: (nullable NSString *)  actId
extra: (nullable NSDictionary *)  extra 

Record ble connect event.

Provided by category ThingSmartBLEManager(Biz).

◆ scanActivatedDeviceWithTimeInterval:scanHandler:finishHandler: [1/2]

- (void) scanActivatedDeviceWithTimeInterval: (NSTimeInterval)  interval
scanHandler: (ThingSuccessString scanHandle
finishHandler: (ThingSuccessHandler finishHandle 

Starts listening for broadcast packages for active Bluetooth LE devices during interval

Parameters
intervalscan time.If interval < 0, set it to the default 40s
scanHandlecalled when find ble device broadcast,return devId of find device
finishHandlecalled when the task is finished

Provided by category ThingSmartBLEManager(Biz).

◆ scanActivatedDeviceWithTimeInterval:scanHandler:finishHandler: [2/2]

- (void) scanActivatedDeviceWithTimeInterval: (NSTimeInterval)  interval
scanHandler: (ThingSuccessString scanHandle
finishHandler: (ThingSuccessHandler finishHandle 

Starts listening for broadcast packages for active Bluetooth LE devices during interval

Parameters
intervalscan time.If interval < 0, set it to the default 40s
scanHandlecalled when find ble device broadcast,return devId of find device
finishHandlecalled when the task is finished

Provided by category ThingSmartBLEManager(Biz).

◆ scanQRCodeToResetDeviceWithUUID:encryptedAuthKey:random:success:failure: [1/2]

- (void) scanQRCodeToResetDeviceWithUUID: (NSString *)  UUID
encryptedAuthKey: (NSString *)  encryptedAuthKey
random: (NSString *)  random
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Provided by category ThingSmartBLEManager(QRCode).

◆ scanQRCodeToResetDeviceWithUUID:encryptedAuthKey:random:success:failure: [2/2]

- (void) scanQRCodeToResetDeviceWithUUID: (NSString *)  UUID
encryptedAuthKey: (NSString *)  encryptedAuthKey
random: (NSString *)  random
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Provided by category ThingSmartBLEManager(QRCode).

◆ sendAlexaSuccessWithDeviceId:andToken: [1/2]

- (void) sendAlexaSuccessWithDeviceId: (NSString *)  deviceId
andToken: (NSString *)  token 

alexa success device id

Parameters
deviceIddevice id
tokentoken

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ sendAlexaSuccessWithDeviceId:andToken: [2/2]

- (void) sendAlexaSuccessWithDeviceId: (NSString *)  deviceId
andToken: (NSString *)  token 

alexa success device id

Parameters
deviceIddevice id
tokentoken

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ sendOTAPack:deviceModel:upgradeModel:success:failure: [1/2]

- (void) sendOTAPack: (NSData *)  otaData
deviceModel: (ThingSmartDeviceModel *)  deviceModel
upgradeModel: (ThingSmartFirmwareUpgradeModel *)  upgradeModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Send OTA package to upgrade firmware.

Parameters
otaDataotaData.
deviceModelDevice Model.
upgradeModelFirmware upgrade model.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(OTA).

◆ sendOTAPack:deviceModel:upgradeModel:success:failure: [2/2]

- (void) sendOTAPack: (NSData *)  otaData
deviceModel: (ThingSmartDeviceModel *)  deviceModel
upgradeModel: (ThingSmartFirmwareUpgradeModel *)  upgradeModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Send OTA package to upgrade firmware.

Parameters
otaDataotaData.
deviceModelDevice Model.
upgradeModelFirmware upgrade model.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBLEManager(OTA).

◆ sendOTAPack:otaData:success:failure: [1/2]

- (void) sendOTAPack: (NSString *)  uuid
otaData: (NSData *)  otaData
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use ThingSmartBLEManager::sendOTAPack:deviceModel:upgradeModel:success:failure:instead")  __deprecated_msg 

Sends an OTA package to update the firmware.

The value of otaData can be obtained from ThingSmartFirmwareUpgradeModel. You can get ThingSmartFirmwareUpgradeModel by using getFirmwareUpgradeInfo:failure: (ThingSmartDevice).

Note
Your device must be connected over Bluetooth before the update.
Parameters
uuidThe UUID of the device.
otaDataThe OTA package data.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use sendOTAPack:deviceModel:upgradeModel:success:failure: (ThingSmartBLEManager(OTA)) instead.

Provided by category ThingSmartBLEManager(OTA).

◆ sendOTAPack:otaData:success:failure: [2/2]

- (void) sendOTAPack: (NSString *)  uuid
otaData: (NSData *)  otaData
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use ThingSmartBLEManager::sendOTAPack:deviceModel:upgradeModel:success:failure:instead")  __deprecated_msg 

Sends an OTA package to update the firmware.

The value of otaData can be obtained from ThingSmartFirmwareUpgradeModel. You can get ThingSmartFirmwareUpgradeModel by using getFirmwareUpgradeInfo:failure: (ThingSmartDevice).

Note
Your device must be connected over Bluetooth before the update.
Parameters
uuidThe UUID of the device.
otaDataThe OTA package data.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use sendOTAPack:deviceModel:upgradeModel:success:failure: (ThingSmartBLEManager(OTA)) instead.

Provided by category ThingSmartBLEManager(OTA).

◆ sendOTAPack:pid:otaData:otaType:otaVersion:success:failure: [1/2]

- (void) sendOTAPack: (NSString *)  uuid
pid: (NSString *)  pid
otaData: (NSData *)  otaData
otaType: (ThingSmartBLEOTAType)  otaType
otaVersion: (NSString *)  otaVersion
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use ThingSmartBLEManager::sendOTAPack:deviceModel:upgradeModel:success:failure:instead")  __deprecated_msg 

Sends an OTA package to update the firmware.

The values of otaData, otaType, and otaVersion can be obtained from ThingSmartFirmwareUpgradeModel. You can get ThingSmartFirmwareUpgradeModel by using getFirmwareUpgradeInfo:failure: (ThingSmartDevice).

Note
Your device must be connected over Bluetooth before the update.
Parameters
uuidThe UUID of the device.
pidThe product ID of the device.
otaDataThe OTA package data.
otaTypeThe OTA update type.
otaVersionThe OTA version.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use sendOTAPack:deviceModel:upgradeModel:success:failure: (ThingSmartBLEManager(OTA)) instead.

Provided by category ThingSmartBLEManager(OTA).

◆ sendOTAPack:pid:otaData:otaType:otaVersion:success:failure: [2/2]

- (void) sendOTAPack: (NSString *)  uuid
pid: (NSString *)  pid
otaData: (NSData *)  otaData
otaType: (ThingSmartBLEOTAType)  otaType
otaVersion: (NSString *)  otaVersion
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use ThingSmartBLEManager::sendOTAPack:deviceModel:upgradeModel:success:failure:instead")  __deprecated_msg 

Sends an OTA package to update the firmware.

The values of otaData, otaType, and otaVersion can be obtained from ThingSmartFirmwareUpgradeModel. You can get ThingSmartFirmwareUpgradeModel by using getFirmwareUpgradeInfo:failure: (ThingSmartDevice).

Note
Your device must be connected over Bluetooth before the update.
Parameters
uuidThe UUID of the device.
pidThe product ID of the device.
otaDataThe OTA package data.
otaTypeThe OTA update type.
otaVersionThe OTA version.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use sendOTAPack:deviceModel:upgradeModel:success:failure: (ThingSmartBLEManager(OTA)) instead.

Provided by category ThingSmartBLEManager(OTA).

◆ sendOTAPack:pid:otaData:success:failure: [1/2]

- (void) sendOTAPack: (NSString *)  uuid
pid: (NSString *)  pid
otaData: (NSData *)  otaData
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use ThingSmartBLEManager::sendOTAPack:deviceModel:upgradeModel:success:failure:instead")  __deprecated_msg 

Sends an OTA package to update the firmware.

The value of otaData can be obtained from ThingSmartFirmwareUpgradeModel. You can get ThingSmartFirmwareUpgradeModel by using getFirmwareUpgradeInfo:failure: (ThingSmartDevice).

Note
Your device must be connected over Bluetooth before the update.
Parameters
uuidThe UUID of the device.
pidThe product ID of the device.
otaDataThe OTA package data.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use sendOTAPack:deviceModel:upgradeModel:success:failure: (ThingSmartBLEManager(OTA)) instead.

Provided by category ThingSmartBLEManager(OTA).

◆ sendOTAPack:pid:otaData:success:failure: [2/2]

- (void) sendOTAPack: (NSString *)  uuid
pid: (NSString *)  pid
otaData: (NSData *)  otaData
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use ThingSmartBLEManager::sendOTAPack:deviceModel:upgradeModel:success:failure:instead")  __deprecated_msg 

Sends an OTA package to update the firmware.

The value of otaData can be obtained from ThingSmartFirmwareUpgradeModel. You can get ThingSmartFirmwareUpgradeModel by using getFirmwareUpgradeInfo:failure: (ThingSmartDevice).

Note
Your device must be connected over Bluetooth before the update.
Parameters
uuidThe UUID of the device.
pidThe product ID of the device.
otaDataThe OTA package data.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use sendOTAPack:deviceModel:upgradeModel:success:failure: (ThingSmartBLEManager(OTA)) instead.

Provided by category ThingSmartBLEManager(OTA).

◆ sendPacketInfoWithDev:data:type:packageMaxSize:success:failure: [1/2]

- (void) sendPacketInfoWithDev: (id< ThingBLEDeviceInfoProtocol >)  dev
data: (NSData *)  data
type: (ThingBLEConfigType type
packageMaxSize: (NSInteger)  maxSize
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

◆ sendPacketInfoWithDev:data:type:packageMaxSize:success:failure: [2/2]

- (void) sendPacketInfoWithDev: (id< ThingBLEDeviceInfoProtocol >)  dev
data: (NSData *)  data
type: (ThingBLEConfigType type
packageMaxSize: (NSInteger)  maxSize
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

◆ setAlarmClockWithAlarmClockModel:deviceId:success:failure: [1/2]

- (void) setAlarmClockWithAlarmClockModel: (ThingBLEAudioAlarmClockModel *)  model
deviceId: (NSString *)  deviceId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

alexa set alarm clock

Parameters
modelclockModel
deviceIddevice id
successsuccess
failurefailure

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ setAlarmClockWithAlarmClockModel:deviceId:success:failure: [2/2]

- (void) setAlarmClockWithAlarmClockModel: (ThingBLEAudioAlarmClockModel *)  model
deviceId: (NSString *)  deviceId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

alexa set alarm clock

Parameters
modelclockModel
deviceIddevice id
successsuccess
failurefailure

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ setCompletionBlock:uuid: [1/2]

- (void) setCompletionBlock: (TPBleResultBlock block
uuid: (NSString *)  uuid 

Sets the callback when the transfer is completed.

Parameters
blockCalled when the task is finished.
uuidThe UUID of the device.

Provided by category ThingSmartBLEManager(Channel).

◆ setCompletionBlock:uuid: [2/2]

- (void) setCompletionBlock: (TPBleResultBlock block
uuid: (NSString *)  uuid 

Sets the callback when the transfer is completed.

Parameters
blockCalled when the task is finished.
uuidThe UUID of the device.

Provided by category ThingSmartBLEManager(Channel).

◆ setNotificationStatus:isPermanentVision:isPlayAudio:deviceId:success:failure: [1/2]

- (void) setNotificationStatus: (int)  notifyFlag
isPermanentVision: (BOOL)  isPermanentVision
isPlayAudio: (BOOL)  isPlayAudio
deviceId: (NSString *)  deviceId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

alexa notification status

Parameters
notifyFlagnotify Flag
isPermanentVisionpermanent vision
isPlayAudioplay audio
deviceIddevice id
successsuccess
failurefailure

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ setNotificationStatus:isPermanentVision:isPlayAudio:deviceId:success:failure: [2/2]

- (void) setNotificationStatus: (int)  notifyFlag
isPermanentVision: (BOOL)  isPermanentVision
isPlayAudio: (BOOL)  isPlayAudio
deviceId: (NSString *)  deviceId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

alexa notification status

Parameters
notifyFlagnotify Flag
isPermanentVisionpermanent vision
isPlayAudioplay audio
deviceIddevice id
successsuccess
failurefailure

Provided by category ThingSmartBLEManager(AlexaVoice).

◆ setScanDelegate: [1/2]

- (void) setScanDelegate: ("This method is)  deprecated
(the scan delegate is already set at initialization time")  __deprecated_msg 

◆ setScanDelegate: [2/2]

- (void) setScanDelegate: ("This method is)  deprecated
(the scan delegate is already set at initialization time")  __deprecated_msg 

◆ sharedInstance [1/2]

+ (instancetype) sharedInstance

The single instance.

◆ sharedInstance [2/2]

+ (instancetype) sharedInstance

The single instance.

◆ startBleBeaconListening [1/2]

- (void) startBleBeaconListening

start ble beacon scan,the dp data will be reported if scanned. The data of all ble beacon devices in the current account will be scanned.

Provided by category ThingSmartBLEManager(Biz).

◆ startBleBeaconListening [2/2]

- (void) startBleBeaconListening

start ble beacon scan,the dp data will be reported if scanned. The data of all ble beacon devices in the current account will be scanned.

Provided by category ThingSmartBLEManager(Biz).

◆ startBleBeaconListeningWithDeviceId: [1/2]

- (void) startBleBeaconListeningWithDeviceId: (NSString *)  deviceId

start ble beacon scan

Parameters
deviceIdThe device id

Provided by category ThingSmartBLEManager(Biz).

◆ startBleBeaconListeningWithDeviceId: [2/2]

- (void) startBleBeaconListeningWithDeviceId: (NSString *)  deviceId

start ble beacon scan

Parameters
deviceIdThe device id

Provided by category ThingSmartBLEManager(Biz).

◆ startCommRodScan [1/2]

- (void) startCommRodScan

Provided by category ThingSmartBLEManager(CommRod).

◆ startCommRodScan [2/2]

- (void) startCommRodScan

Provided by category ThingSmartBLEManager(CommRod).

◆ startEnhancedQRListenWithCache:handler:configNotify:scanType: [1/2]

- (void) startEnhancedQRListenWithCache: (BOOL)  cache
handler: (ThingBLEScanHandler handler
configNotify: (id< ThingSmartBLEConfigPackageNotify >)  notify
scanType: (ThingBLEScanType)  scanType 

增强扫码设备扫描

Parameters
cache是否清理已扫描到的设备
handler设备扫描之后需要处理的业务功能
notify接收蓝牙业务回调
scanType扫描类型

◆ startEnhancedQRListenWithCache:handler:configNotify:scanType: [2/2]

- (void) startEnhancedQRListenWithCache: (BOOL)  cache
handler: (ThingBLEScanHandler handler
configNotify: (id< ThingSmartBLEConfigPackageNotify >)  notify
scanType: (ThingBLEScanType)  scanType 

增强扫码设备扫描

Parameters
cache是否清理已扫描到的设备
handler设备扫描之后需要处理的业务功能
notify接收蓝牙业务回调
scanType扫描类型

◆ startListenCore:handler:configNotify:scanType: [1/2]

- (void) startListenCore: (BOOL)  cache
handler: (nullable ThingBLEScanHandler handler
configNotify: (id< ThingSmartBLEConfigPackageNotify >)  notify
scanType: (ThingBLEScanType)  scanType 

开始设备扫描

Parameters
cache是否清理已扫描到的设备
handler设备扫描之后需要处理的业务功能
notify接收蓝牙业务回调
scanType扫描类型

◆ startListenCore:handler:configNotify:scanType: [2/2]

- (void) startListenCore: (BOOL)  cache
handler: (nullable ThingBLEScanHandler handler
configNotify: (id< ThingSmartBLEConfigPackageNotify >)  notify
scanType: (ThingBLEScanType)  scanType 

开始设备扫描

Parameters
cache是否清理已扫描到的设备
handler设备扫描之后需要处理的业务功能
notify接收蓝牙业务回调
scanType扫描类型

◆ startListening: [1/2]

- (void) startListening: (BOOL)  clearCache

Starts listening for broadcast packages for Bluetooth LE devices.

If an inactive device is scanned, the device information is returned by didDiscoveryDeviceWithDeviceInfo: (ThingSmartBLEManagerDelegate-p).

If an active device is scanned, the device is automatically connected.

Parameters
clearCacheSpecifies whether to clean up the broadcast packets of scanned devices.

Provided by category ThingSmartBLEManager(Biz).

◆ startListening: [2/2]

- (void) startListening: (BOOL)  clearCache

Starts listening for broadcast packages for Bluetooth LE devices.

If an inactive device is scanned, the device information is returned by didDiscoveryDeviceWithDeviceInfo: (ThingSmartBLEManagerDelegate-p).

If an active device is scanned, the device is automatically connected.

Parameters
clearCacheSpecifies whether to clean up the broadcast packets of scanned devices.

Provided by category ThingSmartBLEManager(Biz).

◆ startListeningWithType:cacheStatu: [1/2]

- (void) startListeningWithType: (ThingBLEScanType)  scanType
cacheStatu: (BOOL)  clearCache 

Starts listening for broadcast packages for Bluetooth LE devices.

If an inactive device is scanned, the device information is returned by didDiscoveryDeviceWithDeviceInfo: (ThingSmartBLEManagerDelegate-p).

If an active device is scanned, the device is automatically connected.

Parameters
scanTypeSpecifies whether to scan type. Noraml type is general device. QRCode type is supports code scanning devices.
clearCacheSpecifies whether to clean up the broadcast packets of scanned devices.

Provided by category ThingSmartBLEManager(Biz).

◆ startListeningWithType:cacheStatu: [2/2]

- (void) startListeningWithType: (ThingBLEScanType)  scanType
cacheStatu: (BOOL)  clearCache 

Starts listening for broadcast packages for Bluetooth LE devices.

If an inactive device is scanned, the device information is returned by didDiscoveryDeviceWithDeviceInfo: (ThingSmartBLEManagerDelegate-p).

If an active device is scanned, the device is automatically connected.

Parameters
scanTypeSpecifies whether to scan type. Noraml type is general device. QRCode type is supports code scanning devices.
clearCacheSpecifies whether to clean up the broadcast packets of scanned devices.

Provided by category ThingSmartBLEManager(Biz).

◆ startListeningWithUUID: [1/2]

- (void) startListeningWithUUID: (NSString *)  UUID

Provided by category ThingSmartBLEManager(QRCode).

◆ startListeningWithUUID: [2/2]

- (void) startListeningWithUUID: (NSString *)  UUID

Provided by category ThingSmartBLEManager(QRCode).

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

- (void) startListeningWithUUID: (NSString *)  UUID
success: (nullable void(^)(id< ThingBLEDeviceInfoProtocol > devInfo))  success
failure: (nullable ThingFailureHandler failure 

Provided by category ThingSmartBLEManager(QRCode).

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

- (void) startListeningWithUUID: (NSString *)  UUID
success: (nullable void(^)(id< ThingBLEDeviceInfoProtocol > devInfo))  success
failure: (nullable ThingFailureHandler failure 

Provided by category ThingSmartBLEManager(QRCode).

◆ startScanWithInterval:scanHandler:finishHandler: [1/2]

- (void) startScanWithInterval: (NSTimeInterval)  interval
scanHandler: (ThingBLEScanHandler scanHandle
finishHandler: (ThingSuccessHandler finishHandle 

Ble device scan with time out

Parameters
intervaltimeout
scanHandle设备扫描之后需要处理的业务功能
finishHandlefailure description

◆ startScanWithInterval:scanHandler:finishHandler: [2/2]

- (void) startScanWithInterval: (NSTimeInterval)  interval
scanHandler: (ThingBLEScanHandler scanHandle
finishHandler: (ThingSuccessHandler finishHandle 

Ble device scan with time out

Parameters
intervaltimeout
scanHandle设备扫描之后需要处理的业务功能
finishHandlefailure description

◆ stopBleBeaconListening [1/2]

- (void) stopBleBeaconListening

stop ble beacon scan

Provided by category ThingSmartBLEManager(Biz).

◆ stopBleBeaconListening [2/2]

- (void) stopBleBeaconListening

stop ble beacon scan

Provided by category ThingSmartBLEManager(Biz).

◆ stopBleBeaconListeningWithDeviceId: [1/2]

- (void) stopBleBeaconListeningWithDeviceId: (NSString *)  deviceId

stop ble beacon scan

Parameters
deviceIdThe device id

Provided by category ThingSmartBLEManager(Biz).

◆ stopBleBeaconListeningWithDeviceId: [2/2]

- (void) stopBleBeaconListeningWithDeviceId: (NSString *)  deviceId

stop ble beacon scan

Parameters
deviceIdThe device id

Provided by category ThingSmartBLEManager(Biz).

◆ stopFileTransfer: [1/2]

- (void) stopFileTransfer: (NSString *)  devId

Stop file transfer

Parameters
devIdThe device ID.

Provided by category ThingSmartBLEManager(Biz).

◆ stopFileTransfer: [2/2]

- (void) stopFileTransfer: (NSString *)  devId

Stop file transfer

Parameters
devIdThe device ID.

Provided by category ThingSmartBLEManager(Biz).

◆ stopListenCore: [1/2]

- (void) stopListenCore: (BOOL)  clearCache

◆ stopListenCore: [2/2]

- (void) stopListenCore: (BOOL)  clearCache

◆ stopListening: [1/2]

- (void) stopListening: (BOOL)  clearCache

Stop listening for broadcast packages for BLE devices.

Parameters
clearCacheSpecifies whether to clean up the broadcast packets of scanned devices.

Provided by category ThingSmartBLEManager(Biz).

◆ stopListening: [2/2]

- (void) stopListening: (BOOL)  clearCache

Stop listening for broadcast packages for BLE devices.

Parameters
clearCacheSpecifies whether to clean up the broadcast packets of scanned devices.

Provided by category ThingSmartBLEManager(Biz).

◆ success

- (void(^)) success (id)  deviceModel

◆ switchZigbeeSubDeviceToZigbeeActivator:homeId:success:failure: [1/2]

- (void) switchZigbeeSubDeviceToZigbeeActivator: (id< ThingBLEDeviceInfoProtocol >)  dev
homeId: (long long)  homeId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Provided by category ThingSmartBLEManager(PlugPlay).

◆ switchZigbeeSubDeviceToZigbeeActivator:homeId:success:failure: [2/2]

- (void) switchZigbeeSubDeviceToZigbeeActivator: (id< ThingBLEDeviceInfoProtocol >)  dev
homeId: (long long)  homeId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Provided by category ThingSmartBLEManager(PlugPlay).

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

- (void) unBindSlaveDeviceWithSlaveDeviceId: (NSString *)  slaveDeviceId
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Unbind master_slave devices

Parameters
slaveDeviceIdslave device id
successIf successfully Unbind, this block is called.
failureIf Unbind fails, this block calls back an error

Provided by category ThingSmartBLEManager(Biz).

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

- (void) unBindSlaveDeviceWithSlaveDeviceId: (NSString *)  slaveDeviceId
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Unbind master_slave devices

Parameters
slaveDeviceIdslave device id
successIf successfully Unbind, this block is called.
failureIf Unbind fails, this block calls back an error

Provided by category ThingSmartBLEManager(Biz).

◆ writeWithDeviceId:data:serviceUUID:charactUUID:completion: [1/2]

- (void) writeWithDeviceId: (NSString *)  deviceId
data: (NSData *)  data
serviceUUID: (NSString *)  serviceUUID
charactUUID: (NSString *)  characteristicUUID
completion: (ThingBLECentralWriteCallback callback 

Writes data to a Bluetooth device.

Parameters
deviceIddevice Id
datatransmit data
serviceUUIDwrite the service value for service.
characteristicUUIDThe characteristic whose characteristic value will be written.
callbackcallback,when callback is nil,CBCharacteristicWriteType is CBCharacteristicWriteWithoutResponse,else CBCharacteristicWriteType is CBCharacteristicWriteWithResponse.

Provided by category ThingSmartBLEManager(CustomChannel).

◆ writeWithDeviceId:data:serviceUUID:charactUUID:completion: [2/2]

- (void) writeWithDeviceId: (NSString *)  deviceId
data: (NSData *)  data
serviceUUID: (NSString *)  serviceUUID
charactUUID: (NSString *)  characteristicUUID
completion: (ThingBLECentralWriteCallback callback 

Writes data to a Bluetooth device.

Parameters
deviceIddevice Id
datatransmit data
serviceUUIDwrite the service value for service.
characteristicUUIDThe characteristic whose characteristic value will be written.
callbackcallback,when callback is nil,CBCharacteristicWriteType is CBCharacteristicWriteWithoutResponse,else CBCharacteristicWriteType is CBCharacteristicWriteWithResponse.

Provided by category ThingSmartBLEManager(CustomChannel).

Property Documentation

◆ alexaAudioDelegate

- (id< ThingSmartBLEAlexaAudioDelegate >) alexaAudioDelegate
readwritenonatomicweak

Definition at line 190 of file ThingSmartBLEManager.h.

◆ commonAudioDelegate

- (id< ThingSmartBLEAudioNotifyDelegate >) commonAudioDelegate
readwritenonatomicweak

Definition at line 192 of file ThingSmartBLEManager.h.

◆ currentDialogId

- (NSString *) currentDialogId
readwritenonatomiccopy

Definition at line 203 of file ThingSmartBLEManager.h.

◆ delegate

- (id< ThingSmartBLEManagerDelegate >) delegate
readwritenonatomicweak

The delegate for scanning and notifications of Bluetooth status changes.

Definition at line 186 of file ThingSmartBLEManager.h.

◆ disableBLECapability

- (BOOL) disableBLECapability
readwritenonatomicassign

Whether to disable bluetooth. Default NO.

Definition at line 183 of file ThingSmartBLEManager.h.

◆ failureHandler

- (ThingFailureHandler) failureHandler
readwritenonatomiccopy

Definition at line 197 of file ThingSmartBLEManager.h.

◆ findMacDelegatel

- (id< ThingBLEFindMacDelegate >) findMacDelegatel
readwritenonatomicweak

Definition at line 195 of file ThingSmartBLEManager.h.

◆ isPoweredOn

- (BOOL) isPoweredOn
readnonatomicassign

A Boolean value that indicates whether the mobile phone's Bluetooth is enabled or disabled.

Definition at line 180 of file ThingSmartBLEManager.h.

◆ localDataDelegate

- (id< ThingSmartBLELocalDataDelegate >) localDataDelegate
readwritenonatomicweak

Definition at line 188 of file ThingSmartBLEManager.h.

◆ resultDic

- (NSMutableDictionary *) resultDic
readwritenonatomicstrong

Definition at line 205 of file ThingSmartBLEManager.h.

◆ scanHandler

- (ThingBLEScanHandler) scanHandler
readwritenonatomicstrong

Definition at line 209 of file ThingSmartBLEManager.h.

◆ success

- (void(^ success) (id deviceModel))
readwritenonatomiccopy

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