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!

  • Hardware Contributor

    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).


  • @ahhk said:


    Have installed the mqtt-client-gateway and works well, thanks a lot!

Log in to reply

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.