flutter_esptool 0.1.3 copy "flutter_esptool: ^0.1.3" to clipboard
flutter_esptool: ^0.1.3 copied to clipboard

ESP8266/ESP32 serial bootloader toolkit for Flutter and Dart with typed results, chip discovery, flash workflows, and protocol-safe transport abstractions.

⚑ flutter_esptool #

Dart Flutter License: MIT CI pub.dev

πŸ”Œ A professional Flutter package for ESP8266/ESP32 serial bootloader operations: chip detection, flash write/erase/read flows, MAC queries, and protocol utilities.


✨ Features #

  • 🧠 Chip detection via ROM register magic + MAC address read.
  • πŸ’Ύ Flash write/erase flows with optional compression and MD5 verification.
  • πŸ“¦ Clean layered architecture (application, domain, transport, infrastructure, models).
  • πŸ§ͺ Hardware-free tests with scripted/mocked transport.
  • πŸ–₯️ Professional multilingual demo app in example/esptool_ui.

πŸš€ Installation #

dependencies:
  flutter_esptool: ^0.1.3

πŸ”§ Development Commands #

flutter pub get
flutter analyze
flutter test
flutter test test\unit
flutter test test\integration
flutter test test\e2e
dart pub publish --dry-run

Cross-platform automation lives in scripts/:

Workflow Windows Linux macOS Report
Setup dev machine scripts\\windows\\setup-dev.ps1 scripts/linux/setup-dev.sh scripts/macos/setup-dev.zsh terminal summary
Run tests scripts\\windows\\run-tests.ps1 scripts/linux/run-tests.sh scripts/macos/run-tests.zsh reports/tests/<timestamp>/
Build examples scripts\\windows\\build.ps1 scripts/linux/build.sh scripts/macos/build.zsh reports/builds/<timestamp>/

Single test file:

flutter test test/unit/transport/slip_codec_test.dart

Single test by name:

flutter test test/unit/transport/slip_codec_test.dart --plain-name "round-trips a payload through encode and decode"

πŸ“š Documentation #


πŸ§ͺ Demo Application #

Run the professional demo:

cd example\esptool_ui
flutter pub get
flutter run

The demo includes:

  • πŸŒ— light/dark professional themes
  • 🌍 multi-language UI (en, fr, es, pt, de, it, nl, ru, ar, he, zh, ja, ko)
  • ✨ splash screen
  • βš™οΈ live serial-port workflow for connect, chip detection, MAC, flash info, erase, write, and MD5

πŸ—ΊοΈ High-level workflow #

flowchart LR
  UI[Flutter UI / CLI] --> Services[Application services]
  Services --> Transport[ESP transport]
  Transport --> Serial[platform_serial]
  Serial --> Device[ESP ROM bootloader]
  Services --> Reports[tests/build reports]

πŸ“„ License #

This project is licensed under the MIT License.

πŸ” CI, security, and merge gates #

  • PR open/update events trigger analyzer + unit/integration/e2e test jobs.
  • Owner-authored PRs targeting main are auto-approved and auto-merged only after successful PR validation.
  • Release publication uses GitHub OIDC trusted publishing (no long-lived PUB_DEV_PUBLISH_TOKEN secret).
1
likes
150
points
333
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

ESP8266/ESP32 serial bootloader toolkit for Flutter and Dart with typed results, chip discovery, flash workflows, and protocol-safe transport abstractions.

Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

flutter, platform_serial

More

Packages that depend on flutter_esptool