marco.canta Active Member Licensed User Longtime User Oct 4, 2013 #1 Hello, I need to receive RS232 data. When you receive them and how to receive it I have to decide. I do this in VB6 with this routine. ------------------------------------------------- Private Sub tmrAvvio_Timer() Dim ValRX as String RxData: Do DoEvents Loop Until MSComm1.InBufferCount >= 1 ValRX = MSComm1.Input If ValRX = Chr$(173) Then GoTo RxATTESA GoTo Pollig end sub Private Sub RxATTESA() ... ... end sub ------------------------------------------------- How can I do it in Basic4Android? Thank you. Marco
Hello, I need to receive RS232 data. When you receive them and how to receive it I have to decide. I do this in VB6 with this routine. ------------------------------------------------- Private Sub tmrAvvio_Timer() Dim ValRX as String RxData: Do DoEvents Loop Until MSComm1.InBufferCount >= 1 ValRX = MSComm1.Input If ValRX = Chr$(173) Then GoTo RxATTESA GoTo Pollig end sub Private Sub RxATTESA() ... ... end sub ------------------------------------------------- How can I do it in Basic4Android? Thank you. Marco
Erel B4X founder Staff member Licensed User Longtime User Oct 6, 2013 #2 You will need to use AsyncStreams instead: http://www.b4x.com/search?query=AsyncStreams+Tutorial Upvote 0