Sep-14-2019, 10:45 PM
Hello...
I am attempting to use a Python3 library function that requires a binary parameter (bytes or bytearray).
When I submit a parameter such as b"7" the function operates properly.
But, I need it to accept an arbitrary 8-bit integer that I create by shifting up "one" bits.
I have tried several different conversion schemes, but cannot find one that works... Can you help?
73,
Garitron
I am attempting to use a Python3 library function that requires a binary parameter (bytes or bytearray).
When I submit a parameter such as b"7" the function operates properly.
But, I need it to accept an arbitrary 8-bit integer that I create by shifting up "one" bits.
I have tried several different conversion schemes, but cannot find one that works... Can you help?
73,
Garitron