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.
Click to show internal directories.
Click to hide internal directories.