{"action":"created","issue":{"url":"https://api.github.com/repos/troystribling/BlueCap/issues/54","repository_url":"https://api.github.com/repos/troystribling/BlueCap","labels_url":"https://api.github.com/repos/troystribling/BlueCap/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/troystribling/BlueCap/issues/54/comments","events_url":"https://api.github.com/repos/troystribling/BlueCap/issues/54/events","html_url":"https://github.com/troystribling/BlueCap/issues/54","id":202451372,"number":54,"title":"Connection callbacks not called if scanning is not stopped","user":{"login":"arrix","id":394509,"avatar_url":"https://avatars.githubusercontent.com/u/394509?v=3","gravatar_id":"","url":"https://api.github.com/users/arrix","html_url":"https://github.com/arrix","followers_url":"https://api.github.com/users/arrix/followers","following_url":"https://api.github.com/users/arrix/following{/other_user}","gists_url":"https://api.github.com/users/arrix/gists{/gist_id}","starred_url":"https://api.github.com/users/arrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arrix/subscriptions","organizations_url":"https://api.github.com/users/arrix/orgs","repos_url":"https://api.github.com/users/arrix/repos","events_url":"https://api.github.com/users/arrix/events{/privacy}","received_events_url":"https://api.github.com/users/arrix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-23T05:53:18Z","updated_at":"2017-01-24T00:24:01Z","closed_at":null,"body":"Unlike in the examples where stopScanning() is called before connect(), I'd like to keep scanning for other devices after making a connection.\r\n\r\nIn didConnectPeripheral(), connectionPromise? was nil because the Peripheral in _discoveredPeripherals[] was overwritten in didDiscoverPeripheral() which always creates a new Peripheral instance.\r\n\r\nIs it possible to keep objects in _discoveredPeripherals[] stable? Update the properties instead of replacing the object.\r\n\r\nThis will allow holding references to the Peripheral object.\r\n\r\nI'm happy to discuss more or even coding."},"comment":{"url":"https://api.github.com/repos/troystribling/BlueCap/issues/comments/274662354","html_url":"https://github.com/troystribling/BlueCap/issues/54#issuecomment-274662354","issue_url":"https://api.github.com/repos/troystribling/BlueCap/issues/54","id":274662354,"user":{"login":"arrix","id":394509,"avatar_url":"https://avatars.githubusercontent.com/u/394509?v=3","gravatar_id":"","url":"https://api.github.com/users/arrix","html_url":"https://github.com/arrix","followers_url":"https://api.github.com/users/arrix/followers","following_url":"https://api.github.com/users/arrix/following{/other_user}","gists_url":"https://api.github.com/users/arrix/gists{/gist_id}","starred_url":"https://api.github.com/users/arrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arrix/subscriptions","organizations_url":"https://api.github.com/users/arrix/orgs","repos_url":"https://api.github.com/users/arrix/repos","events_url":"https://api.github.com/users/arrix/events{/privacy}","received_events_url":"https://api.github.com/users/arrix/received_events","type":"User","site_admin":false},"created_at":"2017-01-24T00:24:01Z","updated_at":"2017-01-24T00:24:01Z","body":"Thanks for replying!\r\n\r\nYes I was using CBCentralManagerScanOptionAllowDuplicatesKey=true.\r\nHaving two CentralManagers is one solution.\r\n\r\nCan we update RSSI (and perhaps other information) on the existing Peripheral object? iOS itself gives the same CBPeripheral instance every time in `centralManager(_:didDiscover:advertisementData:rssi:)`. It could make things easier if we keep the instance stable too. "}}
{"actor":{"display_login":"arrix"}}