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

feedback: confusing limitation in sd_ble_gap_adv_data_set

The S110 v7.1.0 documentation for sd_ble_gap_adv_data_set says:

The format of the advertisement data will be checked by this call to ensure interoperability. Limitations imposed by this API call to the data provided include having a flags data type in the scan response data and duplicating the local name in the advertisement data and scan response data.

To me, this says that the Flags data type must be in the scan response data, and that the advertisement and scan response data must have the same local name content.

Apparently not. In order to avoid NRF_ERROR_INVALID_PARAM (which is not documented as an expected error return), the Flags data type must not be in the scan response data, and the local name content must not be in the advertisement data.

Please keep in mind that some of us are using the low-level soft-device API, not the helper libraries in the nrf51-sdk (though having the source to that did help me figure out what was going wrong). Perhaps change:

Limitations imposed by this API call to the data provided include....

to something starting with

Data parameters that will be rejected include...

Related