• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Heartbeat and smartSleep questions.

    Scheduled Pinned Locked Moved General Discussion
    8 Posts 2 Posters 973 Views 1 Watching
    Loading More Posts
    • 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.
    • skywatchS Offline
      skywatch
      last edited by

      1. If a node calls heartbeat(), then what happens at mycontroller?
      2. What is the effect in myc of selecting smartSleep in the node properties page?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • skywatchS Offline
        skywatch
        last edited by

        Answering 1. above - seems that adding sendHearbeat() resets the 'last seen' time in myc, which works well for nodes that don't send or receive much data.

        jkandasaJ 1 Reply Last reply Reply Quote 0
        • jkandasaJ Offline
          jkandasa @skywatch
          last edited by

          @skywatch

          1. If a node calls heartbeat(), then what happens at mycontroller?

          Your answer is almost right. heartbeat checks whether the node is online or offline. Yes resets the last seen by heartbeat response.

          1. What is the effect in myc of selecting smartSleep in the node properties page?

          For now, SmartSleep supports only for MySensors network. MySensors Sleep API information. Note: Sleep and SmartSleep are different.
          When SmartSleep node awake, MyController sends messages in the queue for that node.
          Implementation request.

          1 Reply Last reply Reply Quote 0
          • skywatchS Offline
            skywatch
            last edited by

            @jkandasa

            Thank you - still tracking down my problems and trying to find solutions to them. 😉

            Am I right in thinking that smartsleep enabled is really about the message queue and that the heartbeat sent b a node in smartsleep mode will be seen by myc reglardless of wether smartsleep is checkd or not?

            jkandasaJ 1 Reply Last reply Reply Quote 0
            • jkandasaJ Offline
              jkandasa @skywatch
              last edited by

              @skywatch When smartSleep enabled, heartbeat message also will be queued. However, for some time, if there is no message from the node, will be marked as down!

              1 Reply Last reply Reply Quote 0
              • skywatchS Offline
                skywatch
                last edited by

                I am sorry but I am still not sure how this is working and which is the better option.

                If I use smartSleep is there a possibility that the heartbeat may not be sent by the node? Whereas if I put sendHeartbeat() in the loop it will always be sent on every time the node wakes from sleep?

                jkandasaJ 1 Reply Last reply Reply Quote 0
                • jkandasaJ Offline
                  jkandasa @skywatch
                  last edited by

                  @skywatch yes, heartbeat message will be sent when it comes from sleep. I understand that it is overhead for the sleeping node. hence I removed sending heartbeat for the sleeping node with this ticket: https://github.com/mycontroller-org/mycontroller/issues/456

                  Change is available in SNAPSHOT version.

                  1 Reply Last reply Reply Quote 0
                  • skywatchS Offline
                    skywatch
                    last edited by

                    Aha! - That was the problem (and now I know who to blame for it) 😉

                    Thanks for the clarification 🙂

                    Onwards and upwards !

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    0

                    Online

                    587

                    Users

                    529

                    Topics

                    3.4k

                    Posts
                    Copyright © 2015-2025 MyController.org | Contributors | Localization