1、@interface 当前类 ()<ThingSmartBeaconManagerDelegate>2、[ThingSmartBeaconManager sharedInstance].delegate = self;3、[[ThingSmartBeaconManager sharedInstance] startScan]; // 开始搜索 Beacons 设备4、// ThingSmartBeaconManagerDelegate 获取扫描到的设备- (void)didDiscoveryDeviceWithDeviceInfo:(ThingBLEAdvModel *)deviceInfo {}5、// 激活 Beacons 设备[[ThingSmartBeaconManager sharedInstance] activateBeacon:beaconModel homeId:homeId success:^(ThingSmartDeviceModel * _Nonnull deviceModel) { } failure:^(NSError * _Nonnull error) { }];6、[[ThingSmartBeaconManager sharedInstance] stopActivatingAllBeacons]; // 停止激活所有的 Beacons 设备7、[[ThingSmartBeaconManager sharedInstance] stopScan]; // 停止扫描 Beacons 设备
该内容对您有帮助吗?
是意见反馈点击获取服务和帮助
智能客服
400-881-8611
提交工单