Tuya iOS Smart Life App SDK 5.15.0
ThingSmartBeaconManager Class Reference

#import <ThingSmartBeaconManager.h>

Inheritance diagram for ThingSmartBeaconManager:

Instance Methods

(void) - activateBeacon:homeId:success:failure:
 
(void) - activateBeaconListWithParams:activatedDeviceSuccess:activatedDeviceFailure:activatedFinish:
 
(void) - updateBeaconMesh:
 
(void) - stopActivatingBeacons:
 The end of the pairing process. More...
 
(void) - stopActivatingAllBeacons
 Stop activating all cached beacon devices. More...
 
(void) - publishDpsWithDevicId:dps:success:failure:
 
(void) - checkDeviceOnlineStateWithDevice:
 
(void) - checkAllBeaconDeviceOnlineState:
 
(void) - connectBeaconWithDeviceId:
 
(void) - resetWithDevId:success:failure:
 
(BOOL) - deviceStatueWithUUID:
 
(BOOL) - gatewayOnlineOfDevice:
 
(void) - publishChannelRequestWithAction:deviceId:requestModel:
 
(void) - activateBeacon:homeId:success:failure:
 
(void) - activateBeaconListWithParams:activatedDeviceSuccess:activatedDeviceFailure:activatedFinish:
 
(void) - updateBeaconMesh:
 
(void) - stopActivatingBeacons:
 The end of the pairing process. More...
 
(void) - stopActivatingAllBeacons
 Stop activating all cached beacon devices. More...
 
(void) - publishDpsWithDevicId:dps:success:failure:
 
(void) - checkDeviceOnlineStateWithDevice:
 
(void) - checkAllBeaconDeviceOnlineState:
 
(void) - connectBeaconWithDeviceId:
 
(void) - resetWithDevId:success:failure:
 
(BOOL) - deviceStatueWithUUID:
 
(BOOL) - gatewayOnlineOfDevice:
 
(void) - publishChannelRequestWithAction:deviceId:requestModel:
 
(void) - batchPublishDps:retryCount:
 
(void) - batchPublishDps:retryCount:
 
(void) - addDeviceToGroupWithDevId:groupId:success:failure:
 
(void) - addDeviceToGroupWithDevId:groupId:success:failure:
 
(void) - deleteDeviceFromGroupWithDevId:groupId:success:failure:
 
(void) - deleteDeviceFromGroupWithDevId:groupId:success:failure:
 
(void) - queryGroupsWithDevId:success:failure:
 
(void) - queryGroupsWithDevId:success:failure:
 
(void) - publishGroupDps:firstDevId:groupId:success:failure:
 
(void) - publishGroupDps:firstDevId:groupId:success:failure:
 
(void) - removeDeviceGroupWithGroupId:success:failure:
 
(void) - removeDeviceGroupWithGroupId:success:failure:
 
(void) - removeDeviceWithGroupId:deviceId:success:failure:
 
(void) - removeDeviceWithGroupId:deviceId:success:failure:
 
(void) - scanForSharedBeaconWithDeviceId:
 
(void) - scanForSharedBeaconWithDeviceId:
 
(void) - scanForSharedBeaconsWithDeviceIds:
 
(void) - scanForSharedBeaconsWithDeviceIds:
 
(void) - stopShareBeaconScan
 Stop scanning beacon shared devices. More...
 
(void) - stopShareBeaconScan
 Stop scanning beacon shared devices. More...
 
(void) - stopScanShareBeaconWithDeviceId:
 
(void) - stopScanShareBeaconWithDeviceId:
 
(void) - stopScanSharedBeaconsWithDeviceIds:
 
(void) - stopScanSharedBeaconsWithDeviceIds:
 
(void) - startScan
 
(void) - startScan
 
(void) - stopScan
 
(void) - stopScan
 
(void) - activeBeacon:homeId:success:failure:
 
(void) - activeBeacon:homeId:success:failure:
 
("use `stopActivatingBeacons:` instead") - __deprecated_msg
 The end of the pairing process. More...
 
("use `stopActivatingBeacons:` instead") - __deprecated_msg
 The end of the pairing process. More...
 

Class Methods

(instancetype) + sharedInstance
 The single instance. More...
 
(void) + disableBLECapability:
 Whether to disable bluetooth capability. Default NO. More...
 
(instancetype) + sharedInstance
 The single instance. More...
 
(void) + disableBLECapability:
 Whether to disable bluetooth capability. Default NO. More...
 
(void) + createBeaconGroupWithGroupParams:success:failure:
 
(void) + createBeaconGroupWithGroupParams:success:failure:
 
(void) + createBeaconGroupWithGroupName:homeId:productId:pcc:success:failure:
 
(void) + createBeaconGroupWithGroupName:homeId:productId:pcc:success:failure:
 
(void) + addDeviceWithGroupId:deviceId:success:failure:
 
(void) + addDeviceWithGroupId:deviceId:success:failure:
 
(void) + removeBeaconGroupGroupId:success:failure:
 
(void) + removeBeaconGroupGroupId:success:failure:
 
(void) + createBeaconGroupWithGroupName:productId:pcc:success:failure:
 
(void) + createBeaconGroupWithGroupName:productId:pcc:success:failure:
 

Properties

BOOL isPoweredOn
 
id< ThingSmartBeaconManagerDelegate, ThingSmartBLEManagerDelegatedelegate
 

Detailed Description

Definition at line 56 of file ThingSmartBeaconManager.h.

Method Documentation

◆ __deprecated_msg [1/2]

The end of the pairing process.

Provided by category ThingSmartBeaconManager(ThingDeprecatedAPI).

◆ __deprecated_msg [2/2]

The end of the pairing process.

Provided by category ThingSmartBeaconManager(ThingDeprecatedAPI).

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

- (void) activateBeacon: (ThingBLEAdvModel *)  advModel
homeId: (long long)  homeId
success: (void(^)(ThingSmartDeviceModel *deviceModel))  success
failure: ("This method is)  deprecated
(Use activateBeaconListWithParams:activatedDeviceSuccess:activatedDeviceFailure:activatedFinish:instead")  __deprecated_msg 

Activates the beacon device. advModel is cached and removed when activated

Parameters
advModelThe advertisingData model for the beacon 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.

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

- (void) activateBeacon: (ThingBLEAdvModel *)  advModel
homeId: (long long)  homeId
success: (void(^)(ThingSmartDeviceModel *deviceModel))  success
failure: ("This method is)  deprecated
(Use activateBeaconListWithParams:activatedDeviceSuccess:activatedDeviceFailure:activatedFinish:instead")  __deprecated_msg 

Activates the beacon device. advModel is cached and removed when activated

Parameters
advModelThe advertisingData model for the beacon 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.

◆ activateBeaconListWithParams:activatedDeviceSuccess:activatedDeviceFailure:activatedFinish: [1/2]

- (void) activateBeaconListWithParams: (ThingSmartBeaconActiveParamsModel *)  paramsModel
activatedDeviceSuccess: (void(^)(ThingSmartDeviceModel *deviceModel))  deviceSuccess
activatedDeviceFailure: (void(^)(ThingBLEAdvModel *advModel, NSError *error))  deviceFailure
activatedFinish: (void(^)(NSError *error))  activatedFinish 

Activates the beacon device list

Parameters
paramsModelparams model
deviceSuccessindividual device activated success block
deviceFailureindividual devicev activated failure block
activatedFinishall devices activated finish . when there is an error, All devices are abnormal .

◆ activateBeaconListWithParams:activatedDeviceSuccess:activatedDeviceFailure:activatedFinish: [2/2]

- (void) activateBeaconListWithParams: (ThingSmartBeaconActiveParamsModel *)  paramsModel
activatedDeviceSuccess: (void(^)(ThingSmartDeviceModel *deviceModel))  deviceSuccess
activatedDeviceFailure: (void(^)(ThingBLEAdvModel *advModel, NSError *error))  deviceFailure
activatedFinish: (void(^)(NSError *error))  activatedFinish 

Activates the beacon device list

Parameters
paramsModelparams model
deviceSuccessindividual device activated success block
deviceFailureindividual devicev activated failure block
activatedFinishall devices activated finish . when there is an error, All devices are abnormal .

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

- (void) activeBeacon: (ThingBLEAdvModel *)  advModel
homeId: (long long)  homeId
success: (void(^)(ThingSmartDeviceModel *deviceModel))  success
failure: ("use `activateBeacon:homeId:success:failure:` instead")  __deprecated_msg 

Activates the beacon device.

Parameters
advModelThe advertisingData model for the beacon 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 ThingSmartBeaconManager(ThingDeprecatedAPI).

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

- (void) activeBeacon: (ThingBLEAdvModel *)  advModel
homeId: (long long)  homeId
success: (void(^)(ThingSmartDeviceModel *deviceModel))  success
failure: ("use `activateBeacon:homeId:success:failure:` instead")  __deprecated_msg 

Activates the beacon device.

Parameters
advModelThe advertisingData model for the beacon 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 ThingSmartBeaconManager(ThingDeprecatedAPI).

◆ addDeviceToGroupWithDevId:groupId:success:failure: [1/2]

- (void) addDeviceToGroupWithDevId: (NSString *)  devId
groupId: (NSString *)  groupId
success: (void(^)(NSData *data))  success
failure: (void(^)(NSError *error))  failure 

Adds a device to the group.

Parameters
devIdThe device ID.
groupIdThe group ID.
successCalled when the task is finished. The device group data is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(Group).

◆ addDeviceToGroupWithDevId:groupId:success:failure: [2/2]

- (void) addDeviceToGroupWithDevId: (NSString *)  devId
groupId: (NSString *)  groupId
success: (void(^)(NSData *data))  success
failure: (void(^)(NSError *error))  failure 

Adds a device to the group.

Parameters
devIdThe device ID.
groupIdThe group ID.
successCalled when the task is finished. The device group data is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(Group).

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

+ (void) addDeviceWithGroupId: (NSString *)  groupId
deviceId: (NSString *)  deviceId
success: (void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

Adds a device to the cloud.

Parameters
groupIdThe group ID.
deviceIdThe device ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(Group).

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

+ (void) addDeviceWithGroupId: (NSString *)  groupId
deviceId: (NSString *)  deviceId
success: (void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

Adds a device to the cloud.

Parameters
groupIdThe group ID.
deviceIdThe device ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(Group).

◆ batchPublishDps:retryCount: [1/2]

- (void) batchPublishDps: (NSArray< ThingBleBeaconSceneDpAction * > *)  dpActions
retryCount: (NSInteger)  retryCount 

Provided by category ThingSmartBeaconManager(BatchDp).

◆ batchPublishDps:retryCount: [2/2]

- (void) batchPublishDps: (NSArray< ThingBleBeaconSceneDpAction * > *)  dpActions
retryCount: (NSInteger)  retryCount 

Provided by category ThingSmartBeaconManager(BatchDp).

◆ checkAllBeaconDeviceOnlineState: [1/2]

- (void) checkAllBeaconDeviceOnlineState: (NSArray< ThingSmartDeviceModel * > *)  deviceModelList

Checks and sets the online status of all beacon devices.

Parameters
deviceModelListThe device model list.

◆ checkAllBeaconDeviceOnlineState: [2/2]

- (void) checkAllBeaconDeviceOnlineState: (NSArray< ThingSmartDeviceModel * > *)  deviceModelList

Checks and sets the online status of all beacon devices.

Parameters
deviceModelListThe device model list.

◆ checkDeviceOnlineStateWithDevice: [1/2]

- (void) checkDeviceOnlineStateWithDevice: (ThingSmartDeviceModel *)  deviceModel

Checks and sets the online status of a device.

Parameters
deviceModelThe device model.

◆ checkDeviceOnlineStateWithDevice: [2/2]

- (void) checkDeviceOnlineStateWithDevice: (ThingSmartDeviceModel *)  deviceModel

Checks and sets the online status of a device.

Parameters
deviceModelThe device model.

◆ connectBeaconWithDeviceId: [1/2]

- (void) connectBeaconWithDeviceId: (NSString *)  deviceId

Connects to the device and sets the online status of the device.

Parameters
deviceIdThe device ID.

◆ connectBeaconWithDeviceId: [2/2]

- (void) connectBeaconWithDeviceId: (NSString *)  deviceId

Connects to the device and sets the online status of the device.

Parameters
deviceIdThe device ID.

◆ createBeaconGroupWithGroupName:homeId:productId:pcc:success:failure: [1/2]

+ (void) createBeaconGroupWithGroupName: (NSString *)  groupName
homeId: (long long)  homeId
productId: (NSString *)  productId
pcc: (NSString *)  beaconCategory
success: (void(^)(NSString *result))  success
failure: (void(^)(NSError *error))  failure 

Creates a group in the cloud.

Parameters
groupNameThe group name.
homeIdCurrent home id
productIdThe product ID of the device.
beaconCategoryThe device category.
successCalled when the task is finished. The value of groupId is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(Group).

◆ createBeaconGroupWithGroupName:homeId:productId:pcc:success:failure: [2/2]

+ (void) createBeaconGroupWithGroupName: (NSString *)  groupName
homeId: (long long)  homeId
productId: (NSString *)  productId
pcc: (NSString *)  beaconCategory
success: (void(^)(NSString *result))  success
failure: (void(^)(NSError *error))  failure 

Creates a group in the cloud.

Parameters
groupNameThe group name.
homeIdCurrent home id
productIdThe product ID of the device.
beaconCategoryThe device category.
successCalled when the task is finished. The value of groupId is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(Group).

◆ createBeaconGroupWithGroupName:productId:pcc:success:failure: [1/2]

+ (void) createBeaconGroupWithGroupName: (NSString *)  groupName
productId: (NSString *)  productId
pcc: (NSString *)  beaconCategory
success: (void(^)(NSString *result))  success
failure: (void(^)(NSError *error))  failure 

Creates a group in the cloud.

Parameters
groupNameThe group name.
productIdThe product ID of the device.
beaconCategoryThe device category.
successCalled when the task is finished. The value of groupId is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(ThingDeprecatedAPI).

◆ createBeaconGroupWithGroupName:productId:pcc:success:failure: [2/2]

+ (void) createBeaconGroupWithGroupName: (NSString *)  groupName
productId: (NSString *)  productId
pcc: (NSString *)  beaconCategory
success: (void(^)(NSString *result))  success
failure: (void(^)(NSError *error))  failure 

Creates a group in the cloud.

Parameters
groupNameThe group name.
productIdThe product ID of the device.
beaconCategoryThe device category.
successCalled when the task is finished. The value of groupId is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(ThingDeprecatedAPI).

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

+ (void) createBeaconGroupWithGroupParams: (ThingSmartBeaconGroupParamsModel *)  paramsModel
success: (void(^)(NSString *result))  success
failure: (void(^)(NSError *error))  failure 

Creates a group in the cloud.

Parameters
paramsModelparams Model
successCalled when the task is finished. The value of groupId is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(Group).

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

+ (void) createBeaconGroupWithGroupParams: (ThingSmartBeaconGroupParamsModel *)  paramsModel
success: (void(^)(NSString *result))  success
failure: (void(^)(NSError *error))  failure 

Creates a group in the cloud.

Parameters
paramsModelparams Model
successCalled when the task is finished. The value of groupId is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(Group).

◆ deleteDeviceFromGroupWithDevId:groupId:success:failure: [1/2]

- (void) deleteDeviceFromGroupWithDevId: (NSString *)  devId
groupId: (NSString *)  groupId
success: (void(^)(NSData *data))  success
failure: (void(^)(NSError *error))  failure 

Deletes a device from the group.

Parameters
devIdThe device ID.
groupIdThe group ID.
successCalled when the task is finished. The device group data is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(Group).

◆ deleteDeviceFromGroupWithDevId:groupId:success:failure: [2/2]

- (void) deleteDeviceFromGroupWithDevId: (NSString *)  devId
groupId: (NSString *)  groupId
success: (void(^)(NSData *data))  success
failure: (void(^)(NSError *error))  failure 

Deletes a device from the group.

Parameters
devIdThe device ID.
groupIdThe group ID.
successCalled when the task is finished. The device group data is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(Group).

◆ deviceStatueWithUUID: [1/2]

- (BOOL) deviceStatueWithUUID: (NSString *)  uuid

The online status of the beacon device.

Parameters
uuidThe UUID of the beacon device.

◆ deviceStatueWithUUID: [2/2]

- (BOOL) deviceStatueWithUUID: (NSString *)  uuid

The online status of the beacon device.

Parameters
uuidThe UUID of the beacon device.

◆ disableBLECapability: [1/2]

+ (void) disableBLECapability: (BOOL)  disable

Whether to disable bluetooth capability. Default NO.

◆ disableBLECapability: [2/2]

+ (void) disableBLECapability: (BOOL)  disable

Whether to disable bluetooth capability. Default NO.

◆ gatewayOnlineOfDevice: [1/2]

- (BOOL) gatewayOnlineOfDevice: (ThingSmartDeviceModel *)  deviceModel

Checks gateway online status of the beacon device

Parameters
deviceModelThe device model.

◆ gatewayOnlineOfDevice: [2/2]

- (BOOL) gatewayOnlineOfDevice: (ThingSmartDeviceModel *)  deviceModel

Checks gateway online status of the beacon device

Parameters
deviceModelThe device model.

◆ publishChannelRequestWithAction:deviceId:requestModel: [1/2]

- (void) publishChannelRequestWithAction: (ThingBeaconRequestAction)  requestAction
deviceId: (NSString *)  deviceId
requestModel: (ThingSmartBeaconRequestModel *)  requestModel 

publish beacon command data

Parameters
requestActionpublish request action
deviceIddevice id
requestModelpublish data model

◆ publishChannelRequestWithAction:deviceId:requestModel: [2/2]

- (void) publishChannelRequestWithAction: (ThingBeaconRequestAction)  requestAction
deviceId: (NSString *)  deviceId
requestModel: (ThingSmartBeaconRequestModel *)  requestModel 

publish beacon command data

Parameters
requestActionpublish request action
deviceIddevice id
requestModelpublish data model

◆ publishDpsWithDevicId:dps:success:failure: [1/2]

- (void) publishDpsWithDevicId: (NSString *)  deviceId
dps: (nonnull NSDictionary *)  dps
success: (void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

Publishes the transmitted data.

Parameters
deviceIdThe device ID for the device.
dpsThe DP dictionary.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ publishDpsWithDevicId:dps:success:failure: [2/2]

- (void) publishDpsWithDevicId: (NSString *)  deviceId
dps: (nonnull NSDictionary *)  dps
success: (void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

Publishes the transmitted data.

Parameters
deviceIdThe device ID for the device.
dpsThe DP dictionary.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ publishGroupDps:firstDevId:groupId:success:failure: [1/2]

- (void) publishGroupDps: (NSDictionary *)  dps
firstDevId: (NSString *)  devId
groupId: (NSString *)  groupId
success: (nullable void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

Sends a DP to the group.

Parameters
dpsThe DP command.
devIdThe device ID.
groupIdThe group ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(Group).

◆ publishGroupDps:firstDevId:groupId:success:failure: [2/2]

- (void) publishGroupDps: (NSDictionary *)  dps
firstDevId: (NSString *)  devId
groupId: (NSString *)  groupId
success: (nullable void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

Sends a DP to the group.

Parameters
dpsThe DP command.
devIdThe device ID.
groupIdThe group ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(Group).

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

- (void) queryGroupsWithDevId: (NSString *)  devId
success: (void(^)(NSData *data))  success
failure: (void(^)(NSError *error))  failure 

Queries device groups.

Parameters
devIdThe device ID.
successCalled when the task is finished. The device group data is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(Group).

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

- (void) queryGroupsWithDevId: (NSString *)  devId
success: (void(^)(NSData *data))  success
failure: (void(^)(NSError *error))  failure 

Queries device groups.

Parameters
devIdThe device ID.
successCalled when the task is finished. The device group data is returned.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(Group).

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

+ (void) removeBeaconGroupGroupId: (NSString *)  groupId
success: (nullable void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

Removes the device from the cloud.

Parameters
groupIdThe group ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(Group).

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

+ (void) removeBeaconGroupGroupId: (NSString *)  groupId
success: (nullable void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

Removes the device from the cloud.

Parameters
groupIdThe group ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(Group).

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

- (void) removeDeviceGroupWithGroupId: (NSString *)  groupId
success: (nullable void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

Removes the group with a specific address.

Parameters
groupIdThe group ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(Group).

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

- (void) removeDeviceGroupWithGroupId: (NSString *)  groupId
success: (nullable void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

Removes the group with a specific address.

Parameters
groupIdThe group ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(Group).

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

- (void) removeDeviceWithGroupId: (NSString *)  groupId
deviceId: (NSString *)  deviceId
success: (void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

The specified device is deleted from the group.

Parameters
groupIdThe group ID.
deviceIdThe device ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(Group).

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

- (void) removeDeviceWithGroupId: (NSString *)  groupId
deviceId: (NSString *)  deviceId
success: (void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

The specified device is deleted from the group.

Parameters
groupIdThe group ID.
deviceIdThe device ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartBeaconManager(Group).

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

- (void) resetWithDevId: (NSString *)  devId
success: (void(^)(void))  success
failure: (void(^)(void))  failure 

Resets the device and enables the pairing status for the device.

Parameters
devIdThe device ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

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

- (void) resetWithDevId: (NSString *)  devId
success: (void(^)(void))  success
failure: (void(^)(void))  failure 

Resets the device and enables the pairing status for the device.

Parameters
devIdThe device ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ scanForSharedBeaconsWithDeviceIds: [1/2]

- (void) scanForSharedBeaconsWithDeviceIds: (nullable NSArray< NSString * > *)  deviceIds

Provided by category ThingSmartBeaconManager(RNScan).

◆ scanForSharedBeaconsWithDeviceIds: [2/2]

- (void) scanForSharedBeaconsWithDeviceIds: (nullable NSArray< NSString * > *)  deviceIds

Provided by category ThingSmartBeaconManager(RNScan).

◆ scanForSharedBeaconWithDeviceId: [1/2]

- (void) scanForSharedBeaconWithDeviceId: (nullable NSString *)  deviceId

Provided by category ThingSmartBeaconManager(RNScan).

◆ scanForSharedBeaconWithDeviceId: [2/2]

- (void) scanForSharedBeaconWithDeviceId: (nullable NSString *)  deviceId

Provided by category ThingSmartBeaconManager(RNScan).

◆ sharedInstance [1/2]

+ (instancetype) sharedInstance

The single instance.

◆ sharedInstance [2/2]

+ (instancetype) sharedInstance

The single instance.

◆ startScan [1/2]

- (void) startScan

Provided by category ThingSmartBeaconManager(Scan).

◆ startScan [2/2]

- (void) startScan

Provided by category ThingSmartBeaconManager(Scan).

◆ stopActivatingAllBeacons [1/2]

- (void) stopActivatingAllBeacons

Stop activating all cached beacon devices.

◆ stopActivatingAllBeacons [2/2]

- (void) stopActivatingAllBeacons

Stop activating all cached beacon devices.

◆ stopActivatingBeacons: [1/2]

- (void) stopActivatingBeacons: (NSArray< ThingBLEAdvModel * > *)  beacons

The end of the pairing process.

◆ stopActivatingBeacons: [2/2]

- (void) stopActivatingBeacons: (NSArray< ThingBLEAdvModel * > *)  beacons

The end of the pairing process.

◆ stopScan [1/2]

- (void) stopScan

Provided by category ThingSmartBeaconManager(Scan).

◆ stopScan [2/2]

- (void) stopScan

Provided by category ThingSmartBeaconManager(Scan).

◆ stopScanShareBeaconWithDeviceId: [1/2]

- (void) stopScanShareBeaconWithDeviceId: (nullable NSString *)  deviceId

Stop scanning the beacon shared device with the specified device id

Parameters
deviceIddeviceId

Provided by category ThingSmartBeaconManager(RNScan).

◆ stopScanShareBeaconWithDeviceId: [2/2]

- (void) stopScanShareBeaconWithDeviceId: (nullable NSString *)  deviceId

Stop scanning the beacon shared device with the specified device id

Parameters
deviceIddeviceId

Provided by category ThingSmartBeaconManager(RNScan).

◆ stopScanSharedBeaconsWithDeviceIds: [1/2]

- (void) stopScanSharedBeaconsWithDeviceIds: (nullable NSArray< NSString * > *)  deviceIds

Stop scanning for beacon shared devices containing a set of device IDs

Parameters
deviceIds@[deviceId,deviceId]

Provided by category ThingSmartBeaconManager(RNScan).

◆ stopScanSharedBeaconsWithDeviceIds: [2/2]

- (void) stopScanSharedBeaconsWithDeviceIds: (nullable NSArray< NSString * > *)  deviceIds

Stop scanning for beacon shared devices containing a set of device IDs

Parameters
deviceIds@[deviceId,deviceId]

Provided by category ThingSmartBeaconManager(RNScan).

◆ stopShareBeaconScan [1/2]

- (void) stopShareBeaconScan

Stop scanning beacon shared devices.

Provided by category ThingSmartBeaconManager(RNScan).

◆ stopShareBeaconScan [2/2]

- (void) stopShareBeaconScan

Stop scanning beacon shared devices.

Provided by category ThingSmartBeaconManager(RNScan).

◆ updateBeaconMesh: [1/2]

- (void) updateBeaconMesh: (ThingSmartBleMeshModel *)  meshModel

update beacon mesh model

Parameters
meshModelmesh model params

◆ updateBeaconMesh: [2/2]

- (void) updateBeaconMesh: (ThingSmartBleMeshModel *)  meshModel

update beacon mesh model

Parameters
meshModelmesh model params

Property Documentation

◆ delegate

- (id< ThingSmartBeaconManagerDelegate, ThingSmartBLEManagerDelegate >) delegate
readwritenonatomicweak

Definition at line 59 of file ThingSmartBeaconManager.h.

◆ isPoweredOn

- (BOOL) isPoweredOn
readnonatomicassign

Definition at line 58 of file ThingSmartBeaconManager.h.


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