public MainWindow() { InitializeComponent(); this.DataContext = this; RfidOption = new RfidOptions(); Rfid = new RfidTool(RfidOption); RfidTags = new Dictionary <string, RfidTagInfo>(); }
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); }
static void f**k() { RfidTool.Read(wait_for_stop: () => Thread.Sleep(1000), reader_address: "192.168.100.169"); }
static int GetReaderInfo(InfoOptions options) { return(RfidTool.GetReaderInfo(options.HostName)); }