Bluetooth Library for Android

Bluetooth Library for Android

Delphi and C++ Builder Bluetooth library for Android.
  • uses Android Bluetooth API
  • supports BLE and BT Classic clients
  • available for Delphi/C++ Builder 10.4 - 11.2
  • source code included in registered version
  • royalty free distribution in applications

Download and order


How can I set scanning filter for BLE?
var Filter: TScanFilter;

SetLength(Filter.DeviceNames, 1);
Filter.DeviceNames[0] := 'Blood Pressure';

SetLength(Filter.DeviceAddresses, 1);
Filter.DeviceAddresses[0] := '51:6B:AF:DD:4C:D0';

SetLength(Filter.Services, 1);
Filter.Services[0] := ToGUID(TBluetoothGattService.BloodPressure);

Why can't I connect to BLE dual-mode device?
Set Transport parameter to TTransport.LE value in ConnectGatt method:
Device.ConnectGatt(SwitchAutoConnect.IsChecked, TTransport.LE);

Related links