Oct-30-2020, 04:25 AM
Are you trying to send string (ascii) representations or are you trying to send byte values?
To send a ten, do you want to send a numeric 10, or an ascii "1" followed by an ascii "0"?
The "output" you show above is a bytes object (so numeric), while you have hex() calls all over your code which is creating strings.
To send a ten, do you want to send a numeric 10, or an ascii "1" followed by an ascii "0"?
The "output" you show above is a bytes object (so numeric), while you have hex() calls all over your code which is creating strings.