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

how to enter in Sleep mode and wackup again without advertizing mode??

i have use nrf51822 when no connection creat between android nrfUart app and backon kit so autometically sleep in 180 seconds,

but i have need sleep condition in connected mode of bacon kit and android app.. when i have press switch so bacon kit will be wackup and transmitt this data at connected device. And get sleep condition after transmition complet. and when prass switch again so reapat tyhis condition... so, i have need proper sleep and wackup function.

Parents
  • when i have press switch so bacon kit will be wackup

    you can use the app_button module in SDK for this. Documentation can be found here

    and transmitt this data at connected device

    when your button_event_handler that you gave in app_button_init gets triggered after you press the button, then you can handle the connection and start the data transfer

    And get sleep condition after transmition complet

    Just call the power_manage() function from SDK for the system to go to sleep after your transfer is complete.

Reply
  • when i have press switch so bacon kit will be wackup

    you can use the app_button module in SDK for this. Documentation can be found here

    and transmitt this data at connected device

    when your button_event_handler that you gave in app_button_init gets triggered after you press the button, then you can handle the connection and start the data transfer

    And get sleep condition after transmition complet

    Just call the power_manage() function from SDK for the system to go to sleep after your transfer is complete.

Children
No Data
Related