Another suggestion for someone else who is reading this question who is having connection problems. Raised from another answer:
This may seem strange - but try turning Wi-Fi on and off. Many cheaper devices do not work well with Bluetooth and do not connect, but for some reason disables Wi-Fi and fixes it for a while.
I had a similar problem: everything in my code was correct, but did not detect beacons. I even tried with the applications of the manufacturers, and they also could not find the beacon (but their version for the iPhone was made). I turned off Wi-Fi, then turned on again, and the manufacturer application worked, as well as mine.
source share