locked
Send Information Over Ethernet RRS feed

  • Question

  • Hi everyone !

    first , i'm sorry for my bad EN Language ...

    i use Visual Basic 2013 and my work is a communication between PC And a secondary hardware

    i'm using the RF Module For Sendig a string over USB Port and using the ethernet port for receiving video from access point

    and now .... i want to merge those function .... send a manual string and receive video over ethernet port

    for example in the folowing code , i send a string using COM Port ( in this case , USB )

    now , i want to do this over ethernet

    Public Sub SendData(ByVal data As String)
            Using com1 As IO.Ports.SerialPort =
                My.Computer.Ports.OpenSerialPort("COM6")
                com1.BaudRate = 9600
                com1.DataBits = 8
                com1.Parity = IO.Ports.Parity.None
                com1.StopBits = IO.Ports.StopBits.One
                com1.WriteLine(data)
                com1.WriteLine(Chr(13))
            End Using
    End Sub

    i'm sorry again for my lang :)

    tnx , bye


    • Edited by hatamiarash7 Monday, May 4, 2015 6:59 PM insert code block
    • Moved by litdev Monday, May 4, 2015 7:58 PM
    Monday, May 4, 2015 6:56 PM

Answers