Android Question B4A - bluetooth - ESP32. Crash application to Serial1.GetPairedDevices

prada

New Member
Licensed User
Longtime User
Dim Serial1 As Serial

.........

Sub Button1_Click
Dim pairedDevices As Map
pairedDevices = Serial1.GetPairedDevices ; <-this, application crash, and close. Not have log, or error result for debug.
if pairedDevices.Size > 0 then

End If
....

End Sub

Bluetooth on the phone is activate and paired.
 
Last edited:

f0raster0

Well-Known Member
Licensed User
Longtime User
Dim Serial1 As Serial

.........

Sub Button1_Click
Dim pairedDevices As Map
pairedDevices = Serial1.GetPairedDevices ; <-this, application crash, and close. Not have log, or error result for debug.
if pairedDevices.Size > 0 then

End If
....

End Sub

Bluetooth on the phone is activate and paired.
Which ESP are you using?

Usually, I don't pair BLE them:

Did you try with this example:
 
Upvote 0

prada

New Member
Licensed User
Longtime User
Which ESP are you using?

Usually, I don't pair BLE them:

Did you try with this example:
ESP WROOM 32. Board is WEMOS D1 R32 Error is in attach. I try and your exemple with test permision, but i dont now witch is rp variable. "
For Each per As String In Permissions
' rp.CheckAndRequest(per)
' Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean) "
 

Attachments

  • eroareGetPairedDevices.png
    eroareGetPairedDevices.png
    90 KB · Views: 11
Upvote 0

f0raster0

Well-Known Member
Licensed User
Longtime User
I try and your exemple with test permision, but i dont now witch is rp variable.
better if you try the example (your pic is showing that your continue using your code)
run the example,and post the log once it's conneted
 
Upvote 0
Top