flutter_aclas_scale_plus 1.0.1
flutter_aclas_scale_plus: ^1.0.1 copied to clipboard
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,openScalewith 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 oneventStreamwhen 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()andstartLiveWeightEnsuringConnection()— 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 byinitDevice. - Native crash reporting: Plugin sends
crashevents 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/andandroid/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.