Hi all,
I am using the nRF52832, Mesh sdk v4.2.0 and the nRF5 sdk v16.0.0.
How to dynamically change the GAP name of device when using smart phone (nRF connect APP)to scan device(GATT proxy role)?
I saw some methods from forum as follows but seems not to work.
static char test_gap_name[] = "Test";
uint32_t err_code;
ble_gap_conn_sec_mode_t sec_mode;
BLE_GAP_CONN_SEC_MODE_SET_OPEN(&sec_mode);
err_code = sd_ble_gap_device_name_set(&sec_mode,
(const uint8_t *)test_gap_name,
strlen(test_gap_name));
Could anyone help this question?
Thanks,
Frank

