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.