Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maximbilan/ios-heart-rate-monitor
iOS Heart Rate Monitor
https://github.com/maximbilan/ios-heart-rate-monitor
health heart-rate ios ios-app monitor objective-c
Last synced: 3 months ago
JSON representation
iOS Heart Rate Monitor
- Host: GitHub
- URL: https://github.com/maximbilan/ios-heart-rate-monitor
- Owner: maximbilan
- License: mit
- Created: 2014-04-21T12:57:48.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-09-20T14:26:51.000Z (over 6 years ago)
- Last Synced: 2024-04-20T11:04:15.977Z (10 months ago)
- Topics: health, heart-rate, ios, ios-app, monitor, objective-c
- Language: Objective-C
- Homepage:
- Size: 85.9 KB
- Stars: 12
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
iOS Heart Rate Monitor
======================The sample for working with heart rate devices was tested on Alpha MIO devices.
Based on https://github.com/liquidx/CoreBluetoothPeripheral and https://github.com/timburks/iOSHeartRateMonitor sources.## Using
Add to your project the next source files:
HeartRateMonitor.h
HeartRateMonitor.m
You should use the HeartRateMonitorDelegate protocol.
For example:
@interface ViewController : UIViewController <HeartRateMonitorDelegate>@end
And then you should implement the next methods:
// Returns value from device in real time
- (void)updateHRM:(NSString *)data;// Called when scanning timeout occured
- (void)scanningDidTimeout;// Called when connection timeout occured
- (void)connectionDidTimeout;// Called when disconnection occured
- (void)disconnection;Initialization:
HeartRateMonitor *heartRateMonitor = [[HeartRateMonitor alloc] init];
heartRateMonitor.hrmDelegate = self;For start scanning:
[heartRateMonitor startScan];For stopping:
[heartRateMonitor stopScan];