serial.write() method in pyserial seems to only send string data. I have arrays like [0xc0,0x04,0x00] and want to be able to send/receive them via the serial port? Are there any
An alternative method, without using the array module:
array
def a2s(arr): """ Array of integer byte values --> binary string """ return ''.join(chr(b) for b in arr)