khoih-prog / AsyncMQTT_Generic

Arduino Arduino Library for ESP8266, ESP32, Portenta_H7, STM32 and RP2040W asynchronous MQTT client implementation. This library, ported to support ESP32, WT32_ETH01 (ESP32 + LAN8720), ESP8266, Portenta_H7 (Ethernet or WiFi) and STM32 (LAN8742A or LAN8720 Ethernet), Teensy 4.1 using QNEthernet, RASPBERRY_PI_PICO_W with CYW43439 WiFi. Currently supporting TLS/SSL for ESP32 only
MIT License
62 stars 10 forks source link

MQTT + SSL Compilation Error "include/ssl.h" No such file or directory. #9

Closed bkj-controls closed 2 years ago

bkj-controls commented 2 years ago

Describe the bug

Compile fails when ASYNC_TCP_SSL_ENABLED is set.

Steps to Reproduce

#define ASYNC_TCP_SSL_ENABLED true

in setup() ` #if ASYNC_TCP_SSL_ENABLED mqttClient.setSecure(MQTT_SECURE);

endif`

and compile in Arduino IDE.

Expected behavior

Compile without error and MQTT over SSL should work.

Actual behavior

Compilation fails with error C:\Users\lenovo\Documents\Arduino\libraries\ESPAsyncTCP-master\src/tcp_axtls.h:44:10: fatal error: include/ssl.h: No such file or directory 44 | #include "include/ssl.h" | ^~~~~~~~~~~~~~~ compilation terminated.

Information

Please ensure to specify the following:

khoih-prog commented 2 years ago

ESP8266 Async SSL is not supported yet. Only ESP32 or WT32)ETH01.

Check Done

  1. Add support to ESP32 (SSL and non-SSL)
  2. Add support to ESP8266 (non-SSL)
  3. Add support to WT32_ETH01 (SSL and non-SSL)