heartrate-monitor

command
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

This example scans and then connects to a specific Bluetooth peripheral that can provide the Heart Rate Service (HRS).

Once connected, it subscribes to notifications for the data value, and displays it.

To run this on a desktop system:

go run ./examples/heartrate-monitor EE:74:7D:C9:2A:68

To run this on a microcontroller, change the constant value in the file "mcu.go" to set the MAC address of the device you want to discover. Then, flash to the microcontroller board like this:

tinygo flash -o circuitplay-bluefruit ./examples/heartrate-monitor

Once the program is flashed to the board, connect to the USB port via serial to view the output.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL