So, it's
Looking further in your code, you convert this string to list
and you pass StartByte=5 and length=1. In your code you decrease StartByte by 1. So you want 1 element at index 4 and that is
str
why do you keep working with str
, when you can work with original bytearay or list? The conversion to str was on your insistence in order to replicate the str representation of data in str representation of Message.Looking further in your code, you convert this string to list
and you pass StartByte=5 and length=1. In your code you decrease StartByte by 1. So you want 1 element at index 4 and that is
a9
. What do you want/expect to get?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs