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

SDK15 How to set scan data?

Hi,

I have migrated from SDK14.1 to SDK15.

One thing is embarrassing me.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
static test_params_t m_test_params =
{
.att_mtu = NRF_SDH_BLE_GATT_MAX_MTU_SIZE,
.conn_interval = CONN_INTERVAL_DEFAULT,
.data_len_ext_enabled = true,
.conn_evt_len_ext_enabled = true,
// Only symmetric PHYs are supported.
#if defined(S140)
.phys.tx_phys = BLE_GAP_PHY_2MBPS | BLE_GAP_PHY_1MBPS | BLE_GAP_PHY_CODED,
.phys.rx_phys = BLE_GAP_PHY_2MBPS | BLE_GAP_PHY_1MBPS | BLE_GAP_PHY_CODED,
#else
.phys.tx_phys = BLE_GAP_PHY_2MBPS | BLE_GAP_PHY_1MBPS,
.phys.rx_phys = BLE_GAP_PHY_2MBPS | BLE_GAP_PHY_1MBPS,
#endif
};
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Fullscreen
1
2
3
4
gatt_mtu_set(m_test_params.att_mtu);
data_len_ext_set(m_test_params.data_len_ext_enabled);
conn_evt_len_ext_set(m_test_params.conn_evt_len_ext_enabled);
preferred_phy_set(&m_test_params.phys);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I would like to modify the scan data as above,
I do not know where I can fix it.

phy can be modified in the m_scan_params variable,
I know that the MTU Size can be modified in the gatt_init () function.

Where can I modify data_len_ext_enabled and conn_evt_len_ext_enabled? Help me.