Connect Bluetooth on not a specific device

Hi everyone,
I need to create an App to connect with Arduino via Buletooth in order to send start (“A”) and stop (“B”) commands. I want my program to be versatile and be able to connect to different bluetooth cards and not with just one. I am therefore lost I do not know what to put in the UUID because the UUID of each bluetooth card is different… Maybe I say anything but I’d like to have some help thx. :grinning_face_with_smiling_eyes:

Have a good day !

My code:

1 Like

Hey, @letourneur.augddq22c , Welcome to the community!

I am not an expert on bluetooth component but I guess enter the “UUID” Of the different devices in the required place

Keep Thunking
Anush

2 Likes

I believe you can do that by using the Scan block which returns a list of device IDs:

2 Likes

This is not easy to accomplish and unfortunately Thunkable does not scan available UUIDs for read/write

Let me explain a bit here, BLE devices should have a minimum of 4 UUID numbers.

  • a UUID for the device itself. This is the one you will see when you scan devices.
  • a UUID for the service. Thunkable does not use it nor show it.
  • a UUID to send data this is called characteristic UUID. This is required by Thunkable but unfortunately there is no way to scan it within Thunkable.
  • a UUID to receive data this is called characteristic UUID. This is required by Thunkable but unfortunately there is no way to scan it within Thunkable.

You need a tool to show you the characteristic UUID for send/receive to be able to use them.

What makes it even more complicated, there are many BLE devices that provides more than one service and provide more than UUID service and under each service you might see a list of characteristic UUIDs not just one or two.

See example from the scanning tool

3 Likes

Thank you for your answer,

So it doesn’t seem easy to do that with this site :pensive: … Do you know of any other internet sites that will be able to achieve what I want ? I don’t know how to code in swift language for IOS so I liked the block system (like App inventor for android).