B4J Question RS 232

Robert_Poland

Member
Licensed User
Hello,
How to start
I would like to do so that the text in the text field is written
Send to port rs 232.
Need an example
thx
 

GMan

Well-Known Member
Licensed User
Longtime User
Czeszc ;-)

i am using this code for a Send-Button

B4X:
Private Sub btnSend_Action
    If txtInput.Text.Length > 0 Then
        LogMessage("", txtInput.Text)
        astream.Write(txtInput.Text.GetBytes("UTF8"))
        txtInput.Text = ""
    End If
End Sub

Do Wizenia ;-)
 
Upvote 0
Top