-
Notifications
You must be signed in to change notification settings - Fork 5
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
Multiple Blocks #6
Comments
Hi. There isn't really such thing as "at the same time" with this protocol. If you meant to say that the example 03 (full measurement test) works, then you can see that the code just makes a for-loop through all possible block numbers (0-255). So, for example, if you want blocks 1, 2, 3, 4, then you should just call An even better example sketch is 04 (continuous measurement test); there, you could just copy-paste the
|
Thank you for the quick reply! that irritated me I'll test tomorrow how I can implement this directly. If I can figure it out, would I paste the adapted code section here for others who are interested? |
What exactly do you mean by "fixed link"? If you scroll to the bottom of the sketch, you can see the definition for Of course, if you find a solution to your problem, you can post it here. |
Any link in the voids returns to
It could also be that I'm just too tired right now :D I'll test tomorrow how I can do it. I'll give you feedback when I'm well rested 👍 |
I forgot to share it yesterday.
|
Yes, this is one way of doing it. I know what you shared is just an example, but since you are reading from the same block, it would be more efficient to request the block once and then process each of the 4 (or less) values. By that I mean, first request the block with And if you make a project where the user can select whatever block+measurement combination they want, it would be nice to implement a feature which detects if multiple values are taken from the same block, so it doesn't request a block multiple times for no reason. |
I actually just gave an example, I use blocks 1, 4, 7 and 115 Currently I'm just working on a code that meets my preferences :D I actually still have one question. Is it only possible to read error codes or can they also be deleted?
|
Yes, if you check the Wiki for "library reference", you will find the Same thing with coding and adaptation. |
Wow, you really thought of everything! Respect! Ich melde mich bald zurück |
Actually I just have a simple request, I would like to query several blocks.
A query of all existing ones works, individual ones also work, but how can I, for example, query 4 blocks at the same time?
I think your work is fantastic!
This is exactly the lib I was looking for ^^
I just haven't figured out how to receive multiple blocks at the same time yet
The text was updated successfully, but these errors were encountered: