I'm trying to change the advertising interval for a non connectable BLE device, but this does not seem to vary regardless of the value set.
The code I used is:
#define NON_CONNECTABLE_ADV_INTERVAL MSEC_TO_UNITS(10000, UNIT_0_625_MS)
...
memset(&m_adv_params, 0, sizeof(m_adv_params));
m_adv_params.type = BLE_GAP_ADV_TYPE_ADV_NONCONN_IND;
m_adv_params.p_peer_addr = NULL;
m_adv_params.fp = BLE_GAP_ADV_FP_ANY;
m_adv_params.interval = NON_CONNECTABLE_ADV_INTERVAL;
m_adv_params.timeout = 0; // Never time out.
err_code = sd_ble_gap_adv_start(&m_adv_params, APP_BLE_CONN_CFG_TAG);
APP_ERROR_CHECK(err_code);
The sd_ble_gap_adv_start seems to work correctly (return code 0x00)
but any interval value I insert the advertising interval does not seem to vary ..
for example, using:
#define NON_CONNECTABLE_ADV_INTERVAL MSEC_TO_UNITS(200, UNIT_0_625_MS)
or:
#define NON_CONNECTABLE_ADV_INTERVAL MSEC_TO_UNITS(10000, UNIT_0_625_MS)
I get the same behavior