I am using the RF24 library (gcopeland fork) for a radio controlled vehicle, and everything is working great. Now I want to try sending some information back from the vehicle to the controller, and it seems that the ack payload is a good way to do that. But unfortunately I can't get it to work at all.
I cut my code down to the simplest possible, and before I try the ack payload it goes like this:
//sender radio.begin(); radio.openWritingPipe( pipe );
//receiver radio.begin(); radio.openReadingPipe( 1, pipe ); radio.startListening();
Then I use radio.write and radio.read to perform a one-way transmission, and it works great.
Now, if I add radio.enableAckPayload() after the radio.begin() to both sides, the receiver never receives any packets. Has anyone else experienced this? Is there something else I need to change as well?
I have tried using writeAckPayload to set the contents of any ack packets that might get sent, but this seems to be irrelevant at this point because the receiver is not even receiving anything to ack in the first place. In any case, acks would still be sent even if I don't use writeAckPayload to fill their content right?