Ejemplo n.º 1
0
 public MainWindow()
 {
     InitializeComponent();
     this.DataContext = this;
     RfidOption       = new RfidOptions();
     Rfid             = new RfidTool(RfidOption);
     RfidTags         = new Dictionary <string, RfidTagInfo>();
 }
Ejemplo n.º 2
0
        static int Read(ReadOptions options)
        {
            var readtool = new RfidTool(o =>
            {
                o.HostName                = options.HostName;
                o.OutputFileName          = options.OutputFileName;
                o.ReaderMode              = options.ReaderMode;
                o.ReportAntennaPortNumber = options.ReportAntennaPortNumber;
                o.ReportFrequency         = options.ReportFrequency;
                o.ReportPhase             = options.ReportPhase;
                o.ReportRssi              = options.ReportRssi;
                o.RxSensitivityInDbm      = options.RxSensitivityInDbm;
                o.TargetMask              = options.TargetMask;
                o.TxPowerInDbm            = options.TxPowerInDbm;
            });

            if (readtool.BeginRead())
            {
                Console.ReadLine();
                readtool.EndRead();
            }
            return(0);
        }
Ejemplo n.º 3
0
 static void f**k()
 {
     RfidTool.Read(wait_for_stop: () => Thread.Sleep(1000), reader_address: "192.168.100.169");
 }
Ejemplo n.º 4
0
 static int GetReaderInfo(InfoOptions options)
 {
     return(RfidTool.GetReaderInfo(options.HostName));
 }