Package | Description |
---|---|
com.rscja.deviceapi |
Modifier and Type | Class and Description |
---|---|
class |
RFIDWithUHFBLE
Example Usage: public class RFIDWithUHFBLETest { public void test(){ ; RFIDWithUHFBLE rfid = RFIDWithUHFBLE.getInstance(); ; ; boolean result = rfid.init(Context context); ; ; if(!result) { ; ; ; //init fail ; ; ; return; ; ; } rfid.setConnectionStatusCallback(new ConnectionStatusCallback() { ; @Override ; public void getStatus (ConnectionStatus status, Object device){ ; ; if (status == ConnectionStatus.DISCONNECTED) { ; ; ; System.out.println("disconnect"); ; ; }else if (status == ConnectionStatus.CONNECTED) { ; ; ; System.out.println("CONNECTED"); ; ; ; } ; ; } ; }); ; if(!rfid.connect(ble mac)){ ; ; //connect fail ; ; ; return; ; ; ; ; } ; ; ; //connect success ; ; ; //configuration parameters ; ; ; //rfid.setFrequencyMode(xx) ; ; ; //rfid.setPower(30); ; ; rfid.setInventoryCallback(new IUHFInventoryCallback() { ; ; ; @Override ; ; public void callback (UHFTAGInfo uhftagInfo){ ; ; String epc = uhftagInfo.getEPC(); ; ; String rssi = uhftagInfo.getRssi(); ; ; ; ; //........ |
Modifier and Type | Method and Description |
---|---|
static BluetoothReader |
BluetoothReader.getInstance()
Get BluetoothReader
|