scan_ts 0.0.5
scan_ts: ^0.0.5 copied to clipboard
scan_ts
pda_rfid_scanner #
A Flutter plugin project for RFID scan on Blovedream PDA.
Getting Started #
- Power on Plugin
scan_ts.powerOn();
- Power off Plugin
scan_ts.powerOff();
- Using stream to handle scanned information
StreamSubscription? _streamSubscription;
String rfid = '';
@override
void initState() {
_streamSubscription =
scan_ts.channel.receiveBroadcastStream().listen(
(dynamic event) {
debugPrint('Received event: $event');
setState(() {
rfid = event;
});
},
onError: (dynamic error) {
debugPrint('Received error: ${error.message}');
},
cancelOnError: true,
);
super.initState();
}