flutter_aclas_scale_plus 1.0.1 copy "flutter_aclas_scale_plus: ^1.0.1" to clipboard
flutter_aclas_scale_plus: ^1.0.1 copied to clipboard

PlatformAndroid

Flutter plugin for ACLAS weight scales over Serial, USB, and BLE. Connect, read weight (live or one-shot), zero, tare, and handle USB attach/detach.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.1 - 2026-02-16 #

  • Connection types: Updated connection type

1.0.0 - 2026-02-11 #

Added #

  • Connection types: Initialize and connect over Serial port, USB, or BLE (initDevice, openScale with path / index / address).
  • Device list: getDeviceList() for paths (serial), USB indices, or BLE addresses.
  • Connection lifecycle: openScale, closeScale, isConnected. Events: connected, disconnected, usb_attached, usb_detached, error, crash.
  • Live weight: startLiveWeight / stopLiveWeight; weight events on eventStream when live weight is started.
  • One-shot weight: getWeight() to read current weight once.
  • Scale commands: zero(), tare(), setTarePre(value), setFrequency(index) (weight must be stable for zero/tare where required by the scale).
  • Ensure-connection helpers: getWeightEnsuringConnection() and startLiveWeightEnsuringConnection() — when not connected, refresh device list and connect to the first available device, then get weight or start live weight (no stored path/index; suitable when path or index may change after unplug/plug).
  • Connection type: getConnectionType() to read the current type (serial / usb / ble) set by initDevice.
  • Native crash reporting: Plugin sends crash events to Flutter (message, stack trace, exception type) so apps can report to Crashlytics or other services.
  • Android: Full integration with ACLAS SDK (AclasScaler), including background-thread connect, weightInfo.init() before connect, AclasReset() on connection success, BLE connect by list index, and defensive handling of listener and event channel calls.

Notes #

  • Android only in this release. Requires ACLAS SDK artifacts (JAR and jniLibs) in the plugin’s android/libs/ and android/src/main/jniLibs/ (see README).
  • If using ProGuard/R8 (minify/shrinkResources), add keep rules for the ACLAS SDK to avoid runtime crashes; see README.

0.0.1 Initial development #

  • Initial plugin structure and Android implementation.
0
likes
160
points
57
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin for ACLAS weight scales over Serial, USB, and BLE. Connect, read weight (live or one-shot), zero, tare, and handle USB attach/detach.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_aclas_scale_plus

Packages that implement flutter_aclas_scale_plus