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


            16

            Online

            11.7k

            Users

            11.2k

            Topics

            113.1k

            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