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. Development
  3. send message to sensor on GW

send message to sensor on GW

Scheduled Pinned Locked Moved Development
5 Posts 2 Posters 2.0k Views 3 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.
  • dpressleD Offline
    dpressleD Offline
    dpressle
    wrote on last edited by
    #1

    How can i send a message to a gateway node?
    I tried the following:
    on the GW i added a node id parameter #define MY_NODE_ID 1 and a receive function
    on another node i use setDestination for the message i want to send to the GW with the node id of the GW (1)
    i expect to get into the receive function on the GW which does not happen
    in the GW serial monitor i see the message getting in:
    0;255;3;0;9;TSP:MSG:READ 2-2-1 s=2,c=1,t=54,pt=2,l=2,sg=0:1

    Can any one let em know if what i am trying to do is even possible?

    1 Reply Last reply
    0
    • martinhjelmareM Offline
      martinhjelmareM Offline
      martinhjelmare
      Plugin Developer
      wrote on last edited by martinhjelmare
      #2

      The gateway always has node id 0.

      dpressleD 1 Reply Last reply
      0
      • martinhjelmareM martinhjelmare

        The gateway always has node id 0.

        dpressleD Offline
        dpressleD Offline
        dpressle
        wrote on last edited by
        #3

        @martinhjelmare you are right... still it doesn't seem to get into the receive function in the GW:

        0;255;3;0;9;TSP:MSG:READ 1-1-0 s=1,c=1,t=54,pt=2,l=2,sg=0:1
        1;1;1;0;54;1

        1 Reply Last reply
        0
        • martinhjelmareM Offline
          martinhjelmareM Offline
          martinhjelmare
          Plugin Developer
          wrote on last edited by
          #4

          There is a bug in 2.0.0 where receive isn't called on incoming message if destination is gateway. It's fixed in the dev branch.

          https://github.com/mysensors/MySensors/pull/522

          dpressleD 1 Reply Last reply
          1
          • martinhjelmareM martinhjelmare

            There is a bug in 2.0.0 where receive isn't called on incoming message if destination is gateway. It's fixed in the dev branch.

            https://github.com/mysensors/MySensors/pull/522

            dpressleD Offline
            dpressleD Offline
            dpressle
            wrote on last edited by
            #5

            @martinhjelmare Thanks, i will try dev branch

            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


            6

            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