Using B4I, I am able to detect a device using its name, while with B4A I don't see the device (maybe it's there by there is no easy way for me to identify it)
Also with B4I you can see the device UUID, while I don't see the same info with B4A
In the previous example we broadcasted a single byte as part of the advertising data: https://www.b4x.com/android/forum/threads/ble-hm-10-module-broadcasting-a-single-byte.65785/ In this example the Android or iOS device (only one at a time) will connect to the BLE peripheral and read and write...
The underlying APIs are completely different so the output is different. Don't try to extract anything from this string.
B4X:
For Each Key As Int In AdvertisingData.Keys
Dim b() As Byte = AdvertisingData.Get(Key)
Log(Key & ": " & BytesToString(b, 0, b.Length, "utf8")) 'not safe. can throw an exception
Log(Key & ": " & bc.HexFromBytes(b)) 'safe
Next
Please see the output that I am getting. That's why I am unable to use the name properly.
The first section of the file outputted using B4A, the second section is using B4I.
The device I am looking for is "WWA1 BLE"