Hello we want to save power and there we had the idea to not send the scan response to the central. Because we don't need this exta 31 Byte for advertising data.
We use SDK 16 with Softdevice "s132_nrf52_7.0.1_softdevice".
I was able to don't set the scan response data but then we still have a scan response with empty data.
What must i chnage to disbale the scan resonse?
Have you tried to set ble_adv_extended_enabled flag to false ?
init.config.ble_adv_extended_enabled = false;
this is still set to false
Not sure would it help or not but I'd try to set scan response data pointer to NULL manually after calling ble_advertising_init() function.
err_code = ble_advertising_init(&m_advertising, &init);
m_advertising.adv_data.scan_rsp_data.len = 0;
m_advertising.adv_data.scan_rsp_data.p_data = NULL;
this will not help
In order to disable the scan responses completely, you will have to use the whitelist advertisement feature, as per the core spec "The Host shall set the advertising filter policy to 'process scan and connection requests from all devices'." It is common that the scanner will ignore advertisers that don't respond to scan requests, which is why the scan response replies with an empty data packet.
You can check out this thread which has a great discussion on the matter.