digital_scale 0.0.6+1
digital_scale: ^0.0.6+1 copied to clipboard
This package was created to communicate with serial and digital scale in flutter
Digital Scale #
This package read a weight from digital scale by serial or usb port
Installation #
flutter pub add digital_scale
Import #
import 'package:digital_scale/digital_scale.dart';
Example #
void main() {
/// call Digital Scale and pass arguments
final digitalScale = DigitalScale(
digitalScalePort: 'COM1',
digitalScaleModel: 'toledo prix 3',
digitalScaleRate: 9600,
digitalScaleTimeout: 3000,
);
/// async return of weight
digitalScale.getWeight().then((resp) => print('weight $resp'));
}