Bluetooth Access
Scan, pair, connect, and use Bluetooth devices with WendyOS apps
Bluetooth Access
Bluetooth access is used for BLE sensors, controllers, audio accessories, serial devices, and paired peripherals. WendyOS keeps Bluetooth interfaces unavailable to apps unless the app declares a Bluetooth entitlement.
Add the entitlement from your project directory:
wendy project entitlements add bluetoothIf your app needs a specific Bluetooth mode, use the detailed entitlement options:
wendy project entitlements add bluetooth --mode kernel
wendy project entitlements add bluetooth --mode bluezUse kernel for low-level HCI socket access. Use bluez for standard Linux Bluetooth workflows through BlueZ.
Scan for Devices
Run the Bluetooth command without subcommands to open an interactive table for browsing and managing peripherals:
wendy device bluetoothThe table shows device name, address, type, pairing state, and connection state. Use arrow keys to navigate, enter to connect, d to disconnect, f to forget, r to rescan, and q to quit.
For scripting or CI, use the list subcommand:
wendy device bluetooth listConnect and Pair
In the interactive table, select a device and press enter to connect.
To connect from a script, specify the address:
wendy device bluetooth connect AA:BB:CC:DD:EE:FFBy default, the CLI pairs and trusts the device. You can disable either behavior:
wendy device bluetooth connect AA:BB:CC:DD:EE:FF --pair=false --trust=falseDisconnect without forgetting the pairing:
wendy device bluetooth disconnect AA:BB:CC:DD:EE:FFOr select the connected device in the interactive table and press d.
Forget a paired device:
wendy device bluetooth forget AA:BB:CC:DD:EE:FFOr select the paired device in the interactive table and press f.
App Configuration
A minimal Bluetooth app uses:
{
"appId": "com.example.bluetooth",
"platform": "linux",
"version": "1.0.0",
"entitlements": [
{ "type": "bluetooth", "mode": "bluez" }
]
}Then deploy:
wendy run
