I am writing to a micro via usb using a virtual com port. I can send and receive data 1 byte at a time as shown below...
'Send "PAUSE" command
Dim buffer() As Byte = {80, 65, 85, 83, 69, 13}
mySerialPort.Write(buffer, 0, 1)
mySerialPort.Write(buffer, 1, 2)
mySerialPort.Write(buffer, 2, 3)
mySerialPort.Write(buffer, 3, 4)
mySerialPort.Write(buffer, 4, 5)
mySerialPort.Write(buffer, 5, 6)
This is time consuming and...not practical. I have to believe a printf() equivalent must have been included in vb.net in the process of the billions Microsoft spent making it??? I am not seeing anything online though.\
Note: If I tried to write mySerialPort.Write(buffer, 0, 6) to simply send the whole buffer, the device only sees the first character.
Thanks for the help.
'Send "PAUSE" command
Dim buffer() As Byte = {80, 65, 85, 83, 69, 13}
mySerialPort.Write(buffer, 0, 1)
mySerialPort.Write(buffer, 1, 2)
mySerialPort.Write(buffer, 2, 3)
mySerialPort.Write(buffer, 3, 4)
mySerialPort.Write(buffer, 4, 5)
mySerialPort.Write(buffer, 5, 6)
This is time consuming and...not practical. I have to believe a printf() equivalent must have been included in vb.net in the process of the billions Microsoft spent making it??? I am not seeing anything online though.\
Note: If I tried to write mySerialPort.Write(buffer, 0, 6) to simply send the whole buffer, the device only sees the first character.
Thanks for the help.