How can I make MQTT Broker in Mongoose OS

  1. My goal is: To host MQTT Broker from Mongoose Web-server library on esp8266
  2. My actions are: I have reviewed mqtt-broker example in cesanta/mongoose repository, but I still don’t understand how do i build it and host it on MOS. I have placed mqtt-broker.c as main.c and copied mongoose.h and mongoose.c in src/ directory.
  3. The result I see is: https://gist.github.com/dwarq7/de51700819ec41e2674ba40c467d018e – build log
  4. My expectation & question is: As Sergey mentioned here(https://forum.mongoose-os.com/discussion/240/how-to-make-a-firmware-build-incl-mqtt-broker) I need to include MQTT broker firmware, thats what I can not do for now. So how should I include it to my firmware if I need only MQTT broker in it?

Thanks!

The thread you mentioned is very old.
In the meantime many things have changed in Mongoose OS.

It already has been discussed here.