ble_devtools_core 0.1.0 copy "ble_devtools_core: ^0.1.0" to clipboard
ble_devtools_core: ^0.1.0 copied to clipboard

Library-agnostic BLE traces, recording, byte decoding, export, and Markdown reproduction reports.

ble_devtools_core #

The transport-neutral trace contract behind Flutter BLE DevTools.

Use this package when you are building a BLE adapter, recording a custom BLE stack, or need a portable debugging artifact without depending on a particular plugin.

Includes #

  • Immutable, ordered BleEvent records with wall-clock and monotonic timing.
  • BleTraceRecorder, a bounded recorder that can expose the live trace to a DevTools extension.
  • Byte renderers for hexadecimal, UTF-8, and signed/unsigned integers.
  • Versioned .bletrace JSON export/import and a Markdown reproduction report.
final recorder = BleTraceRecorder(maxEvents: 5000);

recorder.record(
  kind: BleEventKind.connectionState,
  deviceId: 'device-42',
  metadata: {'state': 'connected'},
);

final trace = recorder.snapshot();
final bletrace = BleTraceExport.bletrace(trace);
final report = BleTraceExport.markdownReport(trace);

BleTraceExport.bletrace(trace) pseudonymizes device IDs and advertising names. It deliberately preserves payload bytes; they are often the only useful evidence. Treat exported traces as potentially sensitive.

For FlutterBluePlus instrumentation and the DevTools panel, use ble_devtools_flutter_blue_plus.

1
likes
140
points
105
downloads

Documentation

API reference

Publisher

verified publisheranokha.me

Weekly Downloads

Library-agnostic BLE traces, recording, byte decoding, export, and Markdown reproduction reports.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

meta

More

Packages that depend on ble_devtools_core