vshymanskyy / TinyGSM

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

Unable to connect to server where URL is longer than 50 characters #619

Open ibrcic opened 2 years ago

ibrcic commented 2 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) [ ] Question or request for help

What are you working with?

Modem: SIMCOM SIM800C Main processor board: ESP32, TTGO T-Call TinyGSM version: 0.11.5 Code: (Using an example/HttpsClient)

Scenario, steps to reproduce

I have a very strange problem while trying to connect to HTTPS server. If I try to connect to server for which URL has more than about 50 characters, I get this error:

AT+CIPSTART=0,"TCP","europe-west1-sea-temperature-fd113.cloudfunctions.net",443
+CME ERROR: operation not allowed

As you can see, AT command CIPSTART returns CME ERROR: operation not allowed, as if there is something wrong with the command. If I try to use shorter URL, such as google.com everything works as expected.

AT+CIPSTART=0,"TCP","google.com",443
OK

Expected result

Response OK for AT Command CIPSTART

Debug and AT command log

The important bit is already pasted above, but I can provide whole log if needed. I didn't change anything else from HttpsExample in the library examples, just set up my modem and URL.