Problème d'envoi au serveur distance par GPRS

Hello everyone, for more than two weeks I would like to send the data by GSM to a remote server but it is not happening. this returns me +HTTPACTION:1,603,0

here is the code

#include <SoftwareSerial.h>

//SoftwareSerial mySerial(7, 8); //SIM900 Tx & Rx is connected to Arduino #9 & #10
SoftwareSerial mySerial(1,3); //SIM900 Tx & Rx is connected to NodeMCU #Tx & #Rx
//const char *host = "192.168.1.104";

String immatriculation = "AZ1408RB";
int vitesse = 800;

void testPostRequest(String urlencodedToSend){

sendCommand("AT");
ShowSerialData();
sendCommand("AT+CIPSHUT");
ShowSerialData();
delay(500);
sendCommand("AT+SAPBR=0,1");
delay(2000);
ShowSerialData();
sendCommand("AT+SAPBR=3,1,"Contype","GPRS"");
ShowSerialData();
sendCommand("AT+SAPBR=3,1,"APN","internet.mtn.bj"");
ShowSerialData();
sendCommand("AT+SAPBR=1,1");
delay(2000);
ShowSerialData();
sendCommand("AT+HTTPINIT");
delay(1000);
ShowSerialData();
sendCommand("AT+HTTPPARA="CID",1");
ShowSerialData();
mySerial.println("AT+HTTPSSL=0");
ShowSerialData();
delay(1000);

mySerial.println("AT+HTTPSSL=1");
delay(2000);
ShowSerialData();
//String url = "http://" + String(host) + "/testCar.php" ;
//String url = "https://dgl-api.e-gbavou.com/api/test";
String url = "https://dgl-api.e-gbavou.com/api/voitures";
sendCommand(("AT+HTTPPARA="URL","" + url + """).c_str());
ShowSerialData();
sendCommand("AT+HTTPPARA="CONTENT","application/x-www-form-urlencoded"");
ShowSerialData();
sendCommand(("AT+HTTPDATA=" + String(urlencodedToSend.length()) + ",20000").c_str());
delay(6000);
//Envoi des données x-www-form-urlencoded
mySerial.println(urlencodedToSend);
delay(1000);
ShowSerialData();
Serial.println(urlencodedToSend);
delay(1000);
sendCommand("AT+HTTPACTION=1"); // requête POST
delay(10000);
ShowSerialData();
sendCommand("AT+HTTPREAD");
delay(300);
ShowSerialData();
sendCommand("AT+HTTPTERM");
ShowSerialData();
sendCommand("AT+CIPSHUT");
ShowSerialData();
}

void sendCommand(const char* command) {

Serial.print("C: ");
Serial.print(command);
mySerial.println(command);
delay(1000);
}

void ShowSerialData() {

while (mySerial.available())
{
Serial.write(mySerial.read()) ;
//Serial.println( );
}
while (Serial.available())
{
mySerial.write(Serial.read());
Serial.println( );
}
}

void setup() {
int baudRate = 115200;
Serial.begin(baudRate); // Serial monitor
mySerial.begin(baudRate); // GSM module
delay(7000);
}

void loop() {

String urlencodedToSend= "immatriculation=" + immatriculation + "&vitesse=" + vitesse ;
Serial.print("urlencodedToSend: ");
Serial.println(urlencodedToSend);

testPostRequest(urlencodedToSend) ;

}

here is my Serial monitor :

AT+HTTPACTION=1

OK

+HTTPACTION:1,601,0

AT+HTTPREAD

OK

AT+HTTPTERM

OK

Post mis dans la mauvaise section, on parle anglais dans les forums généraux. ➜ déplacé vers le forum francophone.

Merci de prendre en compte les recommandations listées dans "Les bonnes pratiques du Forum Francophone".

Bonsoir @vincentluc

ton message est bancal

le titre en français, ce qui lui a valu un déplacement vers le forum francophone effectué par @pert malgré le fait que les premières lignes soient en anglais

maintenant que tu es sur le forum francophone exprimes toi en français et prends le temps de consulter les 'Bonnes Pratiques du Forum Francophone' pour savoir comment bien poster les code

(tel que ton code est présenté il n'aura pas beaucoup de lecteurs)

Post en doublon

Le texte était en français au moment du déplacement:

image

OK Pert , je vois le mic mac auquel l'auteur du fil s'est prêté

Merci pour ton 'ménage' quotidien :+1:

Quand tu écris régulièrement que tu as déplacé le fil.... nombreux sont ceux qui confondent avec 'déplacer', la langue française se perd dans l'hexagone... :roll_eyes: