Interrupt with gw.wait?
-
Agree.
Not sure if we have the same use case, but in my case I have created a sensor node sketch, where the actual nodes are a mix of battery powered and net powered devices. Due to the size of the buildings I need to use repeaters, so I enable repeater mode for the net powered devices. (#define MY_REPEATER_FEATURE)
Ideally, this define should take care of everything, but as far as I know, I need to change sleep to wait, and they don't behave the same. Therefore I end up with different behavior.
The best solution might be if I wait would behave exactly the same as sleep, except that it does not enter sleep mode. And the sleep function could be smart enough to call wait instead of entering sleep when something prevents it from entering sleep mode (like MY_REPEATER_FEATURE), so I can keep the sketch unchanged when enabling repeater mode. (Note that I work on the 1.6b version)
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