jeelabs / esp-link

esp8266 wifi-serial bridge, outbound TCP, and arduino/AVR/LPC/NXP programmer
Other
2.83k stars 722 forks source link

Is it possible to temporarily stop web-server to free up space? #317

Open shahabmusic opened 7 years ago

shahabmusic commented 7 years ago

I have read everywhere that esp-link does not support TLS for MQTT because there is not enough space. I have also seen other people connecting to MQTT with TLS however without webserver running on their esp8266. Now my question is that is it possible to turn-off the webserver and free up some space so TLS can be used? TLS can be stopped and webserver can be turned back on by reseting esp8266 etc if needed.

tve commented 7 years ago

Yes, you could turn off listening sockets but I'm not sure how much memory you really release. There is also a lot of static memory allocated across the board. So YMMV...