That's interesting - were you using an 'active' scan?
I know I've had a lot of problems with active scans in areas with a lot of bluetooth activity (even when using a PC) - the scan response never gets received.
I should add that once you've actually done a requestDevice to get a device, you can re-use that device and just call connect on it - so the second time you click the button you should be able to get things working a lot faster.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
That's interesting - were you using an 'active' scan?
I know I've had a lot of problems with active scans in areas with a lot of bluetooth activity (even when using a PC) - the scan response never gets received.
I should add that once you've actually done a
requestDevice
to get a device, you can re-use that device and just callconnect
on it - so the second time you click the button you should be able to get things working a lot faster.