1technophile / OpenMQTTGateway

MQTT gateway for ESP8266 or ESP32 with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility & LoRa.
https://docs.openmqttgateway.com
GNU General Public License v3.0
3.6k stars 793 forks source link

Feature request: add possibility to define MQTT server hostname/domain #531

Closed untitledlt closed 4 years ago

untitledlt commented 4 years ago

I use external MQTT server with external IP address. IP address sometimes changes so it would be nice to have possibility to specify MQTT server hostname instead of IP address.

1technophile commented 4 years ago

you can do it there

untitledlt commented 4 years ago

Oh cool! Should I leave mqtt_server blank on https://github.com/1technophile/OpenMQTTGateway/blob/aeb00c4a7a5b55fc04d41e2b0444d13c61085450/main/User_config.h#L104?

1technophile commented 4 years ago

you can let it as it is, it will not be taken into account if you uncomment //#define mqtt_server_name "www.mqtt_broker.com"

untitledlt commented 4 years ago

Thanks!

1technophile commented 4 years ago

You're welcome