For you, first, I have to replace my old code :
if (!mesh.write(&datasReponse, 'M', sizeof(datasReponse))) {
if ( ! mesh.checkConnection() ) {
Serial.print("Renewing Address");
mesh.renewAddress();
} else {
Serial.println("Send fail, Test OK");
}
} else {
Serial.print(" Send OK: "); Serial.println(displayTimer);}
With this new code ? :
if (!mesh.write(&datasReponse, 'M', sizeof(datasReponse))) {
Serial.print("Renewing Address");
mesh.renewAddress();if ( ! mesh.checkConnection() ) {
} else {
Serial.println("Send fail, Test OK");
}
} else {
Serial.print(" Send OK: "); Serial.println(displayTimer);}