Thank you PaulS, ![]()
Here is my latest update of that serialEvent1 thing. It's actually working now, Although I had to totally change my finding end string Procedure.
void serialEvent1(){
char caractere_entrant;
while (Serial1.available()) {
longueur_de_ligne++;
caractere_entrant = (char)Serial1.read();
chaine_entrante += caractere_entrant;
if ((caractere_entrant == '\n')&&(dernier_caractere == '\r')){
Compte_retour++;
if (longueur_de_ligne < 3){chaine_complete = true;}
longueur_de_reponse += longueur_de_ligne
longueur_de_ligne = 0;
}
dernier_caractere=caractere_entrant;
}
}
Now, it's actually looking for a newline that has at most 2 characters, since the AT command has 3 characters minimum, "+OK" in his answer this settle the thing.