libbluetooth and BlueZ
On Linux, hci_open_dev opens an adapter by number, and BlueZ's D-Bus API exposes each adapter as hciN.

C Bluetooth
Dongl is a USB Bluetooth Low Energy adapter you drive from C with SimpleCBLE. Scan, connect, and pair through its own radio on Windows, macOS, and Linux, from C applications or from any language with a C FFI.
















































Pre-order a Dongl, or flash the free Dongl firmware onto a Nordic nRF52840 Dongle or DK you already own.
Build SimpleCBLE with CMake, which builds SimpleBLE along with it, and link simplecble::simplecble.
A plugged-in Dongl appears as its own adapter, next to the computer's Bluetooth. Take the adapters of the Dongl backend and your code runs on the Dongl.
Select the Dongl, then scan, connect, and read. This is the code for each step.
simpleble_error_t* error = NULL;
simpleble_adapter_t adapter = NULL;
simpleble_backend_t dongl = simpleble_backend_get_dongl(&error);
simpleble_adapter_list_t adapters = NULL;
if (dongl && simpleble_backend_get_adapters(dongl, &adapters, &error) > 0) {
adapter = simpleble_adapter_list_get(adapters, 0, &error);
}
simpleble_adapter_list_release(adapters);
simpleble_backend_release_handle(dongl);
if (error) fprintf(stderr, "%s\n", simpleble_error_message(error));
simpleble_error_release(&error);
// Use the adapter, then release it with simpleble_adapter_release_handle(adapter).C code usually reaches Bluetooth through Linux's own libraries or a vendor's dongle protocol.
On Linux, hci_open_dev opens an adapter by number, and BlueZ's D-Bus API exposes each adapter as hciN.
Nordic's pc-ble-driver C API opened one nRF dongle per serial port. Nordic archived it in 2024 with no planned successor.
BLED112 dongles take BGAPI messages, and Silicon Labs no longer makes them. BleuIO dongles take AT commands over a serial port.
One C API drives a Dongl on Windows, macOS, and Linux. Errors come back as values you check.
Load SimpleCBLE from any language that can call C, with the same Dongl support.
Scans report each device's real address, so a Mac test station matches devices by the address on their label.
Your code answers passkey and numeric-comparison prompts, with no system dialog. Bonds stay on the Dongl.
Each Dongl is another adapter with its own radio, so each test fixture gets its own Dongl and thread.
Commercial customers work directly with the team that builds SimpleBLE and the Dongl firmware.
Dongl hardware ships with the firmware installed and includes a commercial license to use SimpleBLE through the Dongl backend.
Plug in a Dongl, build SimpleCBLE with CMake, and take the adapters of the Dongl backend with simpleble_backend_get_dongl() and simpleble_backend_get_adapters(). Each Dongl is an adapter with its own radio, and it works through the same API as the computer's Bluetooth.
Plug in a Dongl, build SimpleCBLE with CMake, and take the adapters of the Dongl backend with simpleble_backend_get_dongl() and simpleble_backend_get_adapters(). Each Dongl is an adapter with its own radio, and it works through the same API as the computer's Bluetooth.
Yes. Each Dongl is a separate adapter. Drive each from its own thread, with POSIX threads on macOS and Linux and C11 threads or _beginthreadex on Windows.
Yes. Each Dongl is a separate adapter. Drive each from its own thread, with POSIX threads on macOS and Linux and C11 threads or _beginthreadex on Windows.
Yes. SimpleCBLE is the C interface to SimpleBLE, built for pure C applications and for bindings to other languages through FFI.
Yes. SimpleCBLE is the C interface to SimpleBLE, built for pure C applications and for bindings to other languages through FFI.
Nordic archived pc-ble-driver in 2024, and Silicon Labs discontinued the BLED112. SimpleBLE with a Dongl replaces both, and the SimpleBLE docs include a migration guide for each.
Nordic archived pc-ble-driver in 2024, and Silicon Labs discontinued the BLED112. SimpleBLE with a Dongl replaces both, and the SimpleBLE docs include a migration guide for each.
No. The free Dongl firmware runs on a Nordic nRF52840 Dongle or DK for prototyping, testing, and non-commercial validation. Dongl hardware ships with the firmware installed and includes a commercial license to use SimpleBLE through the Dongl backend.
No. The free Dongl firmware runs on a Nordic nRF52840 Dongle or DK for prototyping, testing, and non-commercial validation. Dongl hardware ships with the firmware installed and includes a commercial license to use SimpleBLE through the Dongl backend.
SimpleBLE is source-available under the Business Source License 1.1 and free for non-commercial use. Evaluation needs no license. Commercial use needs a license, and one agreement covers your whole company, with no per-seat, per-device, or royalty fees. Each Dongl hardware unit includes a commercial license to use SimpleBLE through the Dongl backend.
SimpleBLE is source-available under the Business Source License 1.1 and free for non-commercial use. Evaluation needs no license. Commercial use needs a license, and one agreement covers your whole company, with no per-seat, per-device, or royalty fees. Each Dongl hardware unit includes a commercial license to use SimpleBLE through the Dongl backend.