I want to discover my Mosquitto MQTT Broker using my ESP with LUA on my LAN. My ESP8266 is on the same network.
NodeMCU custom build by frightanic.com branch: master commit: 4905381c004bdeaf744a60bb940c1906c2e052d4 SSL: false modules: bme280,dht,file,gpio,http,mdns,mqtt,net,node,rtctime,sjson,sntp,tmr,uart,wifi build created on 2019-04-28 18:59 powered by Lua 5.1.4 on SDK 2.2.1(6ab97e9)
all works as expected, when I connect to the broker knowing the IP an port:
m:connect("10.0.1.97", 1883, 0, function(client) ...
But how can I discover the IP address of the device running the broker and the port? Mosquitto is set up like here:
The LUA mdns module doesn't provide discovering, am I right?