Bluetooth device list not showing

hello, I am currently facing a problem with my MIT application because when I click the connect button it cannot see any Bluetooth devices. I hope someone will help me with this, thank you in advance
ps. I am using HC-05 Bluetooth Module with this

here is the code:

Group4_Final_Project_Simon_Game.aia (57.0 KB)

(Canned Response ABG - Bluetooth non-BLE SCAN Permission Blocks)

The easiest solution, for immediate relief
(from @Barry_Meaker) ...

I had the same issue. The problem is your app does not have permission to see nearby devices. The solution is to give your app permission on your phone (no code changes in your app).

on your phone,

  • goto settings
  • search for your app
  • in App Info for your app select Permissions
  • change Nearby Devices from Not Allowed to Allowed
  • Done

By the way, the very first time you run the app, Android will ask if you want to grant the app this permission. If you say no, or ignore the pop-up, the permission will be set as Denied. Android will not ask again.

A more complex approach, for professional app development:

See Bluetooth liste of devices deosn't work anymore - #7 by Anke
Special note for Xiaomi devices:
I have an error with bluetooth on android 12, Xiaomi Poco X3 NFC - #20 by Patryk_F

2 Likes

Thank you so much, it works! Now, I am facing the scores defaulting to 48, I tried to reinstall the application a couple of times but when I started the game again, the score was still on 48. Do you think it is still in the MIT Application or in Arduino code?

Show us both.

Obrigado, isso funcionou pra mim.