In the ble_app_hrs_c the scanning indication LED blinks with a periodicity of about 4 seconds, while the advertising LED on the peripheral blinks at the expected 2. Both systems are running at 16 MHz and the clock speed is defined as such as well.
In the ble_app_hrs_c the scanning indication LED blinks with a periodicity of about 4 seconds, while the advertising LED on the peripheral blinks at the expected 2. Both systems are running at 16 MHz and the clock speed is defined as such as well.
@danbujak: If you have a look at the bsp_led_indication() in bsp.c, you can find that if we do BSP_INDICATE_ADVERTISING, we will have the delay of ADVERTISING_LED_OFF_INTERVAL and ADVERTISING_LED_ON_INTERVAL which in total equal 2 second. If we do BSP_INDICATE_SCANNING, we will have the delay of ADVERTISING_SLOW_LED_OFF_INTERVAL and ADVERTISING_SLOW_LED_ON_INTERVAL which result in the interval of 4.4 seconds.
This explains your observation.
@danbujak: If you have a look at the bsp_led_indication() in bsp.c, you can find that if we do BSP_INDICATE_ADVERTISING, we will have the delay of ADVERTISING_LED_OFF_INTERVAL and ADVERTISING_LED_ON_INTERVAL which in total equal 2 second. If we do BSP_INDICATE_SCANNING, we will have the delay of ADVERTISING_SLOW_LED_OFF_INTERVAL and ADVERTISING_SLOW_LED_ON_INTERVAL which result in the interval of 4.4 seconds.
This explains your observation.