Hi !
In my dream of understanding the NRF24L01+ modules and Mirf library I made this discovery.
Who can explain me this :
byte rx_addr[5] = {0xE7, 0xE7, 0xE7, 0xE7, 0xE7};
Mirf.setRADDR(rx_addr);
As seen here :
https://forum.sparkfun.com/viewtopic.php?f=13&t=28409
I tried :
String RADDR[] = {"btn00","btn00","btn00","btn00","btn00","btn00"};
Mirf.setRADDR((byte *)RADDR);
But it's not working.
Thanks for support
Alkerion:
Hi !
In my dream of understanding the NRF24L01+ modules and Mirf library I made this discovery.
Who can explain me this :
byte rx_addr[5] = {0xE7, 0xE7, 0xE7, 0xE7, 0xE7};
Mirf.setRADDR(rx_addr);
As seen here :
Nordic Fob +nRF24L01 module help! - SparkFun Electronics Forum
I tried :
String RADDR[] = {"btn00","btn00","btn00","btn00","btn00","btn00"};
Mirf.setRADDR((byte *)RADDR);
But it's not working.
Thanks for support
The nRF24L01 radio links use a 5 byte address. You are passing the setRADDR() the content of a String Object array. Nothing good will come of this.
Read the Data sheet for Nordic's nRF24L01. If you don't understand your tools there is no way you will construct a working mechanism.
Chuck.
ok,
I got the point.
At first I thought that setting address this way will setup the multiple channels, I was really wrong.
I set the address this way :
Mirf.setRADDR((byte *) "clt00");
I used this code to open all channels as by default there is only 2 open.
Mirf.configRegister(EN_RXADDR, 0x3F); //Activate all channels
BR