#import <ThingSmartBeaconManager.h>
Definition at line 56 of file ThingSmartBeaconManager.h.
◆ __deprecated_msg [1/2]
◆ __deprecated_msg [2/2]
◆ 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
-
advModel | The advertisingData model for the beacon device. |
homeId | The ID for the current home. |
success | Called when the task is finished. DeviceModel is returned. |
failure | Called 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
-
advModel | The advertisingData model for the beacon device. |
homeId | The ID for the current home. |
success | Called when the task is finished. DeviceModel is returned. |
failure | Called when the task is interrupted by an error. |
◆ activateBeaconListWithParams:activatedDeviceSuccess:activatedDeviceFailure:activatedFinish: [1/2]
Activates the beacon device list
- Parameters
-
paramsModel | params model |
deviceSuccess | individual device activated success block |
deviceFailure | individual devicev activated failure block |
activatedFinish | all devices activated finish . when there is an error, All devices are abnormal . |
◆ activateBeaconListWithParams:activatedDeviceSuccess:activatedDeviceFailure:activatedFinish: [2/2]
Activates the beacon device list
- Parameters
-
paramsModel | params model |
deviceSuccess | individual device activated success block |
deviceFailure | individual devicev activated failure block |
activatedFinish | all devices activated finish . when there is an error, All devices are abnormal . |
◆ activeBeacon:homeId:success:failure: [1/2]
Activates the beacon device.
- Parameters
-
advModel | The advertisingData model for the beacon device. |
homeId | The ID for the current home. |
success | Called when the task is finished. DeviceModel is returned. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartBeaconManager(ThingDeprecatedAPI).
◆ activeBeacon:homeId:success:failure: [2/2]
Activates the beacon device.
- Parameters
-
advModel | The advertisingData model for the beacon device. |
homeId | The ID for the current home. |
success | Called when the task is finished. DeviceModel is returned. |
failure | Called 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
-
devId | The device ID. |
groupId | The group ID. |
success | Called when the task is finished. The device group data is returned. |
failure | Called 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
-
devId | The device ID. |
groupId | The group ID. |
success | Called when the task is finished. The device group data is returned. |
failure | Called 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
-
groupId | The group ID. |
deviceId | The device ID. |
success | Called when the task is finished. |
failure | Called 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
-
groupId | The group ID. |
deviceId | The device ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartBeaconManager(Group).
◆ batchPublishDps:retryCount: [1/2]
◆ batchPublishDps:retryCount: [2/2]
◆ checkAllBeaconDeviceOnlineState: [1/2]
Checks and sets the online status of all beacon devices.
- Parameters
-
deviceModelList | The device model list. |
◆ checkAllBeaconDeviceOnlineState: [2/2]
Checks and sets the online status of all beacon devices.
- Parameters
-
deviceModelList | The device model list. |
◆ checkDeviceOnlineStateWithDevice: [1/2]
Checks and sets the online status of a device.
- Parameters
-
deviceModel | The device model. |
◆ checkDeviceOnlineStateWithDevice: [2/2]
Checks and sets the online status of a device.
- Parameters
-
deviceModel | The device model. |
◆ connectBeaconWithDeviceId: [1/2]
- (void) connectBeaconWithDeviceId: |
|
(NSString *) |
deviceId |
|
Connects to the device and sets the online status of the device.
- Parameters
-
◆ connectBeaconWithDeviceId: [2/2]
- (void) connectBeaconWithDeviceId: |
|
(NSString *) |
deviceId |
|
Connects to the device and sets the online status of the device.
- Parameters
-
◆ 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
-
groupName | The group name. |
homeId | Current home id |
productId | The product ID of the device. |
beaconCategory | The device category. |
success | Called when the task is finished. The value of groupId is returned. |
failure | Called 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
-
groupName | The group name. |
homeId | Current home id |
productId | The product ID of the device. |
beaconCategory | The device category. |
success | Called when the task is finished. The value of groupId is returned. |
failure | Called 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
-
groupName | The group name. |
productId | The product ID of the device. |
beaconCategory | The device category. |
success | Called when the task is finished. The value of groupId is returned. |
failure | Called 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
-
groupName | The group name. |
productId | The product ID of the device. |
beaconCategory | The device category. |
success | Called when the task is finished. The value of groupId is returned. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartBeaconManager(ThingDeprecatedAPI).
◆ createBeaconGroupWithGroupParams:success:failure: [1/2]
Creates a group in the cloud.
- Parameters
-
paramsModel | params Model |
success | Called when the task is finished. The value of groupId is returned. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartBeaconManager(Group).
◆ createBeaconGroupWithGroupParams:success:failure: [2/2]
Creates a group in the cloud.
- Parameters
-
paramsModel | params Model |
success | Called when the task is finished. The value of groupId is returned. |
failure | Called 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
-
devId | The device ID. |
groupId | The group ID. |
success | Called when the task is finished. The device group data is returned. |
failure | Called 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
-
devId | The device ID. |
groupId | The group ID. |
success | Called when the task is finished. The device group data is returned. |
failure | Called 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
-
uuid | The UUID of the beacon device. |
◆ deviceStatueWithUUID: [2/2]
- (BOOL) deviceStatueWithUUID: |
|
(NSString *) |
uuid |
|
The online status of the beacon device.
- Parameters
-
uuid | The 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]
Checks gateway online status of the beacon device
- Parameters
-
deviceModel | The device model. |
◆ gatewayOnlineOfDevice: [2/2]
Checks gateway online status of the beacon device
- Parameters
-
deviceModel | The device model. |
◆ publishChannelRequestWithAction:deviceId:requestModel: [1/2]
- (void) publishChannelRequestWithAction: |
|
(ThingBeaconRequestAction) |
requestAction |
deviceId: |
|
(NSString *) |
deviceId |
requestModel: |
|
(ThingSmartBeaconRequestModel *) |
requestModel |
|
|
| |
publish beacon command data
- Parameters
-
requestAction | publish request action |
deviceId | device id |
requestModel | publish data model |
◆ publishChannelRequestWithAction:deviceId:requestModel: [2/2]
- (void) publishChannelRequestWithAction: |
|
(ThingBeaconRequestAction) |
requestAction |
deviceId: |
|
(NSString *) |
deviceId |
requestModel: |
|
(ThingSmartBeaconRequestModel *) |
requestModel |
|
|
| |
publish beacon command data
- Parameters
-
requestAction | publish request action |
deviceId | device id |
requestModel | publish 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
-
deviceId | The device ID for the device. |
dps | The DP dictionary. |
success | Called when the task is finished. |
failure | Called 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
-
deviceId | The device ID for the device. |
dps | The DP dictionary. |
success | Called when the task is finished. |
failure | Called 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
-
dps | The DP command. |
devId | The device ID. |
groupId | The group ID. |
success | Called when the task is finished. |
failure | Called 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
-
dps | The DP command. |
devId | The device ID. |
groupId | The group ID. |
success | Called when the task is finished. |
failure | Called 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
-
devId | The device ID. |
success | Called when the task is finished. The device group data is returned. |
failure | Called 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
-
devId | The device ID. |
success | Called when the task is finished. The device group data is returned. |
failure | Called 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
-
groupId | The group ID. |
success | Called when the task is finished. |
failure | Called 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
-
groupId | The group ID. |
success | Called when the task is finished. |
failure | Called 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
-
groupId | The group ID. |
success | Called when the task is finished. |
failure | Called 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
-
groupId | The group ID. |
success | Called when the task is finished. |
failure | Called 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
-
groupId | The group ID. |
deviceId | The device ID. |
success | Called when the task is finished. |
failure | Called 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
-
groupId | The group ID. |
deviceId | The device ID. |
success | Called when the task is finished. |
failure | Called 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
-
devId | The device ID. |
success | Called when the task is finished. |
failure | Called 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
-
devId | The device ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
◆ scanForSharedBeaconsWithDeviceIds: [1/2]
- (void) scanForSharedBeaconsWithDeviceIds: |
|
(nullable NSArray< NSString * > *) |
deviceIds |
|
◆ scanForSharedBeaconsWithDeviceIds: [2/2]
- (void) scanForSharedBeaconsWithDeviceIds: |
|
(nullable NSArray< NSString * > *) |
deviceIds |
|
◆ scanForSharedBeaconWithDeviceId: [1/2]
- (void) scanForSharedBeaconWithDeviceId: |
|
(nullable NSString *) |
deviceId |
|
◆ scanForSharedBeaconWithDeviceId: [2/2]
- (void) scanForSharedBeaconWithDeviceId: |
|
(nullable NSString *) |
deviceId |
|
◆ sharedInstance [1/2]
+ (instancetype) sharedInstance |
|
|
|
◆ sharedInstance [2/2]
+ (instancetype) sharedInstance |
|
|
|
◆ startScan [1/2]
◆ startScan [2/2]
◆ 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]
The end of the pairing process.
◆ stopActivatingBeacons: [2/2]
The end of the pairing process.
◆ stopScan [1/2]
◆ stopScan [2/2]
◆ stopScanShareBeaconWithDeviceId: [1/2]
- (void) stopScanShareBeaconWithDeviceId: |
|
(nullable NSString *) |
deviceId |
|
◆ stopScanShareBeaconWithDeviceId: [2/2]
- (void) stopScanShareBeaconWithDeviceId: |
|
(nullable NSString *) |
deviceId |
|
◆ 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 |
|
|
|
◆ stopShareBeaconScan [2/2]
- (void) stopShareBeaconScan |
|
|
|
◆ updateBeaconMesh: [1/2]
update beacon mesh model
- Parameters
-
meshModel | mesh model params |
◆ updateBeaconMesh: [2/2]
update beacon mesh model
- Parameters
-
meshModel | mesh model params |
◆ delegate
◆ isPoweredOn
The documentation for this class was generated from the following files:
- /Users/humtong/Downloads/Pods_副本/ThingSmartBeaconKit/Build/ThingSmartBeaconKit.xcframework/ios-arm64_x86_64-simulator/ThingSmartBeaconKit.framework/Headers/ThingSmartBeaconManager.h
- /Users/humtong/Downloads/Pods_副本/ThingSmartBeaconKit/Build/ThingSmartBeaconKit.xcframework/ios-arm64/ThingSmartBeaconKit.framework/Headers/ThingSmartBeaconManager.h