vshymanskyy / TinyGSM

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

Cannot execute apis on M2M sim, timeout occuring #445

Open ajinkyaw opened 4 years ago

ajinkyaw commented 4 years ago

[x] I have read the Troubleshooting section of the ReadMe

What type of issues is this?

[ ] Request to support a new module

[ ] Bug or problem compiling the library [x] Bug or issue with library functionality (ie, sending data over TCP/IP) [x] Question or request for help

What are you working with?

Modem: Sim800C Main processor board: ESP32 TinyGSM version: (0.10.8) Code:

Scenario, steps to reproduce

I am using Sim800c and esp32 to send data using https requests. In sim800c i am using m2m sim. I get connected to the network successfully but i am not be able to execute apis. I am getting -3 Timeout in the response. Also to make sure these Apis are whitelisted and executing these same on mobile are successfully executed. I have set APN correctly and other settings too.

Please guide me resolving this issue.

Expected result

Api Execution with 200 response.

Actual result

-3 timeout.

SRGDamia1 commented 4 years ago

Are you absolutely certain that your module can do HTTPS? There are several issues here related to SSL on the SIM800, but, in short, there are some variants and firmware versions that definitely do not support it any SSL, and even on the ones that supposedly do, it often doesn't work.

tkralj commented 3 years ago

Hi there. In my experience, every time i got -3 error it was due to my firewall or web server. In essence -3 means that your request couldn't reach target server and it can happen for various reasons. For me it was my firewall, which after some time, black listed breakout IP of my SIM provider.

Hope I helped a little. Tomislav