-->
Page 1 of 3

MQTT (SSL) gets disconnected when Webserver starts

PostPosted: Sun Mar 27, 2022 11:08 pm
by r_van
Hello,

Am new to esp8266 and protocols however because of the SDK(https://github.com/espressif/ESP8266_RTOS_SDK) ,have been able to develop and, was able understand quite a lot , Its been a week i got stuck with this problem. Any one protocol is working either MQTT /webserver.
If webserver is started mqtt is getting disconnected. If mqtt is connected Webserver throws error!
Individually both are working fne.
In this project am using softap_prov code(wifi cred) +mqtt (ssl)+http server(simple)
how to resolve this problem ?

Thank you

Re: MQTT (SSL) gets disconnected when Webserver starts

PostPosted: Tue Mar 29, 2022 4:05 am
by quackmore
I've been using the http_server and mqtt_over_ssl together and they're working fine

I'd start checking the heap free size while you application is running, cause ssl uses a large amount of ram memory

in order to save memory I'm using ecc certificates and wolfssl instead of mbedtls
as a drawback the handshake time increased as well as the binary size

Re: MQTT (SSL) gets disconnected when Webserver starts

PostPosted: Thu Mar 31, 2022 7:45 pm
by r_van
hi,

Thanks for the response.
somehow managed to get both working with ssl ,mqtt, webserver,ota,uart,wifiprov,spiffs by monitoring the memory with esp_get_minimum_free_heap_size am getting 10KB,still trying to optimize, but what should be the minimum heap to avoid any errors?
am also planning to checkout ecc, wolfssl after coming to a concrete conclusion.

Thanks

Re: MQTT (SSL) gets disconnected when Webserver starts

PostPosted: Mon Apr 04, 2022 5:10 am
by rpiloverbd
Hi, it may not be what you're looking for. But since you're working on MQTT protocol, this tutorial may help you. This is regarding ESP32. Here you'll know the A to Z of MQTT protocol. You'll also get the basic example code.
https://www.theengineeringprojects.com/ ... -mqtt.html