Update heart rate monitor data format
Print heart rate bpm from 2nd byte of payload.
This commit is contained in:
parent
9dde7219a6
commit
855d3c4b78
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ func main() {
|
||||||
println("found characteristic", char.UUID().String())
|
println("found characteristic", char.UUID().String())
|
||||||
|
|
||||||
char.EnableNotifications(func(buf []byte) {
|
char.EnableNotifications(func(buf []byte) {
|
||||||
println("data:", uint8(buf[0]))
|
println("data:", uint8(buf[1]))
|
||||||
})
|
})
|
||||||
|
|
||||||
select {}
|
select {}
|
||||||
|
|
Loading…
Reference in a new issue