Open AB-informatica-service opened 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.
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);
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.