Lazarus and Bluetooth Low Energy BLE lazarus / 21-General ---------------------------------------------------------------------- Graham1 · 2021-10-28 22:14 I've been relatively successful in handling "classic" Bluetooth in Lazarus now, in both Windows and Linux. So now I'm looking at BLE but I can't find any libraries or example code to help me get started. I'm only interested in running Client code. For Windows I've found this: https://docs.microsoft.com/en-us/windows/uwp/devices- sensors/bluetooth-low-energy-overview but it refers to UWP apps and other things I know nothing about! There is also: https://docs.microsoft.com/en-us/windows/win32/api/bluetoothleapis/ which looks more promising, and I can see the functions listed are exported in BluetoothAPIs.dll. Am I right in thinking that for LE I can use my normal WinSock or BluetoothAPIs (or Linux equivalent) search to find the device and then use the GATT functions to find the services and after that the GATTSet and GATTGet functions to read and write to the device? And is there a Pascal example of how to do this with BlueZ in Linux? Thanks! ---------------------------------------------------------------------- Graham1 · 2021-10-30 23:43 For Windows, the BluetoothAPIs documentation says in the Remarks that the FindFirstDevice function won't detect BLE devices: https://docs.microsoft.com/en-us/windows/win32/api/bluetoothapis/nf- bluetoothapis-bluetoothfindfirstdevice#remarks and that I have to use Windows RunTime, but that takes me back to the UWP stuff again. I'm wondering if I should be looking at the Setupapi.dll functions like SetupDiGetClassDevs and SetupDiEnumDeviceInterfaces? Can anybody help?