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:
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