Class IDxxLA
RFID reader for ID-2LA, ID-12LA and ID-20LA serial readers.
Assembly: IDxxLA.dll
View Source
public class IDxxLA : IRfidReader, IObservable<byte[]>, IDisposable
Implements:
Meadow.Foundation.Sensors.Radio.Rfid.IRfidReader, System.IObservable<System.Byte[]>
, System.IDisposable
Properties
LastRead
A cached copy of the last successfully read RFID tag.
View Source
public byte[]? LastRead { get; }
Fields
BaudRate
The baud rate (9600)
View Source
public const int BaudRate = 9600
DataBits
Data bits (7)
View Source
public const int DataBits = 7
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
View Source
public void Dispose()
StartReading()
Start reading for RFID tags.
View Source
public void StartReading()
StopReading()
Stop reading for RFID tags.
View Source
public void StopReading()
Subscribe(IObserver<byte[]>)
Subscribe to RFID tag reads. Observer will only receive valid reads, with invalid reads triggering an OnError call. OnComplete will be called if this instance is disposed. This call is thread-safe.
View Source
public IDisposable Subscribe(IObserver<byte[]> observer)
Returns
System.IDisposable
: Disposable unsubscriber
Parameters
Type | Name | Description |
---|---|---|
System.IObserver<System.Byte[]> | observer | The observer to subscribe |
Events
RfidRead
Event fired when an RFID tag is read. Check the read status to see if the read was successful.
View Source
public event RfidReadEventHandler RfidRead
Event Type
Meadow.Foundation.Sensors.Radio.Rfid.RfidReadEventHandler
Implements
- Meadow.Foundation.Sensors.Radio.Rfid.IRfidReader
System.IObservable<System.Byte[]>
System.IDisposable