Connection error of bt connection

CONECTION ERROR TO BLE

image
image


Vibsen (1).aia (210.7 KB)

M3.ino (2.6 KB)

Are you using a Mac?

See also here:

Using m5stickC board
hp laptop
No mac

what is your solution ?
image

same error

image

i can connect with other app light blue bluefrit
please give the solution..

Your app connects just fine to my micro:bit, and then it does not work because of the register... whatever that the micro:bit not has.
Anyway, the right way to do this is not to do the init in screen1.initialize, but in Screen1.permissionGranted first ask for bluetoothScan, and when that is granted, do the init.

same error
image
image
if its possible to give me screen shot solution..

Check if you have the latest version of the BLE extension. This seems to be it?

image


my version is 20230420 ..
please five me latest version link .
is it just update version it is enough ?
or recalling Bluetooth blocks?
please provide the feedback.
thank you .

I'm not sure, you're going to have to test this yourself (or someone else who knows will respond).

Somehow you get your error message when your device disconnects. I was able to recreate it by connecting to my micro:bit and then switch the micro:bit off.
I am not sure at all whether updating the extension will be enough. In any case try it.

And try to simplify your app. If you can, try to exchange strings, that is much simpler. And look at the iot section of this site for inspiration of how to simplify the connection process.

And which kind of Arduino are you connecting to?

1 Like

thank you for your feedback. i will try to connect as strings.

Not so fast! That is probably not the immediate problem.
The first thing to find out, did your device really connect before you get the error message?? If yes, did you get any error message about registering your UUIDs??
My impression is that the device decides to disconnect for some reason and therefore you get the error message.

Hello there, does a solution has been found?
I get similars errors.

Nobody can answer your question if you do not tell specifically what your problem is.
What device are you using, which version of the BLE extension, which iOT device, your .aia etc...

OK. I agree. The information on the site is hard to find. Here is a working example:
microbit-UART_RW20240609a.hex (1.3 MB)
BTReadWrite4_withTemp.aia (296.9 KB)
Download these files
Connect your microbit to your pc using a usb cable, then in a file explorer, find the microbit and move the .hex file to it, It will beep when loaded. The code of the .hex is this:


Then, load the .aia file in the companion. Connect to the micro:bit and after it being connected you can send text and recieve this text back, or you can ask for the temperature and see that in a text field.
I think the code is super simple (beyond the connection process) but if you have questions... ask.

Here are the related temp blocks in the .aia