Prepare
- Turn on Bluetooth on the computer running Embedder, or plug in a BLE-capable USB adapter.
- On macOS, allow Bluetooth access for the application running Embedder, such as VS Code or your terminal. If you missed the prompt, enable it under System Settings > Privacy & Security > Bluetooth.
- On Linux, make sure BlueZ is installed and running.
- Make the target advertise. If it’s connected to another central, such as a phone app, disconnect it there first.
bleak package. It asks before installing each one, with prompts such as Install Python 3?, Create Embedder Python environment?, and Install bleak?. If Python can’t be installed automatically, install Python 3 yourself and retry.
Open the Bluetooth tab
Run Embedder: Open Embedder Monitor, select +, then choose Bluetooth under Views. The tab has no scan or connect controls of its own. It displays what Embedder’s scripts report, so ask Embedder in chat to scan, connect, read, or subscribe, and watch the results here.
Select Clear to empty a list. Select ✎ (Rename characteristic) to give a characteristic a readable label. Common Bluetooth SIG characteristics, such as battery level, heart rate, temperature, and device information strings, are decoded by their specification. Other values show likely numeric interpretations.
Scan and choose the device
Inspect services and read a value
Collect notifications
Write a characteristic
Give the payload as hex bytes, such as01 0A, and choose the write type:
Verify the result with a readback or the protocol’s response notification.
Repeat a test
Ask Embedder to create a hardware script with the selected device, service UUIDs, duration, pass condition, and cleanup. BLE script helpers cover scanning, connecting, service discovery, characteristic and descriptor reads and writes, notifications, and signal strength. BLE scripts must use Embedder’s BLE helpers. Embedder reports an error if a script importsbleak directly. End the script by disconnecting; Embedder also disconnects when the script exits.