Skip to main content
Ask Embedder to scan for, connect to, read, write, or subscribe to a BLE peripheral through your computer’s Bluetooth adapter. Embedder runs each interaction as a short hardware script and shows the results in the Monitor’s Bluetooth tab. This workflow covers BLE GATT, not Bluetooth Classic.

Prepare

  1. Turn on Bluetooth on the computer running Embedder, or plug in a BLE-capable USB adapter.
  2. 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.
  3. On Linux, make sure BlueZ is installed and running.
  4. Make the target advertise. If it’s connected to another central, such as a phone app, disconnect it there first.
The first time you use BLE, Embedder checks for Python 3, its own Python environment, and the 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

You can also ask Embedder to filter by advertised service UUID. A name filter matches any device whose name contains the text, so it can match several boards. Scans are active by default: Embedder requests scan responses to get fuller name and manufacturer data. A passive scan, which sends no scan requests, works on Windows only. On macOS and Linux it fails with an error. Use the exact address this computer reports. macOS reports a device UUID instead of a MAC address, so an address copied from another computer won’t work.

Inspect services and read a value

Refer to characteristics by the UUIDs and properties that discovery returns. Interpret bytes using the standard service definition or your project’s protocol. Discovery also lists each characteristic’s descriptors. Ask to read a descriptor when you need its description or format information. To write a descriptor, give its characteristic, descriptor UUID, and payload. To turn on notifications, subscribe instead of writing the descriptor yourself.

Collect notifications

Subscribing works for both notifications and indications. Subscribe before you trigger the event, and leave enough time for the expected response. Watch the Notifications panel for incoming values.

Write a characteristic

A write can change configuration, start an update, or control equipment. Specify the characteristic, payload, and expected effect before requesting it.
Give the payload as hex bytes, such as 01 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 imports bleak directly. End the script by disconnecting; Embedder also disconnects when the script exits.

Troubleshoot

Last modified on November 13, 2026