Flutter and Dart Bluetooth

The USB BLE adapter for Flutter and Dart

Dongl is a USB Bluetooth Low Energy adapter you drive from Flutter desktop apps and Dart programs. Scan, connect, and pair through its own radio on Windows, macOS, and Linux.

Kober Engineering
InsuLearn
Meta
Fender
Honeywell
Bionic Labs
Sona
SWT
Moon Smart Focus
Lewitt
Medra
Desko
g.tec
IXI
Innovision
Moonlighting Industries
Kober Engineering
InsuLearn
Meta
Fender
Honeywell
Bionic Labs
Sona
SWT
Moon Smart Focus
Lewitt
Medra
Desko
g.tec
IXI
Innovision
Moonlighting Industries
Kober Engineering
InsuLearn
Meta
Fender
Honeywell
Bionic Labs
Sona
SWT
Moon Smart Focus
Lewitt
Medra
Desko
g.tec
IXI
Innovision
Moonlighting Industries
Get started

Set up in three steps

  1. Get an adapter

    Pre-order a Dongl, or flash the free Dongl firmware onto a Nordic nRF52840 Dongle or DK you already own.

  2. Install SimpleFltBLE

    Run flutter pub add simplefltble, or dart pub add simpledartble for Dart without Flutter.

  3. Select the adapter

    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.

import 'package:simplefltble/simplefltble.dart';

final dongl = await Backend.getDongl();
final adapter = (await dongl.getAdapters()).first;
print('${adapter.identifier} [${adapter.address}]');
In Flutter and Dart today

What Flutter uses today

Flutter's BLE plugins use each platform's own Bluetooth and its default adapter.

flutter_blue_plus

flutter_blue_plus covers mobile, macOS, Linux, and the web, with Windows through a separate package. On Linux it uses the first BlueZ adapter.

universal_ble

universal_ble covers all six platforms through each one's Bluetooth API. On Linux it uses the first BlueZ adapter.

bluez for Dart

Canonical's bluez package lists every BlueZ adapter, on Linux only.

Why Dongl

What a Dongl gives your Flutter and Dart code

Desktop

Flutter desktop, all three

The same Flutter code drives a Dongl on Windows, macOS, and Linux desktop apps.

Async

Futures in parallel

Calls on different Dongls run in parallel, so Future.wait checks several devices at once.

Addresses

Real addresses on macOS

Scans report each device's real address, so a Mac test station matches devices by the address on their label.

Pairing

Pairing from your Flutter code

Your code answers passkey and numeric-comparison prompts, with no system dialog. Bonds stay on the Dongl.

Dart

Dart without Flutter

SimpleDartBLE drives a Dongl from command-line Dart programs and test scripts with the same API.

Support

A direct line to the engineers

Commercial customers work directly with the team that builds SimpleBLE and the Dongl firmware.

Plug in a Dongl and run your Flutter and Dart code

Dongl hardware ships with the firmware installed and includes a commercial license to use SimpleBLE through the Dongl backend.

Frequently
asked questions

Plug in a Dongl, add SimpleFltBLE with flutter pub add, and take the adapters of the Dongl backend with Backend.getDongl(). Each Dongl is an adapter with its own radio, and it works through the same API as the computer's Bluetooth.

Flutter desktop apps on Windows, macOS, and Linux, and Dart programs on the same three. On Android and iOS, SimpleFltBLE uses the phone's own Bluetooth.

SimpleFltBLE is the Flutter package, and it re-exports SimpleDartBLE, so the classes and calls are the same. Use SimpleDartBLE for Dart programs without Flutter.

Yes. Each Dongl is a separate adapter, and calls on different adapters run in parallel, so Future.wait scans, connects, and reads through several Dongls at the same time.

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.