Two questions about advertisement (i'm reading ble_advertising.c code)
-
I failed to see what is making transition from BLE_ADV_MODE_DIRECTED to BLE_ADV_MODE_DIRECTED_SLOW as adv_params.timeout is set to 0 (for BLE_ADV_MODE_DIRECTED) and transition seems to be done on BLE_GAP_EVT_TIMEOUT .
-
For the flags in advertisement packet (BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE/ BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE), usually set when calling ble_advertising_init, it seems to be overwritten to BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED by the call to ble_advertisement_start when using whitelist. But in ble_advertising_restart_without_whitelist it is not set back to its initial value. Is it normal?