1、@interface Current class ()<ThingSmartBeaconManagerDelegate>2、[ThingSmartBeaconManager sharedInstance].delegate = self;3、[[ThingSmartBeaconManager sharedInstance] startScan]; // Start searching for Beacons devices4、// ThingSmartBeaconManagerDelegate Acquiring devices found by scanning- (void)didDiscoveryDeviceWithDeviceInfo:(ThingBLEAdvModel *)deviceInfo {}5、// Activate the Beacons device[[ThingSmartBeaconManager sharedInstance] activateBeacon:beaconModel homeId:homeId success:^(ThingSmartDeviceModel * _Nonnull deviceModel) { } failure:^(NSError * _Nonnull error) { }];6、[[ThingSmartBeaconManager sharedInstance] stopActivatingAllBeacons]; // Stop activating all Beacons devices7、[[ThingSmartBeaconManager sharedInstance] stopScan]; // Stop scanning Beacons devices
Is this page helpful?
YesFeedbackClick for services and help
Consult
(001)844-672-5646
Submit Question