Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. Noob question re MQTT gateway sketch

Noob question re MQTT gateway sketch

Scheduled Pinned Locked Moved My Project
3 Posts 2 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mlava
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      ahhk
      Hardware Contributor
      wrote on last edited by
      #2

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

      Andreas

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mlava
        wrote on last edited by
        #3

        @ahhk said:

        mqtt-client-gateway

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

        1 Reply Last reply
        0

        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
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        15

        Online

        12.0k

        Users

        11.2k

        Topics

        113.4k

        Posts


        Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • MySensors
        • OpenHardware.io
        • Categories
        • Recent
        • Tags
        • Popular