ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By prozac
#13483 I am not sure if anyone has added MQTT support to an esphttpd, but it is very doable. The default esphttp project was designed to support quite a bit on the httpd side, which you might not need if you are only using it for wifi configuration. If you are going down that road, you could strip a bunch out of the base esphttps for template support and just use static html in the firmware. This would remove the need for the espfs and remove a bunch of code that would only otherwise be taking up memory. Would also give you more programming space.

Do you need to AP survey functionality provided by esphttpd or would a simple form for SSID and key suffice?
User avatar
By Sprite_tm
#13521 It looks like mqtt is provided as a simple driver; there's no reason why the two couldn't co-exist. While there's some general makefile hackery involved, you could basically take the mqtt-specific files and dump them in the esphttpd tree, then refer the mqtt functions in your user_main.c file.