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'));
}
Digital Scales tested
-
Toledo Prix 3
-
Configuration
- Protocol Ptr1
- recommended timeout 3000 ms
-
-
Elgin DP-1502
-
Configuration
- Data1 300030
- Prog RS232 1130
- recommended timeout 6000 ms
-
-
URANO POP LIGHT
-
Configuration
- stopbits 2
- recommended timeout 4000 ms
-