In Python I'm able to concatenate both hex and ascii into a single string, then send it to the device I'm trying to control
_startTransmit = "\x02"
_channel = 7
command_string = _startTransmit + "PGM:" + str(_channel) + ";"
try:
written = conn.write(command_string.encode('utf-8'))
This SO Answer makes it appear building a byte array is the only way to do it in C#
So, it appears there is no similar way to concatenate hex and ascii in C# as there is in Python. Am I correct?