ESP8266 MQTT client dynamically changing MQTT broker settings
-
Hi,
I am working on an ESP8266 MQTT gateway with a web interface to allow th user to configure settings. One of these settings is the MQTT broker IP address and port number.
In the before() I read out the IP address from EEPROM and want to set it in the gateway software, and not as normally done by defining MY_CONTROLLER_IP_ADDRESS.
Is it possible to do this?
I already tried to declare _ethernetControllerIP as external. This doesn't work.
Also tried to skip de definition MY_CONTROLLER_IP_ADDRESS and declar it in the gateway sketch. Didn't work either.
1 out of 1
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23 -
Adding Listen only device to my system.
Development • 26 Feb 2025, 00:39 • dpcons 26 Feb 2025, 06:26 -
PJON and Minicore not working
Development • 29 days ago • Trand 29 days ago -
LAN8720A - will mysensors work with this module
Development • 13 Nov 2024, 17:06 • Marcin 15 Nov 2024, 10:59