.Net Sensor Tag API
The Sensor Tag API provided by SensThys is a .Net-based API for building applications that read RFID sensor tags that measure Temperatures and Sensor Codes.
The primary class needed for communicating with the reader is the SensorDataReader. This class provides the service of connecting with the reader and running the underlying algorithms for collecting sensor data, evaluating which data values are valid, and communicating valid data back to the application using callback routines.
The start() method of the SensorDataReader class starts the tag read process. The start() method launches a new thread for communicating with the reader, leaving the main thread of the application code free to perform other tasks while temperatures and sensor codes are read and returned to the main application thread through the TemperatureReadingHandler and the SensorCodeReadingHandler.
Once your application receives a trigger indicating that the data acquisition is complete, the stop() method should be called to end the data acquisition. Your application should continue to receive data through the callbacks until the ReadComplete property of the SensorDataReader changes from false to true.
Note that the SensorDataReader object can be reused for multiple read cycles and can even be left in continuous operation. However, the communication channel needs to be monitored for disconnects or timeouts through the Notification callback. If these problems arise, the underlying Reader instance needs to be closed and reinstantiated in order to recover.
We have provided an example application that shows the various operations descibed here. Please refer to that as an example of how to work with this class.