Created
January 12, 2016 16:09
-
-
Save BenjaminAbt/78643fb7e798b73516db to your computer and use it in GitHub Desktop.
Get heart beat from Microsoft Band SDK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Check if really consented and check if permissions are granted | |
if( isConsented || uc == UserConsent.Granted ) | |
{ | |
// provide new rate via event | |
bandClient.SensorManager.HeartRate.ReadingChanged += FireHeartRate; | |
// Start reading | |
return ( await andClient.SensorManager.HeartRate.StartReadingsAsync() ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment