RuntimeError: received bad data #2324
Unanswered
IrwinWuBin
asked this question in
Q&A
Replies: 2 comments
-
|
This happens when it gets an invalid combination of values. Perhaps there is another device at the exhibition broadcasting in a similar way? Since it happens only after a few minutes, you could catch the error and choose to handle or ignore it. This way, your program won't stop. try:
data = hub.ble.observe()
except RuntimeError:
# Got some invalid data. Never mind.
pass |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thanks for your help and solution! |
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.
-
I have 2 SPIKE models use BLE to remote control. There is always no problems in home and school. But when I run these models in exhibition. After some minutes, 1 SPIKE hub will stop the program. And show the message: RuntimeError: received bad data.
Can I do something to solve this problem?
Tks
Beta Was this translation helpful? Give feedback.
All reactions