This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Wakeup device with app button

Hi,

is it possible to handle a 2 second button press and wake up the device with the app button modul? Or should i handle the button without the app button modul to wake up the device after a 2 second press .

best regards Nils

Parents
  • When using app_button, the device will wake up immediately when you press a button, since the timeout is only handed in software. By default, app_button will not start timing an event on startup, so even if you wake the device by holding a button, the button event handler will not be called. If you need an action to occur a certain time after startup, you'll have to implement the timing yourself, or modify app_button to do it for you.

Reply
  • When using app_button, the device will wake up immediately when you press a button, since the timeout is only handed in software. By default, app_button will not start timing an event on startup, so even if you wake the device by holding a button, the button event handler will not be called. If you need an action to occur a certain time after startup, you'll have to implement the timing yourself, or modify app_button to do it for you.

Children
No Data
Related