RF24 Packed Manager
Hey, a while ago I bought 3 RF24 modules because I wanted the data from my Solarstation at my House. The Solarstation is about 200m away and the RF24 Modules can handle a distance of up to 800m, so these modules are perfect for my project. I wrote some code for two Arduinos, the first one asks for the battery voltage and the second one sends the voltage as a float value back. Now the trouble starts: I wanted to add a security station to my little project. The security system should have a motion detector and when it detects a person it should send an INT value. So now the problem is that the first Arduino, which sends "hey, give me the battery voltage", is always listening for a FLOAT value and now the security system sends an INT, e.g. '1'. Because of this I needed to write a communication protocol between these RF24 modules, the protocol should tell the receiver which type of value is incoming so the receiver can act correctly. You can download the Arduino sketch from my Github repository. The sketch is very simple to use, just uncomment Receive or Transmit to tell the Arduino board which function it has to call. After you have understood the code you can easily pull the library into your own code and you will never get in trouble, because now you always know which data type is incoming. You have a question let me know it I glad to help you :).