Ejemplo n.º 1
0
 // This event handler will be called when a direction report is ready.
 static void OnDirectionReported(ImpinjReader reader, DirectionReport report)
 {
     // Print out the report details
     Console.WriteLine("Direction report");
     Console.WriteLine("   Type = {0}", report.ReportType);
     Console.WriteLine("   EPC = {0}", report.Epc);
     Console.WriteLine("   Last Read Sector = {0}", report.LastReadSector);
     Console.WriteLine("   Last Read Timestamp = {0}", report.LastReadTimestamp);
     Console.WriteLine("   First Seen Sector = {0}", report.FirstSeenSector);
     Console.WriteLine("   First Seen Timestamp = {0}", report.FirstSeenTimestamp);
     Console.WriteLine("   Tag Population Status = {0}", report.TagPopulationStatus);
 }
Ejemplo n.º 2
0
 protected void InterfaceCallback(IntPtr userdata, ref TimeValue timestamp, ref DirectionReport report)
 {
     OnStateChanged(timestamp, report.sensor, report.direction);
 }