discover

command
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

This example scans and then connects to a specific Bluetooth peripheral and then displays all of the services and characteristics.

To run this on a desktop system:

go run ./examples/discover 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/discover

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