bluez and bluez-utils, and bluetooth.service running and enabled. On both workstations bluez is installed only as a dependency; declaring it keeps a clean-up from taking it. Nine Go tools over bluetoothctl: controller, power, devices with battery where reported, a bounded scan, connect, disconnect, trust, pair (an agent that confirms nothing, for headphones) and remove. An act whose output says it failed is an error whatever the exit status, and one bluez refuses the account is repeated through sudo -n.
6 lines
73 B
AMPL
6 lines
73 B
AMPL
module bluetooth
|
|
|
|
go 1.22
|
|
|
|
require git.novox.be/novox/mesh-sdk/go v0.1.6
|