Closed bprovvis closed 3 years ago
I saw this once when my module's power supply was garbage. How's yours?
radio.setAutoAck(false);
write()
will always return true because you're telling the master to not wait for an acknowledgement from the slave node. Therefore, the only thing left to report is if the master attempted to send anything (which will always be true). Read the docs about setAutoAck()
.
hello sorry for the delay I had some problems i try radio.setAutoAck(true); and is all OK thanks
hello my project
raspberry MASTER ----->Arduino uno SLAVE
It works fine but in raspberry Radio.write return always true even when Arduino SLAVE is turned off
my code if(radio.begin() ) { printf("Begin() OK \n") ; } radio.setDataRate(RF24_250KBPS); radio.setPALevel(RF24_PA_MIN ); radio.setAutoAck(false); radio.setRetries(15,15); radio.openWritingPipe(pipes_for); radio.openReadingPipe(1,pipes_for);
// First, stop listening so we can talk. radio.stopListening(); bool ok = radio.write( &messaggio_to_slave, sizeof(messaggio_to_slave) );
else { cont_fail++;
thanks for any help