{"action":"opened","issue":{"url":"https://api.github.com/repos/coolnameismy/BabyBluetooth/issues/68","repository_url":"https://api.github.com/repos/coolnameismy/BabyBluetooth","labels_url":"https://api.github.com/repos/coolnameismy/BabyBluetooth/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/coolnameismy/BabyBluetooth/issues/68/comments","events_url":"https://api.github.com/repos/coolnameismy/BabyBluetooth/issues/68/events","html_url":"https://github.com/coolnameismy/BabyBluetooth/issues/68","id":174208876,"number":68,"title":"本机已连接的蓝牙设备又被重新扫描到","user":{"login":"archerLj","id":12481498,"avatar_url":"https://avatars.githubusercontent.com/u/12481498?v=3","gravatar_id":"","url":"https://api.github.com/users/archerLj","html_url":"https://github.com/archerLj","followers_url":"https://api.github.com/users/archerLj/followers","following_url":"https://api.github.com/users/archerLj/following{/other_user}","gists_url":"https://api.github.com/users/archerLj/gists{/gist_id}","starred_url":"https://api.github.com/users/archerLj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archerLj/subscriptions","organizations_url":"https://api.github.com/users/archerLj/orgs","repos_url":"https://api.github.com/users/archerLj/repos","events_url":"https://api.github.com/users/archerLj/events{/privacy}","received_events_url":"https://api.github.com/users/archerLj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-31T08:01:22Z","updated_at":"2016-08-31T08:01:22Z","closed_at":null,"body":"大神，碰到一个问题，望相助：\r\n是这样的，我用LightBlue先连接上我的蓝牙设备A，然后打开我自己的app之后还能扫描到A，并且这时候的A的state变成CBPeripheralStateDisconnected了，直接导致LightBlue断开了与A的连接。但是，我用BabyBluetooth的demo却没有这样的问题（不会扫描出本机其他app已经连接的蓝牙设备）。\r\n\r\n我的部分代码是这样的：\r\nself.manager = [[CBCentralManager alloc] initWithDelegate:self queue:nil];\r\n[self.manager scanForPeripheralsWithServices:nil options:nil];\r\n-(void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI {\r\n    if (![self.nDevices containsObject:peripheral]) {\r\n        [self.nDevices addObject:peripheral];\r\n        [self.manager connectPeripheral:peripheral options:nil];\r\n    }\r\n}\r\n\r\n看了BabyBluetooth的源码，也没发现有什么设置来避免扫描到其他app或自己的app已连接的蓝牙设备。请问大神有没有碰到这种问题，该怎么解决？"}}
{"actor":{"display_login":"archerLj"}}