Android Question java.lang.RuntimeException in BleManager2.WriteData

Filippo

Expert
Licensed User
Longtime User
Hi,

This error is displayed in the Google Console:



This procedure is listed under the name "vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv0":
B4X:
Public Sub GetBluetoothVersion
    Dim strTmp As String = "3v"
    'Log("GetBluetoothVersion=" & strTmp)
    If btService > -1 Then
        btManager.WriteData(ConnectedServices.Get(btService), charId, strTmp.GetBytes("UTF8"))
    End If
End Sub

My question is: what do these two lines of code mean?
at anywheresoftware.b4a.objects.BleManager2.WriteData (BleManager2.java:395)
at anywheresoftware.b4a.objects.BleManager2.WriteData (BleManager2.java:386)
And how can I catch the error?

Thank you very much for your reply.
Filippo
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…