vshymanskyy / TinyGSM

A small Arduino library for GSM modules, that just works
GNU Lesser General Public License v3.0
1.91k stars 708 forks source link

HttpClient #730

Open AB-informatica-service opened 1 year ago

AB-informatica-service commented 1 year ago

I'm having trouble with an Http request:

I followed the HttpClient example and at the http.get(host, path) request I get the error code "-1".

` log_i("Avvio richiesta HTTP"); HttpClient http(*client); int err = http.get(host, path);

     log_i("Richiesta fatta");
     Serial.print("Il codice err è: ");
     Serial.println(err);`

I use a Truphone e-sim with roaming enabled with APN "iot.truphone.com". To date I use MQTT with SSL and everything is working fine so the internet is there and it works.

What could it be? PS: the same code with Wi-Fi and Eth works perfectly.