{"action":"created","issue":{"url":"https://api.github.com/repos/Raizlabs/RZBluetooth/issues/29","repository_url":"https://api.github.com/repos/Raizlabs/RZBluetooth","labels_url":"https://api.github.com/repos/Raizlabs/RZBluetooth/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/Raizlabs/RZBluetooth/issues/29/comments","events_url":"https://api.github.com/repos/Raizlabs/RZBluetooth/issues/29/events","html_url":"https://github.com/Raizlabs/RZBluetooth/issues/29","id":154437328,"number":29,"title":"Simulating a scan and a connection","user":{"login":"drdaz","id":845731,"avatar_url":"https://avatars.githubusercontent.com/u/845731?v=3","gravatar_id":"","url":"https://api.github.com/users/drdaz","html_url":"https://github.com/drdaz","followers_url":"https://api.github.com/users/drdaz/followers","following_url":"https://api.github.com/users/drdaz/following{/other_user}","gists_url":"https://api.github.com/users/drdaz/gists{/gist_id}","starred_url":"https://api.github.com/users/drdaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drdaz/subscriptions","organizations_url":"https://api.github.com/users/drdaz/orgs","repos_url":"https://api.github.com/users/drdaz/repos","events_url":"https://api.github.com/users/drdaz/events{/privacy}","received_events_url":"https://api.github.com/users/drdaz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-12T09:30:17Z","updated_at":"2016-05-13T17:54:57Z","closed_at":null,"body":"Hi there\r\n\r\nOne thing that isn't obvious to me from the documentation is how to simulate a scan followed by a connection.\r\n\r\nI'm using a RZBSimulatedTestCase subclass. I'm calling my service layer, which initiates a scan. I have added services to my simulated device and called startAdvertising before the scan starts. But the scan never finds a device.\r\n\r\nWhat steps am I missing?"},"comment":{"url":"https://api.github.com/repos/Raizlabs/RZBluetooth/issues/comments/219114492","html_url":"https://github.com/Raizlabs/RZBluetooth/issues/29#issuecomment-219114492","issue_url":"https://api.github.com/repos/Raizlabs/RZBluetooth/issues/29","id":219114492,"user":{"login":"KingOfBrian","id":114322,"avatar_url":"https://avatars.githubusercontent.com/u/114322?v=3","gravatar_id":"","url":"https://api.github.com/users/KingOfBrian","html_url":"https://github.com/KingOfBrian","followers_url":"https://api.github.com/users/KingOfBrian/followers","following_url":"https://api.github.com/users/KingOfBrian/following{/other_user}","gists_url":"https://api.github.com/users/KingOfBrian/gists{/gist_id}","starred_url":"https://api.github.com/users/KingOfBrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KingOfBrian/subscriptions","organizations_url":"https://api.github.com/users/KingOfBrian/orgs","repos_url":"https://api.github.com/users/KingOfBrian/repos","events_url":"https://api.github.com/users/KingOfBrian/events{/privacy}","received_events_url":"https://api.github.com/users/KingOfBrian/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T17:54:57Z","updated_at":"2016-05-13T17:54:57Z","body":"Hey @drdaz -- I'm not sure. It sounds like you're doing the right thing -- similar to `testScanForDevices`. From looking at the test, we call startAdvertising after the scan starts, but I just moved it and it works on either side. The best way to debug issues is to use `RZBSetLogHandler` and print out everything that comes it's way. If you paste the log from that here I can probably give you a bit more information."}}