-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Q]: How to use .write asynchronously #217
Comments
RF24Network uses Lines 995 to 1000 in 4e804ee
There is no way to write asynchronously from RF24Network/Mesh. Normally, I'd suggest inheriting from RF24Network and overwriting some behavior, but it wouldn't be that easy because
I think your best approach is to separate out some of the logic in your app to different processors. The RP2040 seems well suited for this because it is a dual-core processor. |
I've got some operations that are quite fragile to timing [multi-threading is not possible] and using
network.write
in between causes these operations to fail. I only want to write for sending agnostic data back to my master node, so it receiving this data is non-critical. Can I somehow write asynchronously? - I've noticed that the RF24 has astartWrite
method, could I somehow use this without having to sacrifice the additional benefits [reliable data transfers] that RF24Network gives me?The text was updated successfully, but these errors were encountered: