Chinmay-KB / uhf_c72_plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uhf_plugin

A flutter plugin for UHF type C72 to read UHF Cards.

Library Pub link

https://pub.dev/packages/uhf_plugin

Getting Started

  • Import the library: import 'package:uhf_c72_plugin/uhf_c72_plugin.dart';

  • Open connection to the UHF reader

    await UhfPlugin.connect

  • Check if is the reader connected

    await UhfPlugin.isConnected;

  • Start reading data a single UHF card

    await UhfPlugin.startSingle;

  • Start reading data multi 'continuous' UHF cards

    await UhfPlugin.startContinuous;

  • Is started reading

    await UhfPlugin.isStarted;

  • Stop Reading

    await UhfPlugin.stop;

  • Close the connection

    await UhfPlugin.close;

  • Clear cached data for the reader

    await UhfPlugin.clearData;

  • Is Empty Tags

    await UhfPlugin.isEmptyTags;

  • Set Power level (5 dBm : 30 dBm use string numbers)

    await UhfPlugin.setPowerLevel;

  • Set Work area Area Values { "1", "2" 4", "8", "22", "50", "51", "52", "128"} await UhfPlugin.setWorkArea;

  • Listen to tags status

    UhfPlugin.tagsStatusStream.receiveBroadcastStream().listen(updateTags);

       List<TagEpc> _data = [];
       void updateTags(dynamic result) {
        setState(() {
            _data = TagEpc.parseTags(result);
         });
       }

About

License:Other


Languages

Language:Java 43.5%Language:Dart 41.0%Language:Ruby 11.2%Language:Swift 2.3%Language:Objective-C 1.7%Language:Kotlin 0.3%