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

How to turn on Leds only for advertising time?

Hi, i am using SDK v8.0 and in main function, initialization like this err_code = bsp_init(BSP_INIT_LED | BSP_INIT_BUTTONS, APP_TIMER_TICKS(100, APP_TIMER_PRESCALER), button_event_handler); and

in advertising_start function, calling function is err_code = bsp_indication_set(BSP_INDICATION_ADVERTISING); this is working. but i want like this whenever ble module advertise that time only led should blink and other time it turn off. and i m using system_off mode for sleep mode in that also after went in sleep that time led is continuous ON only. how should i turn off that led.

Related