TinyGsm connect failed

hello,
I use ESP32-S3 with e-sim and as operator I use "truephone".

I'm using the TinyGsm library to connect with GSM but I'm having connection problems:
to the call http.get(host, path); it says "Connection Failed" Error -1

The same code with wifi and ethernet works perfectly.

I have somewhere that it is better to use ArduinoHttpClient library and NOT HttpClient, of course I use the second one :unamused:
But is it really so? Would it be enough to change the library?

Thank you

I moved your topic to an appropriate forum category @abinformatica.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

1 Like

Add is the eSIM properly provisioned on that network?

Are you sure that you have "truephone" service at your location?

Probably suggests that the problem is with the cellular connection.

Have you done basic connectivity tests:

  1. Can you "see" the network?

  2. Can you register to the network?

  3. Can you register to the APN?

  4. Can you establish a data session?

The link works because I have an SSL connection for MQTT.

I receive an apputno message from MQTT that closes this communication and opens an HTTP one to download Json files.

Does that include shutting down the cellular link?

I close the MQTT connection with mqtt.disconnect();

And does that include shutting down the cellular link?

Excuse me for late answer.

I only close the MQTT connection not the GSM one.

To understand, if I ask for the IP, it returns it to me. So it's connected.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.