Post

Replies

Boosts

Views

Activity

Reply to Can not scan Bluetooth low energy device on Mac 12 beta
I found the root cause. on Mac 12, I need to change the function scan bluetooth device NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], CBCentralManagerScanOptionAllowDuplicatesKey, nil]; [self.CM scanForPeripheralsWithServices:nil options:options]; before I only use function [self.CM scanForPeripheralsWithServices:nil options:nil]; So, I'm not sure this is new feature or bug on Mac 12. Because set CBCentralManagerScanOptionAllowDuplicatesKey will affect to battery of device.
Sep ’21