NRF24 error with opening reading and writing pipe


I am trying to make a reciver and a transmitter with a arduino nano and a NRF24. But I get this error when I try to openreadingpipe:
no matching function for call to 'RF24::openReadingPipe(byte [6])'

My code:

RF24 radio(9, 10);

byte addresses[][6] = {"00001","00002"};

setup() {
  radio.openReadingPipe(addresses[1]); // 00002
  radio.openWritingPipe(1, addresses[0]); // 00001

you mixed up reading and writing,

reading requires two parameters (which pipe# to open, 0-5 and the 40-bit address of the pipe to open) whereas writing only requires the 40-bit address of the pipe to open

Thank you!

have fun!

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.