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 -
Long time test done with soil sensor!
My Project • 7 Jan 2025, 09:13 • Nicklas Starkel 13 Jan 2025, 09:10 -
Nb of possible nodes in a mysensors networks with domoticz
My Project • 13 Jan 2025, 18:10 • GLAB 16 Feb 2025, 01:11 -
Water Meter or "How to get Home Assistant to send saved data to an Arduino"
My Project • 18 Oct 2024, 02:19 • OldSurferDude 18 Oct 2024, 02:19 -
Simulate Online-Recreating 'Flappy Bird' with Arduino Nano
My Project • 15 Jan 2025, 09:13 • Skylar Jones 15 Jan 2025, 09:13 -
A low cost energy meter
My Project • 25 Jan 2024, 01:03 • OldSurferDude 12 Aug 2024, 06:03