RF24 Library... writing to more than one pipe/address at a time


if take ping_pair example (in examples section of rf24 library), have set-up

code: [select]

const uint64_t pipes[2] = { 0xf0f0f0f0e1ll, 0xf0f0f0f0d2ll };

....

  if ( role == role_ping_out )
  {
    radio.openwritingpipe(pipes[0]);
    radio.openreadingpipe(1,pipes[1]);
  }
  else
  {
    radio.openwritingpipe(pipes[1]);
    radio.openreadingpipe(1,pipes[0]);
  }


so 2 way structure using 1 pipe address data in 1 direction, , other pipe address data in other direction

all , works treat....

but have need introduce third node network
my third node need speak both of other nodes, doesnt need listen, talk

that means, end following on third node :

code: [select]

radio.openwritingpipe(pipes[0]);
radio.stoplistening();
radio.write( payload, sizeof(payload) );

...

radio.openwritingpipe(pipes[1]);
radio.stoplistening();
radio.write( payload, sizeof(payload) );


but have tried , doesnt seem work, think confusing module

what need switch between pipe adresses ?
time not issue, sending every 4 seconds or so

thanks in advance
bob

i have tried lots of different combinations, keep seeing 2 payloads on pipe0, , 2 on pipe1

i have updated rf24 library i'm using latest update

its no biggy, wouldnt mind knowing why this , how stop it


Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > RF24 Library... writing to more than one pipe/address at a time


arduino

Comments