Skip to content

jtszalay/flutter-nordic-dfu

 
 

Repository files navigation

flutter-nordic-dfu pub package

This library allows you to do a Device Firmware Update (DFU) of your nrf51 or nrf52 chip from Nordic Semiconductor. It works for Android and iOS fine.

This is the implementation of the reference "react-native-nordic-dfu"

For more info about the DFU process, see: Resources

Usage

startDFU

Examples

await FlutterNordicDfu.startDfu(
        'EB:75:AD:E3:CA:CF', 'file/to/zip/path/file.zip',
         progressListener: ProgressListenerListener());

class ProgressListenerListener extends DfuProgressListenerAdapter {
  @override
  void onProgressChanged(String deviceAddress, int percent, double speed,
      double avgSpeed, int currentPart, int partsTotal) {
    super.onProgressChanged(
        deviceAddress, percent, speed, avgSpeed, currentPart, partsTotal);
    print('deviceAddress: $deviceAddress, percent: $percent');
  }
}

Resources

About

Flutter Nordic dfu

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 37.0%
  • Java 27.1%
  • Swift 22.0%
  • Ruby 10.9%
  • Objective-C 1.5%
  • Kotlin 1.3%
  • Shell 0.2%