uart.read(10) # read 10 characters, returns a bytes object uart.read() # read all available characters
uart.readline() # read a line
uart.readinto(buf) # read and store into the given buffer
uart.write('abc') # write the 3 characters
You are right, I tried to use the uart.read() function.
I found that the underlying logic of the uart.readline() function is to determine the carriage return character, so when used in conjunction with the serial screen command the last bit of my command is not a carriage return character, so I cannot receive the data in its entirety. I can use uart.read() and then specify the number of characters.