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 - 12
  • source code included in registered version
  • royalty free distribution in applications

Download and order

FAQ

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);

BluetoothAdapter.StartLeScan(Filter);
							
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