L
Lou
How do i convert a string to bytes?
I want to send raw bytes out the serial control.
Private Sub Rs232SendData(ByVal cmd As String)
Try
cmd=cmd & vbCrLf
'Convert it to byte data here
?????????????????????????
SerialPort1.Write(byteData)
txtData.AppendText(Now.ToShortTimeString & "->Sent: " & cmd)
Catch ex As System.Exception
MessageBox.Show(ex.Message)
End Try
End Sub
-Lou
I want to send raw bytes out the serial control.
Private Sub Rs232SendData(ByVal cmd As String)
Try
cmd=cmd & vbCrLf
'Convert it to byte data here
?????????????????????????
SerialPort1.Write(byteData)
txtData.AppendText(Now.ToShortTimeString & "->Sent: " & cmd)
Catch ex As System.Exception
MessageBox.Show(ex.Message)
End Try
End Sub
-Lou