-
Notifications
You must be signed in to change notification settings - Fork 7.6k
WifiClientSecure missing peek() method! #1146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This looks like an issue with mbedTLS |
|
The |
try #1214 |
Hi guys, I've implemented something here: https://github.com/copercini/arduino-esp32/tree/master/libraries/WiFiClientSecure/src but I don't have a server with SSL for test if it's working with the update library |
Now it has =) #1310 |
P
Hardware:
Board: ESP32 Dev Module
Core Installation/update date: 11/jul/2017
IDE name: Arduino IDE
Flash Frequency: 40Mhz
Upload Speed: 115200
Description:
The WifiClientSecure class is missing the peek() method, so the peek() from the parent class (WifiClient) is called instead.
The problem with this is that if you are using WifiClientSecure with the Update library to do OTA updates it will fail with a "Invalid Magic Byte" error when Update tries to read the stream and do a peek() at the first magic byte. Likely because the byte isn't being decrypted.
This means that you currently cannot do an OTA update over HTTPS/SSL. :-(
The text was updated successfully, but these errors were encountered: