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. Troubleshooting
  3. Battery sensor and re-connecting to gateway

Battery sensor and re-connecting to gateway

Scheduled Pinned Locked Moved Troubleshooting
24 Posts 6 Posters 8.3k 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.
  • Mark SwiftM Offline
    Mark SwiftM Offline
    Mark Swift
    wrote on last edited by
    #21

    @tekka I guessed that, I thought however that you'd mentioned it would timeout, and try again later? As it stands it appears it'll keep trying until the battery is dead?

    If nothing else I just want to clear up the behaviour so I fully understand it.

    Thanks,

    Mark

    T 1 Reply Last reply
    1
    • Mark SwiftM Mark Swift

      @tekka I guessed that, I thought however that you'd mentioned it would timeout, and try again later? As it stands it appears it'll keep trying until the battery is dead?

      If nothing else I just want to clear up the behaviour so I fully understand it.

      Thanks,

      Mark

      T Offline
      T Offline
      tekka
      Admin
      wrote on last edited by tekka
      #22

      @Mark-Swift it does timeout, but for that you have to set MY_TRANSPORT_WAIT_READY_MS > 0. This ensures, that loop() will be entered after the timeout if the connection could not be established.

      1 Reply Last reply
      0
      • Mark SwiftM Offline
        Mark SwiftM Offline
        Mark Swift
        wrote on last edited by
        #23

        @tekka thank you, so if I

        #define MY_TRANSPORT_WAIT_READY_MS 60000
        

        Am I right in thinking that my node will enter the loop after it tries to connect to a parent for 60 seconds and fails? (In my case it'd then sleep until the next interrupt, when I guess it would then try again for 60 seconds...).

        I really appreciate your help getting my head around this :)

        T 1 Reply Last reply
        0
        • Mark SwiftM Mark Swift

          @tekka thank you, so if I

          #define MY_TRANSPORT_WAIT_READY_MS 60000
          

          Am I right in thinking that my node will enter the loop after it tries to connect to a parent for 60 seconds and fails? (In my case it'd then sleep until the next interrupt, when I guess it would then try again for 60 seconds...).

          I really appreciate your help getting my head around this :)

          T Offline
          T Offline
          tekka
          Admin
          wrote on last edited by
          #24

          @Mark-Swift Almost :)

          #define MY_TRANSPORT_WAIT_READY_MS 60000
          

          applies only when the node starts, i.e. before entering loop(). Once you are in loop() and you put the node to sleep

          #define MY_SLEEP_TRANSPORT_RECONNECT_TIMEOUT_MS 10000
          

          defines how long the node will try to establish a connection before going to sleep, default is 10s. Please have a look here for additional information.

          1 Reply Last reply
          2

          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


          15

          Online

          12.1k

          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