Is it possible to convive WiFiClient and WiFiClientSecure in ESP32?

Dear members:

I have a project now working with OTA and WiFiClient to receive orders via plain text sockets? Now I want to add a MQTT client (HiveMQ) and they need TLS connections with the broker, so I followed the source code on this video: Virtuino MQTT + HiveMQ - YouTube

That requires WifiClientSecure

A separate project following the vodeo worked great, but when I added it to my original project, I see this error:
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.

First of all, I want to be sure if WifiClient and WifiClientSecure can work at the same time. Any confirmation will be appreciated.


Yes why not?

You should enable the exception decoder and build in deug mode to see in which line exactly it crashes. That gives more info for troubleshooting.

monitor_filters = esp32_exception_decoder
build_type = debug

in the platformio.ini (docs).

Thanks Max. Maybe I’ve commited some kind of error porting from the example to my project.