Skip to content
  • 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. General Discussion
  3. Send message for another node.
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

Send message for another node.

Scheduled Pinned Locked Moved General Discussion
6 Posts 3 Posters 3.6k Views 2 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.
  • D Offline
    D Offline
    derrij
    wrote on last edited by
    #1

    From sensor with ID 3 want to send message for scene controller ID 10.
    Can't see if it possible?
    May be possible add this way ?
    MyMessage msgOn(CHILD_ID_SCENE, V_SCENE_ON, NODE_ID);

    hekH 1 Reply Last reply
    0
    • D derrij

      From sensor with ID 3 want to send message for scene controller ID 10.
      Can't see if it possible?
      May be possible add this way ?
      MyMessage msgOn(CHILD_ID_SCENE, V_SCENE_ON, NODE_ID);

      hekH Online
      hekH Online
      hek
      Admin
      wrote on last edited by
      #2

      @derrij

      msgOn.setDestination(10);

      1 Reply Last reply
      0
      • D Offline
        D Offline
        derrij
        wrote on last edited by
        #3

        not good enough explained first time.

        I got Arduino SceneCtrl 13:3 and i can control it from this node.
        13;3;1;0;19;3
        13;3;1;0;20;3
        And I want send the same command to the gateway
        13;3;1;0;19;3
        13;3;1;0;20;3
        but from Node 10

        1 Reply Last reply
        0
        • hekH Online
          hekH Online
          hek
          Admin
          wrote on last edited by
          #4

          You'll have to do two sends to archive this.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            derrij
            wrote on last edited by
            #5

            one from Node 10 to 13 with msgOn.setDestination(13);
            and redirect message through 13 to gateway
            am i understood right?

            1 Reply Last reply
            0
            • J Offline
              J Offline
              Jonas
              wrote on last edited by
              #6

              @hek
              I am currently trying to send a message from one node to another, but am facing some trouble with it.
              I have two nodes, both of them with Motion Sensors attached to them. I want one node to send a message
              to the other node when there is motion detected. On the other node, the received message should be saved in a variable.
              Looking through other posts I wasn't capable of finding an example I could modify for my purposes. I know there is this function for receiving messages:

              void incomingMessage(const MyMessage &message)

              but how do I continue? Also, how to send a message? Can you pls give me example code for that?

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              14

              Online

              11.7k

              Users

              11.2k

              Topics

              113.0k

              Posts


              Copyright 2019 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
              • OpenHardware.io
              • Categories
              • Recent
              • Tags
              • Popular