Skip to content

Instantly share code, notes, and snippets.

@SunXiaoShan
Created July 27, 2018 07:57
Show Gist options
  • Save SunXiaoShan/3b5c549200c3049caf3bb18eb70af53d to your computer and use it in GitHub Desktop.
Save SunXiaoShan/3b5c549200c3049caf3bb18eb70af53d to your computer and use it in GitHub Desktop.
Peripheral
_serialQueue = dispatch_queue_create(BLE_MANAGER_DISPATCH_QUEUE, DISPATCH_QUEUE_SERIAL);
NSDictionary *options = [@{CBPeripheralManagerOptionShowPowerAlertKey:@YES} mutableCopy];
_peripheralManager = [[CBPeripheralManager alloc] initWithDelegate:self queue:_serialQueue options:options];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment