Skip to content

Instantly share code, notes, and snippets.

@andreban
Last active February 20, 2017 20:02
Show Gist options
  • Save andreban/5e131b6738f7224d9fe02b0f67aa7a48 to your computer and use it in GitHub Desktop.
Save andreban/5e131b6738f7224d9fe02b0f67aa7a48 to your computer and use it in GitHub Desktop.
generalStatusCharacteristic.addEventListener('characteristicvaluechanged', e => {
const dataView = e.target.value;
const avgStrokeRate = dataView.getUint8(10);
const endingHeartRate = dataView.getUint8(11);
const averageHeartRat = dataView.getUint8(12);
// ...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment