Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BenjaminAbt/78643fb7e798b73516db to your computer and use it in GitHub Desktop.
Save BenjaminAbt/78643fb7e798b73516db to your computer and use it in GitHub Desktop.
Get heart beat from Microsoft Band SDK
// 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