Via Cà Matta 2 - Peschiera Borromeo (MI)
+39 02 00704272
info@synaptica.info

Testing BluetoothLE on Delphi DX 10

Digital Innovation Partner

Testing BluetoothLE on Delphi DX 10

Today i do some test about TBluetooth LE component on Delphi Seattle on different devices.

 

Device BT LE as Client BT LE as Server (pheriferial mode)
Mac Book Pro OSX 10.11.6
Yes
Yes
iPhone 6s iOS 9.3
Yes
Yes
Samsung S4 Android lollipop
Yes
No: raise an axeception on phheriferial mode?!?!
PC Windows 10 Pro – Sitecom BT
No: i don’t kwon the problem
No: can’t create Gatt Service
iPhone 4s
No: i think btle is not supperted
No: i think btle is not supperted

 

what i found is that all function well on Android (Samsung S4/lollipop), Mac Book Pro (OSX 10.3), iPhone (iPhone 6s/iOS 9.3)

On my Windows system the LE does not function at on my pc (Intel i7/ Windows 10 / SiteCom Bluetooth). But with classic Bluetooth all function well, i don’t kwon if the problem is my blu tooth interface ?!?!. Soon i’ll try with another bluetooth interface.

What i found is that using BT LE between my Mac and my iPhone the connection is very stable, and when i go away from my pc and back automatically the restart the comunication without checking bluetooth connection.

On Android all function as client but when i try to invoke this method “btLE.GetGattServer;” i got an error like “Your device can’t work as pheriferial mode”.

I create a server app for my MacBook and it function very well only using this method:

for display the recived data from server :

On the client side :

i put a button to discover bt devices

and copiled the method about the end of discovering devices