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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login