[free/os] Extension For Pairing Bluetooth Asynchronously Without Getting App Freez

When We Try To connect Bluetooth Device using Bluetooth Client . until getting successful connection app freezes. and We will be prompted wait and close by android. So i Make this extension from some combination of sources. and it worked for me. If any One need it you can test and use in your project.

This Extension is Very Simple to use


Simply Add Dragged BluetoothClient and address as shown

Remaining Work can be done With inbuilt BluetoothClient Component.

In this Way We have Solved App Frizzing Problem While Connecting Bluetooth.

Aix File to Download
com.ConnectBluetoothAsynchronously.aix (7.7 KB)

Source
BtAsynConnect.txt (3.2 KB)

6 Likes

Since your extension is free, could you share the code?

2 Likes

BtAsynConnect.txt (3.2 KB)

this is source

1 Like

Hello @Peter Does i make anything wrong ?

1 Like

No, absolutely not. I never had your "error message" while connecting to a Bluetooth device. You or others would have to answer this, but are there also drawbacks using an asynchronous method to connect to an bluetooth device?

At the moment I and others are testing an extension MicroBlocks Test/Demo App that makes it possible to connect to a microcontroller like micro:bit, calliope mini, ESP32, Raspberry Pi Pico W, etc etc that support BLE and is supported by MicroBlocks. That makes working with BLE very easy when working with microcontrollers.

I am just wondering if your code would be useful with this extension. That is why I was asking.

1 Like

From a long time i need this extension. because of app freezing problem . so i tried to develop this

i am tried to develop this as slimier like as

Stored Address in TinyDB and Make Bluetooth Device OFF
Check With Auto connect when screen Initialized...

for Ex disable HC05 of arduino uno and then test Auto connection its getting freezed for long time :cold_face: otherwise when HC05 is ON its connect in second :slightly_smiling_face:

Oh wait a minute. You are talking about Bluetooth and I am talking about BLE. See, it is still early here. :slightly_smiling_face:

image

1 Like

I know. I was talking about the BLE extension from App Inventor.

How can i search paired and unpaired list with bluetooth ? any extension and source?

Great Extension Keep the work up. :+1:

1 Like

Try the Classic Bluetooth extension

Taifun