I know that there has been a lot of discussion on this, but I still have a question. I am trying to transfer hex values through pyserial to my device using pyserial
command="\x89\x45\x56" ser.write(command)
However, I keep getting the string argument without encoding. error message string argument without encoding. Does anyone know how to solve this?
source share