Buffer Protocol Required #2451
Unanswered
OPSLeoGong
asked this question in
Q&A
Replies: 2 comments 2 replies
-
|
Hello, No UARTDevice in my inventory, so just trying to help. The definition of buf is OK. buf = bytearray()So the problem in: def cam_read():
while True:
data = cam.read()
if data:
buf.extend(data)
while parse_one():
pass
print(best_x, best_y)maybe in the As a quick fix you could try: buf.extend(bytes(data))But always first print Bert |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
No data was received. Ah, did you place the print type(data) BEFORE the I was to strict in my statement. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I was just trying to communicate with some 3rd party sensors and i was doing byte conversion and tried to put that in an async def. However, it keeps saying this:
And here is the main code:
Please can someone help I dont know how to fix this
Beta Was this translation helpful? Give feedback.
All reactions