Answers for "VB.NET open Com port"

VBA
0

VB.NET open Com port

Sub SendSerialData(ByVal data As String)
    ' Send strings to a serial port.
    Using com1 As IO.Ports.SerialPort = 
            My.Computer.Ports.OpenSerialPort("COM1")
        com1.WriteLine(data)
    End Using
End Sub
Posted by: Guest on April-21-2022

Code answers related to "VBA"

Browse Popular Code Answers by Language