{"action":"created","issue":{"url":"https://api.github.com/repos/l0gg3r/LGBluetooth/issues/6","labels_url":"https://api.github.com/repos/l0gg3r/LGBluetooth/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/l0gg3r/LGBluetooth/issues/6/comments","events_url":"https://api.github.com/repos/l0gg3r/LGBluetooth/issues/6/events","html_url":"https://github.com/l0gg3r/LGBluetooth/issues/6","id":117069877,"number":6,"title":"Sequential 'connects' fail","user":{"login":"sureshjoshi","id":3823045,"avatar_url":"https://avatars.githubusercontent.com/u/3823045?v=3","gravatar_id":"","url":"https://api.github.com/users/sureshjoshi","html_url":"https://github.com/sureshjoshi","followers_url":"https://api.github.com/users/sureshjoshi/followers","following_url":"https://api.github.com/users/sureshjoshi/following{/other_user}","gists_url":"https://api.github.com/users/sureshjoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/sureshjoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sureshjoshi/subscriptions","organizations_url":"https://api.github.com/users/sureshjoshi/orgs","repos_url":"https://api.github.com/users/sureshjoshi/repos","events_url":"https://api.github.com/users/sureshjoshi/events{/privacy}","received_events_url":"https://api.github.com/users/sureshjoshi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-16T07:45:30Z","updated_at":"2015-11-16T15:27:27Z","closed_at":null,"body":"I'm using a workflow where I end up in a view controller with a 'connect' and 'disconnect' button.\r\n\r\nI can always connect/disconnect on the first attempt, however, subsequent attempts never connect. I need to go back to my listview, in order to re-scan for peripherals - and then try to connect again later when the peripheral has been re-discovered.\r\n\r\nWhat could be going on?\r\n\r\nThanks!\r\n-SJ"},"comment":{"url":"https://api.github.com/repos/l0gg3r/LGBluetooth/issues/comments/157066866","html_url":"https://github.com/l0gg3r/LGBluetooth/issues/6#issuecomment-157066866","issue_url":"https://api.github.com/repos/l0gg3r/LGBluetooth/issues/6","id":157066866,"user":{"login":"sureshjoshi","id":3823045,"avatar_url":"https://avatars.githubusercontent.com/u/3823045?v=3","gravatar_id":"","url":"https://api.github.com/users/sureshjoshi","html_url":"https://github.com/sureshjoshi","followers_url":"https://api.github.com/users/sureshjoshi/followers","following_url":"https://api.github.com/users/sureshjoshi/following{/other_user}","gists_url":"https://api.github.com/users/sureshjoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/sureshjoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sureshjoshi/subscriptions","organizations_url":"https://api.github.com/users/sureshjoshi/orgs","repos_url":"https://api.github.com/users/sureshjoshi/repos","events_url":"https://api.github.com/users/sureshjoshi/events{/privacy}","received_events_url":"https://api.github.com/users/sureshjoshi/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T15:27:27Z","updated_at":"2015-11-16T15:27:27Z","body":"Also: Just tried this and it worked - but not entirely sure of the long-term consequences (in LGCentralManager.m line 243)\r\n\r\n    - (void)centralManager:(CBCentralManager *)central didDisconnectPeripheral:(CBPeripheral *)peripheral\r\n                 error:(NSError *)error\r\n    {\r\n        dispatch_async(dispatch_get_main_queue(), ^{\r\n            LGPeripheral *lgPeripheral = [self wrapperByPeripheral:peripheral];\r\n            [lgPeripheral handleDisconnectWithError:error];\r\n            //        [self.scannedPeripherals removeObject:lgPeripheral];\r\n        });\r\n    }"}}