Jump to content
43oh

hawwwran

Members
  • Content Count

    29
  • Joined

  • Last visited

Posts posted by hawwwran

  1. Ok, so you are saying what I thought, that this approach would work? Ok, I'll use it. Thank you

    const uint8_t rxaddr[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0x01 };
    .
    .
    .
    for(uint8_t i=0x01; i<0xff; i++)
    {
      txaddr[4]=i
      radio.setTXaddress(txaddr);
    }
    .
    .
    .

    Still would be nice if someone would describe how the addressing works.

  2. Hello,

    I have a small problem with the library. I need to understand how radio.setRXaddress(); works. I mean, I don't understand, why the address in examples is { 0xDE, 0xAD, 0xBE, 0xEF, 0x01 }

     

    What I need is loop going through some number of addresses and send message to each of them.

     

    For example:

    I have 100 of devices waiting for "start" message. I want the main unit to call each of the devices separately and send the "start" command. I need to know how to incrementaly set the address and call the devices. And of course those devices would have set the RX address permanently on exact address. But my point is, I don't know how to work with the addresses.

     

    could someone show me example code of loop going through some number (256) or all possible addresses?

     

    what is the address structure, are all five bytes arbitrary or are some of them fixed?

     

    Thank you

     

×
×
  • Create New...