Closed bgondell closed 4 years ago
The HTTPClient that is part of the ESP32 core is only for WiFi connections using the ESP's WiFiClient It don't think it can be used for any other connection. You have to use the ArduinoHttpClient or read and write the headers and other parts of the HTTP yourself. Sorry!
The HTTPClient that is part of the ESP32 core is only for WiFi connections using the ESP's WiFiClient It don't think it can be used for any other connection. You have to use the ArduinoHttpClient or read and write the headers and other parts of the HTTP yourself. Sorry!
Hi Sara, thanks for your repply. I checked again the sketch and found an error. Now it is transmitting ok without WiFi.
Summary: Code works fine on WiFi, but on GPRS it crash. Given examples works fine also.
Note: First versions of code used ArduinoHTTPClient.h, which actually worked on Wifi/GPRS, but entire code was very different (not only the part on using Wifi or GPRS). Then I've changed to HTTPClient.h because code had others problems related to data, not communication itself.
[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: SIM800L Main processor board: ESP32 DevKit v1 - ESP core 1.0.4 TinyGSM version: 0.10.5 (latest on Library Manager) Code: < related code because full code has 900 lines >
The last line (line 234) is when ESP32 Crash.
Expected result - This is what happens if use WIFI : Working Fine
Actual result : This is what happens if use GPRS: (xQueueGenericReceive)- assert failed!
Exception Decoder Tool:
Debug and AT command log :