Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   The heart rate monitor (https://www.delphipraxis.net/197802-heart-rate-monitor.html)

DP News-Robot 6. Sep 2018 09:20

The heart rate monitor
 
With Delphi, we can monitor the heart beat, using a Bluetooth LE this device application acts in client mode and start first thing it does is search for a server of which read the data from the heart rate. This server will be a device such as those who use runners as they make any career. When you press the "Scan" button begins the search for LE Bluetooth device that implements the service "Heart Rate" for this uses the "DiscoverDevices" method with a timeout and an array of TBluetooth UUID's, in this case BluetoothLE1.DiscoverDevices(2500, [) HRSERVICE]) where HRSERVICE is a standard. TBluetoothUUID = ' {0000180D-0000-1000-8000-00805F9B34FB} then the timeout is triggered the method "OnEndDiscoverDevices" to discover the services available from a device using the method "Overload:System.ServiceProcess.ServiceController. GetServices", if you find them again when the method GetCharacteristic HRMEASUREMENT_CHARACTERISTIC: HRMEASUREMENT_CHARACTERISTIC: TBluetoothUUID = ' {0

Weiterlesen...


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:03 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz