Forward any Bluetooth controller from one Linux box to another Linux box
- Zig 99%
- Nix 1%
| .woodpecker | ||
| src | ||
| .envrc | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| LICENSE | ||
| README.md | ||
| shell.nix | ||
btproxy
Forward any Bluetooth controller from one Linux box to another Linux box.
Usage
# Produces zig-out/bin/btproxy
zig build -Doptimize=ReleaseFast
# Exports Bluetooth controller 0 on [::]:17555
./zig-out/bin/btproxy server :: 17555 0
# Connects to a Bluetooth controller on a remote host
./zig-out/bin/btproxy client other-machine.local 17555
- You probably need root on both ends.
- On the server, the controller needs to be off first:
bluetoothctl power off