All my code works, only what I need is to establish MQTT communication between my device and MQTT broker (server). I managed to do that using "espduino" and it works flawlessly.
https://github.com/tuanpmt/espduino
But I need to make this device smart, that means to make some kind of network discovery so my server can find device in local network. Also I need some kind of configuration tool ... it would be cool if device can boot in AP mode so I can enter SSID and Password using web interface.
As espduino uses firmware that communicates using SLIP commands I have no idea to implement these things. I could make some kind of primitive network discovery using UDP broadcasting but cannot use UDP with this firmware, hmmm.
Is there any alternative to espduino that can provide MQTT communication and also some kind of network discovery protocol?