sleep(0) not working when Gateway is down



  • Hello,

    Why my node never sleep when Gateway is down and i use sleep(0) ?
    if i do sleep(20000) my node will sleep after 10 seconds but when i do sleep(0) my node will never sleep. But i was expected it sleep after 10 seconds also.

    Is it a bug ?


  • Mod

    @Snyfir what is the return value of the sleep call? What does the debug output say? Those pieces of information will help a lot when trying to understand what is happening and why.

    What type of Arduino you are using would also be useful.


Log in to reply
 

Suggested Topics

  • 1
  • 79
  • 1
  • 5
  • 7
  • 6
  • 5
  • 6

280
Online

10.1k
Users

10.5k
Topics

108.8k
Posts