Hi All
I am testing my ACR1255U-J1-010596 using Don's example here https://www.b4x.com/android/forum/threads/does-anyone-have-used-acr122u-usb-nfc-reader.38217/
Only change made to code is device's MAC address and any attempt to run gives the error below:
Return
(MyMap) {Address=50:F1:4A:EC:0C:99, Bondstate=10, Device=50:F1:4A:EC:0C:99, Name=ACR1255U-J1-010596, ToString=50:F1:4A:EC:0C:99}
** Activity (main) Resume **
Reader_updateConnectionState(1, Connecting)
onConnectionStateChange():0/2
lib:Raising.. reader_updateconnectionstate()
Reader_updateConnectionState(2, Connected)
onReaderDetection()
lib:Raising.. 3 reader_onreaderdetection()
Reader_onReaderDetection()
Error occurred on line: 58 (Main)
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.acs.bluetooth.BluetoothReader.setOnAtrAvailableListener(com.acs.bluetooth.BluetoothReader$OnAtrAvailableListener)' on a null object reference
at de.donmanfred.BluetoothReaderWrapper.setOnAtrAvailableListener(BluetoothReaderWrapper.java:229)
at de.donmanfred.BluetoothReaderWrapper.setup(BluetoothReaderWrapper.java:84)
at b4a.example.main._reader_onreaderdetection(main.java:676)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:735)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:357)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:260)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
I am testing my ACR1255U-J1-010596 using Don's example here https://www.b4x.com/android/forum/threads/does-anyone-have-used-acr122u-usb-nfc-reader.38217/
Only change made to code is device's MAC address and any attempt to run gives the error below:
Return
(MyMap) {Address=50:F1:4A:EC:0C:99, Bondstate=10, Device=50:F1:4A:EC:0C:99, Name=ACR1255U-J1-010596, ToString=50:F1:4A:EC:0C:99}
** Activity (main) Resume **
Reader_updateConnectionState(1, Connecting)
onConnectionStateChange():0/2
lib:Raising.. reader_updateconnectionstate()
Reader_updateConnectionState(2, Connected)
onReaderDetection()
lib:Raising.. 3 reader_onreaderdetection()
Reader_onReaderDetection()
Error occurred on line: 58 (Main)
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.acs.bluetooth.BluetoothReader.setOnAtrAvailableListener(com.acs.bluetooth.BluetoothReader$OnAtrAvailableListener)' on a null object reference
at de.donmanfred.BluetoothReaderWrapper.setOnAtrAvailableListener(BluetoothReaderWrapper.java:229)
at de.donmanfred.BluetoothReaderWrapper.setup(BluetoothReaderWrapper.java:84)
at b4a.example.main._reader_onreaderdetection(main.java:676)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:735)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:357)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:260)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)