Overview
This Tutorial provides a walk-through of the steps toThis Tutorial provides a walk-through of the steps to enable or disable Connect to reader on the device using RFID3 API
Create The Project
- Start by creating a new project in Android Studio. For help, see the Android Studio tutorial.
- Refer Hello RFID to prepare basic setup to work with RFID Reader and then follow this guide
Details
Host device can be connected directly to the reader without calling the GetAvailableRFIDReaderList() and discovering the reader by directly providing the model name. This feature is only supported for bluetooth connection.
Refer connection handling to know about connection handling of other transport modes.
Setting up
Create Readers object
Readers readers = new Readers(this.peekAvailableContext(), ENUM_TRANSPORT.BLUETOOTH);
The new overloaded connect API is implemented in the Readers class. It takes a reader's name as an argument and returns an RFIDReader object. With RFIDReader object user can call the other RFID APIs.
String modelName = "RFD40+_253585251D0178"
RFIDReader reader = readers.connect(modelName);