Android Question BLE connections

tonga

Member
Licensed User
Hi all,

related to https://www.b4x.com/android/forum/threads/ble-scansettings.94908/
there are some things I just don't understand:
I can connect to a BLE device in Debug mode, but it is difficult in Release mode.

I would also like to know how to do this if I want the connection to take place with a preset MAC.

Finally I see that, in Debug mode, it quickly finds the peripheral, but the times of Discovering Services are long and sometimes for this reason it cannot connect.

Can anyone help me?
Thanks in advance
 

Erel

Administrator
Staff member
Licensed User
I can connect to a BLE device in Debug mode, but it is difficult in Release mode.
The behavior should be exactly the same. The behavior that you are seeing is not related to the deployment mode.
Start with the BLE example: https://www.b4x.com/android/forum/threads/ble-2-bluetooth-low-energy.59937/

I would also like to know how to do this if I want the connection to take place with a preset MAC.
You cannot connect to a device before you discover it by scanning for it.

You can scan for a specific device based on the advertised services.
 
Top