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.
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.
Thank you for this extension. I will give it a chance and try it out. Maybe it solves a big problem i sometimes have and was not aple to reproduce it see here
Sometimes the error shown in your picture occures and sometimes not. I thought it has something to update my apps very often in time of development. For that reason i clear the app cache very often but i am not sure if this is realy the cause.
Some questions: Should I use your disconnect method (async) or can i also use the method from bluetoothClient1 (standard)? What does your method isConnected does exactly do? I ask because the standard method does not do what I expected. I thought that i can check if the connection is available but that does not work. To check if the connection still is available I have to send every few seconds a haeardbeat information to arduino. If this does not work I get an error which I catch and change the connection status on the screen.
Now - thanks again for your service - I can try it with your extension
Note : I am beginner in extension development. in some Projects its Works For Me . and in some project it Does not Work. So i provided Source with it . if any one can update then they can update source and re-post in app inventor or this post.
Use All Method From BluetoothClient1 For Remaining Purpose. Sync Extension Only Make Smooth Connection. Remaining thins need to do from BluetoothClient1.