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

Sim7000E http(s) calls and MQTT not working #656

Open RosiersRobin opened 2 years ago

RosiersRobin 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 [ ] Bug or issue with library functionality (ie, sending data over TCP/IP) [ ] Question or request for help

What are you working with?

Modem: Sim7000E Main processor board: ESP32 TinyGSM version: 0.11.5 Code: Demo code mqtt client combined with after modem init an API call with the example http client code

API call;

TinyGsmClientSecure c(modem);
HttpClient http(c, "domain.com", 443);
http.get("/api/v1/set-cellular-mode?device=" + myDevice+ "&mode=1");
http.stop();

Scenario, steps to reproduce

I want to be able to make an API call to a https endpoint (https://example.com/api-endpoint) and this works, but when I try to connect to the MQTT broker, it fails to connect no mater what I do.

Expected result

Being able to make API calls and connect to MQTT with no problem. When I do the call and then even restart the modem, it still doesn't work. Needs a full reboot of the CPU.

Actual result

image