TinyGSM icon indicating copy to clipboard operation
TinyGSM copied to clipboard

HttpClient

Open AB-informatica-service opened this issue 2 years ago • 0 comments

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.

AB-informatica-service avatar Jun 11 '23 13:06 AB-informatica-service