Noob question re MQTT gateway sketch
-
Hiya,
Apologies in advance if this is answered alsewhere, or if this topic belongs in another section.
I have the ethernet gateway built and sketch uploaded. I now want to upload the MQTT Gateway sketch.
With regards to config in sketch:#define TCP_PORT 1883 // Set your MQTT Broker Listening port.
IPAddress TCP_IP ( 192, 168, 1, 148 ); // Configure your static ip-address here
byte TCP_MAC[] = { 0x02, 0xDE, 0xAD, 0x00, 0x00, 0x42 }; // Mac-address - You should change this! see note *2 above!Is the IP address my MySensors ethernet gateway or my MQTT broker's IP.
Same question for MAC address.Thanks in advance!
-
I am not sure if i understand you. But if you want to upload the mqtt-gateway sketch, this is the ip, the mqtt-gateway will use. Same for MAC.
But, try the mqtt-client-gateway instead. works perfect and you can connect to a full featured mqtt-host in your network (like mosquitto).
greetingsAndreas
-
@ahhk said:
mqtt-client-gateway
Thanks
Have installed the mqtt-client-gateway and works well, thanks a lot!
Suggested Topics
-
Welcome
Announcements • 23 Mar 2014, 08:24 • hek 2 Apr 2014, 14:39 -
Wio-E5 (STM32 and SX1262)
My Project • 31 Dec 2024, 17:52 • nagelc 25 Jan 2025, 20:21 -
Nb of possible nodes in a mysensors networks with domoticz
My Project • 13 Jan 2025, 18:10 • GLAB 16 Feb 2025, 01:11 -
Long time test done with soil sensor!
My Project • 7 Jan 2025, 09:13 • Nicklas Starkel 13 Jan 2025, 09:10 -
BMP280 SPI Adafruit
My Project • 24 Aug 2016, 01:56 • Matt 23 Jan 2025, 16:25 -
Door chime
My Project • 9 Mar 2025, 10:06 • Paul Scarbro 13 Mar 2025, 00:15