Replies: 2 comments 9 replies
-
Before calling the singleton I have been issuing this statement: Seems to work. I think this has been changed to `e0.config(timeout_ms= xx)' is the latest releases. |
Beta Was this translation helpful? Give feedback.
-
If I understand your use case correctly, you can also use the You may also be interested in exploring the Another approach is asyncio, which is really useful when handling multiple IO connections. I recommend exploring this if you think you will be doing more of this kind of thing. There is a learning curve, but the excellent resources from Peter Hinch help a lot, including Peter's And finally, the docs for the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've currently implemented an ESPNow irecv() similar to the form in Glenn's discussion:
I'm using the default timeout which is 5mins.
However, now I need to iterate with an MQTT message check.
I could simply change the timeout to something much quicker, but then I noticed the following code reference in Glenn's discussion:
I'm not sure how this relates to irecv(); it mentions "timeout", but there is none shown. Are you supposed to call irecv(timeout) first to set the timeout, then why not just use irecv() in a loop. Or does simply reading messages [e.g. e = espnow.ESPNow(); e.active(True)] in some timeout loop work; but no timeout loop is shown in the example.
How is the simple message read supposed to be used?
Thanks MM
Beta Was this translation helpful? Give feedback.
All reactions