martinohanlon / BlueDot

A zero boiler plate bluetooth remote
MIT License
141 stars 43 forks source link

Waiting for Connection #148

Closed GForceSquared closed 4 years ago

GForceSquared commented 4 years ago

Describe the bug I have got an Android phone connected to the Raspberry Pi and I can see and interact with the Blue Dot on the phone, however on the Raspberry Pi side once I run the mydot.py program it is stuck on the Waiting for Connection phrase.

To Reproduce Steps to reproduce the behavior:

  1. Connect Android Phone with Raspberry Pi through Blue Dot
  2. Run mydot.py on Raspberry Pi
  3. See error

Expected behavior I expected for the Raspberry Pi to connect with the phone and begin to print out You pressed the blue dot!

Screenshots

Screen Shot 2020-03-09 at 9 58 09 PM

Code:

Screen Shot 2020-03-09 at 10 01 38 PM

System (please complete the following information):

Any help would be appreciated as I have just begun working with Bluetooth! Thank you for such an easy yet powerful application!

GForceSquared commented 4 years ago

EDIT: I just rebooted the Pi and everything seems to be working. I think my mistake was to connect to the Raspberry Pi first with the app and then run the code. Once I flipped the order and ran the code first then connected with the app did it work.