Bluetooth connection problem

(Canned Response)
These blocks can be dragged into your Blocks Editor to request permission(s) for Bluetooth scanning and connecting. All three parts are needed.




Thanks to @Anke for the original code.
My changes include

  • use of the Screen1 permission blocks to avoid the possibility of a typo
  • using a TinyDB tag particular to BT permissions and only for BT permissions.

By @ABG

Taifun

Hey. Do you have the.aia file to share please? I'm having trouble with the app finding connected devices, it worked in the old versions but not in the new ones.

The above blocks provided by Taifun can be dragged into your project.

Oh, sorry. I tried dragging it straight from the page into my project and it didn't work. I downloaded it and dragged it into my project and it worked. Thank you very much!

Hi! The blocks worked until yesterday, today they no longer work, it only works on devices version below 12. It showed Error 908, but all permissions were granted as shown in the last figure. Could you help me?
testeBluetooth2.aia (3.5 KB)




I think I solved it. Replaces the BluetoothScan permission with
BluetoothConnect permission.

Yes, there seems to be a bug in the blocks above. The app does not ask for BluetoothScan permissions anywhere.