Android Question MsgboxAsync with Serial object event

GaNdAlF89

Active Member
Licensed User
Longtime User
Hi to all!
I need to connect to a bluetooth printer with Serial library, and I need a MsgboxAsync inside the "BTSerialPrinter_Connected (Success as Boolean)" event, when Success=False. How can I do to make "As Resumable" the _Connected event? Thank you.

Current code:
B4X:
Sub BTPrinterConnect
    BTSerialPrinter.Connect(params...)
End Sub

Sub BTSerialPrinter_Connected (Success As Boolean)
    If Success = False Then
        MsgboxAsync("Connecting error...","Attention")
        Wait For Msgbox_Result (res As Int)
        'etc
End Sub
 

GaNdAlF89

Active Member
Licensed User
Longtime User
Thanks, now I understood the logic.
Sorry for misunderstanding.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…