T tonga Member Licensed User Longtime User Sep 24, 2019 #1 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
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 B4X founder Staff member Licensed User Longtime User Sep 25, 2019 #2 tonga said: I can connect to a BLE device in Debug mode, but it is difficult in Release mode. Click to expand... 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/ tonga said: I would also like to know how to do this if I want the connection to take place with a preset MAC. Click to expand... 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. Upvote 0
tonga said: I can connect to a BLE device in Debug mode, but it is difficult in Release mode. Click to expand... 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/ tonga said: I would also like to know how to do this if I want the connection to take place with a preset MAC. Click to expand... 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.