Closed
Description
Board
ESP32S2 WROVER
Device Description
Only the board, not pcb attached
Hardware Configuration
Nothing attached
Version
latest master
IDE Name
Arduino IDE
Operating System
Windows 10
Flash frequency
OTA or 80MHz
PSRAM enabled
yes
Upload speed
921600
Description
Hi, I use the latest 2.02 arduino core but I have an issue with the https connect. It work well one-two time, after the connection failed.
If I use the 2.01 version all work well.
The debug show connection failed with -1 error
I tried various option (PSRAM, no PSRAM), and various code configuration but the issue still happaning. My only solution is to downgrade to 2.01. I don't tried the 2.00.
Sketch
WiFiClientSecure client;
client.setInsecure();
if(client.connect(server, 443)) {
client.setTimeout(30);
TelnetStream.println("Connected to server");
client.println("POST /api/measurements HTTP/1.0");
client.println("Host: *******");
client.println("Authorization: Bearer " + String(token));
client.println("Content-length: " + String(parameters.length()));
client.println("Connection: Close");
client.println("Content-Type: application/json;");
client.println();
client.println(parameters);
client.stop();
}
Debug Message
If needed I can get it
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.