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 all nodes

Send message to all nodes

Scheduled Pinned Locked Moved Development
5 Posts 4 Posters 42 Views 4 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.
  • A Offline
    A Offline
    awarman
    wrote on last edited by
    #1

    Hi All
    I have a network in which there is a controller (a node itself) and lots of other devices on other nodes. The devices can have different functionality. At initialization I want the controller to send a message to all devices so that they can report their functionality type to the controller. Is there a way to send a message to all devices. The ugly way would be to run a loop from 1-254 and use it as a nodeID and send a message to each. Any elegant way to do it.
    Regards
    Warman

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lood29
      wrote on last edited by
      #2

      Send to broadcast address which is 255.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JeeLet
        wrote on last edited by
        #3

        additional information may not be useful

        "Debug messages are sent to child ID 255"
        https://github.com/mysensors/MySensors/blob/2.3.1/MyConfig.h#L77

        1 Reply Last reply
        0
        • Greg BowersG Offline
          Greg BowersG Offline
          Greg Bowers
          Banned
          wrote on last edited by mfalkvidd
          #4

          In your network setup, if you want the controller to send a message to all devices for initialization without using a loop to iterate through all possible node IDs, you can consider utilizing the broadcast functionality of your communication protocol.

          Typically, most communication protocols, including MySensors, support broadcast messages that can be sent to all devices within the network. Broadcasting a message allows you to send a single message that will be received by all devices simultaneously, without the need for individual addressing.

          Consult the documentation or API reference of your specific communication protocol (e.g., MySensors) OR refer this [spam link removed by moderator] to understand how to implement broadcasting functionality within your network.
          Hope it helps you.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            JeeLet
            wrote on last edited by
            #5

            I searched on the forum how to use ID255 but found nothing practical

            https://forum.mysensors.org/topic/8941/mysensors-get-temperature-value-from-another-node-through-the-gateway?_=1684325843882&lang=fr

            https://github.com/mysensors/MySensors/blob/development/examples/PingPongSensor/PingPongSensor.ino

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


            27

            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