nrf_ble_dfu 0.0.2 copy "nrf_ble_dfu: ^0.0.2" to clipboard
nrf_ble_dfu: ^0.0.2 copied to clipboard

The Nordic DFU over BLE library helps enable firmware updates of BLE-connected devices over Bluetooth Low Energy (BLE) in a universal way across different platforms like Windows, Android, iOS, Linux and macOS.

example/lib/main.dart

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:nrf_ble_dfu/nrf_ble_dfu.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await NrfBleDfu().waitForCompletion();
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    const div = Divider(height: 0);
    return Scaffold(
      body: ListView(
        children: const [
          DfuFileSelect(),
          div,
          BleEntrySetup(),
          div,
          AutoBleDfu(),
          div,
          BleConnectedDevice(),
          DfuProgress(),
          div,
          BleDeviceSelect(),
        ],
      ),
    );
  }
}
4
likes
0
points
87
downloads

Publisher

unverified uploader

Weekly Downloads

The Nordic DFU over BLE library helps enable firmware updates of BLE-connected devices over Bluetooth Low Energy (BLE) in a universal way across different platforms like Windows, Android, iOS, Linux and macOS.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

archive, file_picker, flutter, flutter_blue_plus_windows, flutter_mobx, mobx, path, path_provider, permission_handler, shared_preferences

More

Packages that depend on nrf_ble_dfu