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
List nearby Bluetooth peripherals:
wendy device bluetooth listThe command shows device name, address, RSSI, type, pairing state, and connection state.
Connect and Pair
Connect to a Bluetooth peripheral by 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:FFForget a paired device:
wendy device bluetooth forget AA:BB:CC:DD:EE:FFApp Configuration
A minimal Bluetooth app uses:
{
"appId": "com.example.bluetooth",
"version": "1.0.0",
"entitlements": [
{ "type": "bluetooth", "mode": "bluez" }
]
}Then deploy:
wendy run