Battery sensor and re-connecting to gateway
-
@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
-
@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
-
@tekka thank you, so if I
#define MY_TRANSPORT_WAIT_READY_MS 60000Am 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 :)
-
@tekka thank you, so if I
#define MY_TRANSPORT_WAIT_READY_MS 60000Am 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 :)
@Mark-Swift Almost :)
#define MY_TRANSPORT_WAIT_READY_MS 60000applies 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 10000defines 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.
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