You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello.
when using NodeMCU as MCU of NRF24l01+ I'll get this on Serial-Monitor:
PRESS 'T' to begin transmitting to the other node
Got payload 74286
Exception (3):
epc1=0x40202298 epc2=0x00000000 epc3=0x00000000 excvaddr=0x4022f80c depc=0x00000000
So I searched for the problem and founded it : problem is with radio.stopListening(); function.
if u open the RF24.cpp u can see that we have this line inside of stopListening() :
write_register(EN_RXADDR,read_register(EN_RXADDR) | _BV(pgm_read_byte(&child_pipe_enable[0]))); // Enable RX on pipe0
where child_pipe_enable[0] is ERX_P0 and ERX_P0 is defined as 0 in nRF24L01.h library.
so I simply changed this line to :
write_register(EN_RXADDR,read_register(EN_RXADDR) | 0); // Enable RX on pipe0
and then no problem :)
But whats wrong with _BV(pgm_read_byte(&child_pipe_enable[0])) ?
The text was updated successfully, but these errors were encountered:
Hello.
when using NodeMCU as MCU of NRF24l01+ I'll get this on Serial-Monitor:
So I searched for the problem and founded it : problem is with radio.stopListening(); function.
if u open the RF24.cpp u can see that we have this line inside of stopListening() :
where child_pipe_enable[0] is ERX_P0 and ERX_P0 is defined as 0 in nRF24L01.h library.
so I simply changed this line to :
and then no problem :)
But whats wrong with _BV(pgm_read_byte(&child_pipe_enable[0])) ?
The text was updated successfully, but these errors were encountered: