digital_scale 1.0.3+0 copy "digital_scale: ^1.0.3+0" to clipboard
digital_scale: ^1.0.3+0 copied to clipboard

PlatformAndroid

This package was created to communicate with serial and digital scale in flutter

example/lib/main.dart

import 'package:digital_scale/digital_scale.dart';

/// example how to use the digital scale package
void main() {

  /// call Digital Scale and pass arguments
  final digitalScale = DigitalScale(
      digitalScalePort: 'COM1',
      digitalScaleModel: 'toledo prix 3',
      digitalScaleRate: 9600,
      digitalScaleTimeout: 3000,
      digitalScaleBt: false,
      continuosRead: false,
  );

  /// async return of weight
  digitalScale.getWeight().then((resp) => print('weight $resp'));
}
8
likes
140
points
0
downloads

Publisher

verified publishersclemente.42web.io

Weekly Downloads

This package was created to communicate with serial and digital scale in flutter

Repository (GitHub)

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter, flutter_bluetooth_serial, flutter_libserialport, roundabnt

More

Packages that depend on digital_scale