OpenSSL API wrapper not available for ports? (IDF 5.x)

RichPiano
Posts: 123
Joined: Mon May 18, 2020 2:51 pm

OpenSSL API wrapper not available for ports? (IDF 5.x)

Postby RichPiano » Sat Nov 12, 2022 9:40 am

We need to develop a cross platform database client based on websockets that is portable to Windows, Linux and the ESP32. This could be most efficiently done (I think) by using the popular Websocket++ library (github). However, Websocket++ would use the POSIX interface and OpenSSL, whereas the OpenSSL API wrapper is discontinued from IDF 5.x (according to documentation). Our app however runs on C++20 so reverting back to IDF4.4 is also not possible.

Also, the esp websocket client seems not yet ported to IDF 5.x so we're quite lost. Seems like the only solution is to write a custom websocket client based on mbed_tls. Any better ideas?

ESP_cermak
Posts: 69
Joined: Thu Nov 01, 2018 8:32 am

Re: OpenSSL API wrapper not available for ports? (IDF 5.x)

Postby ESP_cermak » Wed Nov 16, 2022 7:27 pm

Hi RichPiano

You can use esp_websocket_client in https://github.com/espressif/esp-protoc ... ket_client
It works with v5.0 and v5.1

RichPiano
Posts: 123
Joined: Mon May 18, 2020 2:51 pm

Re: OpenSSL API wrapper not available for ports? (IDF 5.x)

Postby RichPiano » Mon Nov 21, 2022 6:54 am

Thank you. Why is it not included in idf v5.0 / 5.1?

Who is online

Users browsing this forum: danpf1 and 146 guests