Hi everybody,
I have an issue I hope you can help me, I just implemented ebeacon parser in B4A without issues, its works perfectly.
now I want to implement in B4I and I have an issue, I received log with error:
Application_Start
Application_Active
Error occurred on line: 88 (BeaconParser)
Out of bounds. Index=0 Length=0
Stack Trace: (
CoreFoundation <redacted> + 152
libobjc.A.dylib objc_exception_throw + 38
CoreFoundation <redacted> + 0
BLE Example -[B4IArray getByteFast:] + 238
BLE Example -[b4i_beaconparser _parseeddystone::::] + 1112
CoreFoundation <redacted> + 68
CoreFoundation <redacted> + 300
BLE Example +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1786
BLE Example -[B4IShell runMethod:] + 574
BLE Example -[B4IShell raiseEventImpl:method:args::] + 2212
BLE Example -[B4IShellBI raiseEvent:eventarams:] + 1442
BLE Example +[B4IDebug delegate:::] + 52
BLE Example -[b4i_beaconparser _parse:::] + 524
BLE Example -[b4i_main _manager_devicefound::::] + 904
CoreFoundation <redacted> + 68
CoreFoundation <redacted> + 300
BLE Example +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1786
BLE Example -[B4IShell runMethod:] + 574
BLE Example -[B4IShell raiseEventImpl:method:args::] + 2212
BLE Example -[B4IShellBI raiseEvent:eventarams:] + 1442
BLE Example +[B4IObjectWrapper raiseEvent:::] + 220
BLE Example -[BleDelegate centralManager:didDiscoverPeripheral:advertisementData:RSSI:] + 508
CoreBluetooth <redacted> + 906
CoreBluetooth <redacted> + 638
CoreBluetooth <redacted> + 84
CoreBluetooth <redacted> + 50
libdispatch.dylib <redacted> + 10
libdispatch.dylib <redacted> + 22
libdispatch.dylib <redacted> + 854
libdispatch.dylib <redacted> + 886
libdispatch.dylib _dispatch_main_queue_callback_4CF + 596
CoreFoundation <redacted> + 8
CoreFoundation <redacted> + 848
CoreFoundation CFRunLoopRunSpecific + 470
CoreFoundation CFRunLoopRunInMode + 104
GraphicsServices GSEventRunModal + 80
UIKit UIApplicationMain + 150
BLE Example main + 108
libdyld.dylib <redacted> + 2
)
The ibeacon is a ibeacon not an eddystone, I have B4I version 3.60 and the BLE 2.0 thats includes this version, I used the same ibeacons that used in B4A.
Later I tested uncommenting this lines:
For Each key As Int In AdvertisingData.Keys
Log($"${key}= ${bc.HexFromBytes(AdvertisingData.Get(key))}"$)
Next
And I get this:
Cannot parse: kCBAdvDataServiceData
Thanks a lot for your help.
Christian
I have an issue I hope you can help me, I just implemented ebeacon parser in B4A without issues, its works perfectly.
now I want to implement in B4I and I have an issue, I received log with error:
Application_Start
Application_Active
Error occurred on line: 88 (BeaconParser)
Out of bounds. Index=0 Length=0
Stack Trace: (
CoreFoundation <redacted> + 152
libobjc.A.dylib objc_exception_throw + 38
CoreFoundation <redacted> + 0
BLE Example -[B4IArray getByteFast:] + 238
BLE Example -[b4i_beaconparser _parseeddystone::::] + 1112
CoreFoundation <redacted> + 68
CoreFoundation <redacted> + 300
BLE Example +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1786
BLE Example -[B4IShell runMethod:] + 574
BLE Example -[B4IShell raiseEventImpl:method:args::] + 2212
BLE Example -[B4IShellBI raiseEvent:eventarams:] + 1442
BLE Example +[B4IDebug delegate:::] + 52
BLE Example -[b4i_beaconparser _parse:::] + 524
BLE Example -[b4i_main _manager_devicefound::::] + 904
CoreFoundation <redacted> + 68
CoreFoundation <redacted> + 300
BLE Example +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1786
BLE Example -[B4IShell runMethod:] + 574
BLE Example -[B4IShell raiseEventImpl:method:args::] + 2212
BLE Example -[B4IShellBI raiseEvent:eventarams:] + 1442
BLE Example +[B4IObjectWrapper raiseEvent:::] + 220
BLE Example -[BleDelegate centralManager:didDiscoverPeripheral:advertisementData:RSSI:] + 508
CoreBluetooth <redacted> + 906
CoreBluetooth <redacted> + 638
CoreBluetooth <redacted> + 84
CoreBluetooth <redacted> + 50
libdispatch.dylib <redacted> + 10
libdispatch.dylib <redacted> + 22
libdispatch.dylib <redacted> + 854
libdispatch.dylib <redacted> + 886
libdispatch.dylib _dispatch_main_queue_callback_4CF + 596
CoreFoundation <redacted> + 8
CoreFoundation <redacted> + 848
CoreFoundation CFRunLoopRunSpecific + 470
CoreFoundation CFRunLoopRunInMode + 104
GraphicsServices GSEventRunModal + 80
UIKit UIApplicationMain + 150
BLE Example main + 108
libdyld.dylib <redacted> + 2
)
The ibeacon is a ibeacon not an eddystone, I have B4I version 3.60 and the BLE 2.0 thats includes this version, I used the same ibeacons that used in B4A.
Later I tested uncommenting this lines:
For Each key As Int In AdvertisingData.Keys
Log($"${key}= ${bc.HexFromBytes(AdvertisingData.Get(key))}"$)
Next
And I get this:
Cannot parse: kCBAdvDataServiceData
Thanks a lot for your help.
Christian