So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By r_van
#94099 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
User avatar
By quackmore
#94119 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
User avatar
By r_van
#94141 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
User avatar
By rpiloverbd
#94171 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