Android Question BLE2 what is this odd logging data ?

Steve-h

Member
Sometimes after calling Conect2 the logging shows additional data after Discovering services and before Connected. Where most times when connecting the additional 12 characters are not shown.

B4X:
*** mainpage: B4XPage_PermissionResult [mainpage]
Discovering services.~l669109505:Connected
sucsess
-66

A similar 12 characters sometimes appear in the log after a ReadData2 or a WriteData call. They only occur if I log something, simply adding a log(“test”) provokes them, with exactly the same code without a Log statement they only occur after Discovering services and then only sometimes.

B4X:
test
test~l869830403:test
test~l069830403:test~l169830403:test
test
test
test
test~l969830403:test~l069830403:test
test~l269830403:test~l369830403:test
test
test
test
test~l969830403:test
test
Disconnected

In this example the log(“test”) is as shown and called once a second from a timer tick, the value passed is “5fff” .
Running the code with the WriteData line commented out remains connected and produces no odd characters after several hours testing.

B4X:
private Sub sendaim(value As String)         'sends pwm drive rate, a string from 0000 to FFFF derrived from target
    Dim send()As Byte=bc.HexToBytes(value)
    manager.WriteData(serveuuid,pwm1uuid,send)   
    Log("test")

End Sub
 
Top