Parzival

New Member
I am trying to connect to an iBeacon via the app and I am using the trial version of b4a.
my problems are as follows:
1. The BeaconParser function is unavailable and the readRemoteRssi function is causing an error message = Cannot assign void value.
2. My BleManager2_object.Scan2(Null,True) is not working as it causes the error

--------- beginning of crash
--------- beginning of system
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Error occurred on line: 34 (Starter)
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.keywords.Common.CallSubDebug(Common.java:1026)
at b4a.example.main._activity_create(main.java:418)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:733)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:355)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at b4a.example.main.afterFirstLayout(main.java:104)
at b4a.example.main.access$000(main.java:17)
at b4a.example.main$WaitForLayout.run(main.java:82)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6626)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at anywheresoftware.b4a.debug.Debug.CallSub4(Debug.java:333)
at anywheresoftware.b4a.debug.Debug.CallSubNew(Debug.java:279)
... 19 more
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.debug.Debug.CallSub4(Debug.java:315)
... 20 more
Caused by: java.lang.RuntimeException: Error starting scan.
at anywheresoftware.b4a.objects.BleManager2.Scan2(BleManager2.java:142)
at b4a.example.starter._scan(starter.java:165)
... 22 more

3. Also, I am unable to find a function that reads the UID of the beacon and stores it in a string variable. GetCharacteristicData and ReadData and ReadData2 are not working.

Can anyone please help with these three doubts?
 
Top