{"id":32274405,"url":"https://github.com/fengqiangboy/flutter-nordic-dfu","last_synced_at":"2026-02-21T08:02:27.991Z","repository":{"id":34039384,"uuid":"166003569","full_name":"fengqiangboy/flutter-nordic-dfu","owner":"fengqiangboy","description":"Flutter Nordic dfu","archived":false,"fork":false,"pushed_at":"2022-07-21T10:54:17.000Z","size":222,"stargazers_count":107,"open_issues_count":12,"forks_count":75,"subscribers_count":12,"default_branch":"master","last_synced_at":"2023-11-07T15:59:44.060Z","etag":null,"topics":["dfu","flutter","nordic"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fengqiangboy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-16T08:30:59.000Z","updated_at":"2023-09-18T00:37:00.000Z","dependencies_parsed_at":"2022-09-02T05:50:34.622Z","dependency_job_id":null,"html_url":"https://github.com/fengqiangboy/flutter-nordic-dfu","commit_stats":null,"previous_names":[],"tags_count":16,"template":null,"template_full_name":null,"purl":"pkg:github/fengqiangboy/flutter-nordic-dfu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengqiangboy%2Fflutter-nordic-dfu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengqiangboy%2Fflutter-nordic-dfu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengqiangboy%2Fflutter-nordic-dfu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengqiangboy%2Fflutter-nordic-dfu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fengqiangboy","download_url":"https://codeload.github.com/fengqiangboy/flutter-nordic-dfu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengqiangboy%2Fflutter-nordic-dfu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29676984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T06:23:40.028Z","status":"ssl_error","status_checked_at":"2026-02-21T06:23:39.222Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dfu","flutter","nordic"],"created_at":"2025-10-22T23:35:40.169Z","updated_at":"2026-02-21T08:02:27.986Z","avatar_url":"https://github.com/fengqiangboy.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flutter-nordic-dfu [![pub package](https://img.shields.io/pub/v/flutter_nordic_dfu.svg)](https://pub.dartlang.org/packages/flutter_nordic_dfu)\n\nThis library allows you to do a Device Firmware Update (DFU) of your nrf51 or\nnrf52 chip from Nordic Semiconductor. It works for Android and iOS fine.\n\nThis is the implementation of the reference \"[react-native-nordic-dfu](https://github.com/Pilloxa/react-native-nordic-dfu)\"\n\nFor more info about the DFU process, see: [Resources](#resources)\n\n## Run Example--\u003eAmazing \n\n1. Add your dfu zip file to `example/assets/file.zip`\n\n2. Run example project\n\n3. Scan device\n\n4. Start dfu\n\n\n## Usage\n\n### startDFU\n\n#### Examples\n\nYou can pass an absolute file path or asset file to `FlutterNordicDfu`\n\n##### Use absolute file path\n\n```dart\n/// You can define your ProgressListenerListener\nawait FlutterNordicDfu.startDfu(\n            'EB:75:AD:E3:CA:CF', '/file/to/zip/path/file.zip',\n            progressListener: ProgressListenerListener(),\n         );\n\n\nclass ProgressListenerListener extends DfuProgressListenerAdapter {\n  @override\n  void onProgressChanged(String deviceAddress, int percent, double speed,\n      double avgSpeed, int currentPart, int partsTotal) {\n    super.onProgressChanged(\n        deviceAddress, percent, speed, avgSpeed, currentPart, partsTotal);\n    print('deviceAddress: $deviceAddress, percent: $percent');\n  }\n}\n\n/// Or you can use DefaultDfuProgressListenerAdapter\nawait FlutterNordicDfu.startDfu(\n      'EB:75:AD:E3:CA:CF',\n      'assets/file.zip',\n      fileInAsset: true,\n      progressListener:\n          DefaultDfuProgressListenerAdapter(onProgressChangedHandle: (\n        deviceAddress,\n        percent,\n        speed,\n        avgSpeed,\n        currentPart,\n        partsTotal,\n      ) {\n        print('deviceAddress: $deviceAddress, percent: $percent');\n      }),\n    );\n```\n\n##### Use asset file path\n\n```dart\n/// just set [fileInAsset] true\nawait FlutterNordicDfu.startDfu(\n            'EB:75:AD:E3:CA:CF', 'assets/file.zip',\n            progressListener: ProgressListenerListener(),\n            fileInAsset: true,\n         );\n\nclass ProgressListenerListener extends DfuProgressListenerAdapter {\n  @override\n  void onProgressChanged(String deviceAddress, int percent, double speed,\n      double avgSpeed, int currentPart, int partsTotal) {\n    super.onProgressChanged(\n        deviceAddress, percent, speed, avgSpeed, currentPart, partsTotal);\n    print('deviceAddress: $deviceAddress, percent: $percent');\n  }\n}\n```\n\n## Resources\n\n-   [DFU Introduction](http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/examples_ble_dfu.html?cp=6_0_0_4_3_1 \"BLE Bootloader/DFU\")\n-   [Secure DFU Introduction](http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/ble_sdk_app_dfu_bootloader.html?cp=4_0_0_4_3_1 \"BLE Secure DFU Bootloader\")\n-   [How to create init packet](https://github.com/NordicSemiconductor/Android-nRF-Connect/tree/master/init%20packet%20handling \"Init packet handling\")\n-   [nRF51 Development Kit (DK)](http://www.nordicsemi.com/eng/Products/nRF51-DK \"nRF51 DK\") (compatible with Arduino Uno Revision 3)\n-   [nRF52 Development Kit (DK)](http://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF52-DK \"nRF52 DK\") (compatible with Arduino Uno Revision 3)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffengqiangboy%2Fflutter-nordic-dfu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffengqiangboy%2Fflutter-nordic-dfu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffengqiangboy%2Fflutter-nordic-dfu/lists"}