Skip to content

client.write() is not work with WiFiClientSecure #3601

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

Closed
Vladimir-Kondratiev opened this issue Sep 12, 2017 · 1 comment
Closed

client.write() is not work with WiFiClientSecure #3601

Vladimir-Kondratiev opened this issue Sep 12, 2017 · 1 comment

Comments

@Vladimir-Kondratiev
Copy link

esp8266 last git version 2017_09_12.
Arduino sketch is attached.

Function client.write(webFile) for file upload https://github.com/esp8266/Arduino/issues/1853 is not work with WiFiClientSecure:
///
error: no matching function for call to 'WiFiClientSecure::write(fs::File&)'
client.write(webFile);
///
ESP8266HUZZAN_8421.zip

@earlephilhower
Copy link
Collaborator

This was fixed a while back. Both BearSSL and axTLS clients have write(Stream) methods, which can take File objects since a File inherits from a Stream.

As a test I built the attached .ino without any errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants