Thank you for your answer, you are right, it works with « ok » and « ok2 ». Is there a possibility to send the same data from node00 to node01 and node02 at the same time ? I have tried the code below but it doesn’t work. unsigned long buttonState00 = digitalRead(button00); RF24NetworkHeader header(node01;node02); bool ok = network.write(header, &buttonState00, sizeof(buttonState00)); Basically it's to push a button on node00 and light up a led on node01 and 02 at the same time.
Refer to the example for node0111 (uses if statement) which assigns the value depending on which node it came from. Also, why assign one header for 2 different nodes? Try separating them and assigning a different variable ex: header2020(node01), header2021(node02)
Thanks for this great video, I dont understand a tricky part on line 61 70 and 79 on node00 code. You write: "bool ok" or "bool ok2" what is the difference ? Same question about "header" why sometime it is "header1" header2" or "header7" the number is corresponding to what ?? Thanks you your help
Declared boolean variables "ok" and "ok2" just to distinguish one from the other (but I think it's all the same- can try just using "ok" and see if it works the same). As for header1...2...3 etc... is to keep track where I'm at. You could just declare as just plain "header" if you're not sending or receiving from multiple nodes. Kept it that way to avoid naming confusion. But you can experiment declaring your own variables if you like.
Good demo. Good job.
Thank you for your answer, you are right, it works with « ok » and « ok2 ».
Is there a possibility to send the same data from node00 to node01 and node02 at the same time ? I have tried the code below but it doesn’t work.
unsigned long buttonState00 = digitalRead(button00);
RF24NetworkHeader header(node01;node02);
bool ok = network.write(header, &buttonState00, sizeof(buttonState00));
Basically it's to push a button on node00 and light up a led on node01 and 02 at the same time.
Refer to the example for node0111 (uses if statement) which assigns the value depending on which node it came from. Also, why assign one header for 2 different nodes? Try separating them and assigning a different variable ex: header2020(node01), header2021(node02)
Thank you ! Your advices and your vidéo help me a lot !
i like the concept. this is great idea.
Thanks for this great video, I dont understand a tricky part on line 61 70 and 79 on node00 code. You write: "bool ok" or "bool ok2" what is the difference ? Same question about "header" why sometime it is "header1" header2" or "header7" the number is corresponding to what ?? Thanks you your help
Declared boolean variables "ok" and "ok2" just to distinguish one from the other (but I think it's all the same- can try just using "ok" and see if it works the same). As for header1...2...3 etc... is to keep track where I'm at. You could just declare as just plain "header" if you're not sending or receiving from multiple nodes. Kept it that way to avoid naming confusion. But you can experiment declaring your own variables if you like.
What kind of range say, between rooms?
Not sure if it works well between rooms since I haven't tried it yet. Will get back to you on that.
Not effective thru walls. Maybe try one with the extra antenna?