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. How to tell if mysensors library starts up successfully?

How to tell if mysensors library starts up successfully?

Scheduled Pinned Locked Moved Development
7 Posts 4 Posters 1.6k 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
    arraWX
    wrote on last edited by
    #1

    I would like to turn on a LED if a node cannot find the gateway (e.g. if the distance is too large) when the node is powered up. How can that be done?

    I understand that the send command returns a Boolean that tells whether a message reached the gateway. However, if the node cannot find the gateway on power up the sketch never proceeds beyond #include <MySensors.h>. Is it possible to derive some status from this command?

    Boots33B 1 Reply Last reply
    0
    • gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by
      #2

      you already have 3 status LED, when red led flashes there has been a transmission error.

      1 Reply Last reply
      1
      • A Offline
        A Offline
        arraWX
        wrote on last edited by
        #3

        @gohan Thank you!

        The node is a sensebender micro. I would like to use the built-in LED.

        I never made a node with the 3 status LEDs. It might be worthwhile for me to look more into that.

        1 Reply Last reply
        0
        • gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #4

          Unless you want to go the rfm69 way as they are a bit more advanced and you can read signal strength, power output and also the new driver has adaptive TX power.

          1 Reply Last reply
          1
          • A arraWX

            I would like to turn on a LED if a node cannot find the gateway (e.g. if the distance is too large) when the node is powered up. How can that be done?

            I understand that the send command returns a Boolean that tells whether a message reached the gateway. However, if the node cannot find the gateway on power up the sketch never proceeds beyond #include <MySensors.h>. Is it possible to derive some status from this command?

            Boots33B Offline
            Boots33B Offline
            Boots33
            Hero Member
            wrote on last edited by
            #5

            @arraWX The line of code to force the node to move on if no gateway is found is

            //set how long to wait for transport ready in milliseconds
            #define MY_TRANSPORT_WAIT_READY_MS 3000
            

            some posts that may be of interest

            Synchronising Light switch

            Booting sensors without Gateway connection?

            use of ACK

            1 Reply Last reply
            3
            • A Offline
              A Offline
              arraWX
              wrote on last edited by
              #6

              @Boots33 Thank you!

              Those posts provide lots of useful information.

              1 Reply Last reply
              1
              • Lars DeutschL Offline
                Lars DeutschL Offline
                Lars Deutsch
                wrote on last edited by
                #7

                @boots33 said in How to tell if mysensors library starts up successfully?:

                #define MY_TRANSPORT_WAIT_READY_MS 3000

                Hi,

                thank you very much ! I am using the latest 2.2.rc2 version. Will give the preprocessor statement above a try ...

                thank you very much,
                Lars

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