- From: Stéphane Juban via GitHub <sysbot+gh@w3.org>
- Date: Mon, 25 Mar 2019 21:43:30 +0000
- To: public-web-bluetooth-log@w3.org
Thanks for your answer !
To sum up, in my code the notification connection is started with :
`device._startNotifications(characteristicUuid).then(handleHeartRateMeasurement)`
And the listener :
```
function handleHeartRateMeasurement(heartRateMeasurement) {
heartRateMeasurement.addEventListener("characteristicvaluechanged", event => {
var value = device.parseValue(event.target.value);
// Use my value
});
}
```
--
GitHub Notification of comment by StephaneJuban
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/429#issuecomment-476389368 using your GitHub account
Received on Monday, 25 March 2019 21:43:31 UTC