For ble_gap_adv_set_configure_req_enc, is the document provided?
I saw "">infocenter.nordicsemi.com/.../group__ble__gap__app.html", it was not found.
For ble_gap_adv_set_configure_req_enc, is the document provided?
I saw "">infocenter.nordicsemi.com/.../group__ble__gap__app.html", it was not found.
Hi H.O,
ble_gap_adv_set_configure_req_enc() is the serialized function for sd_ble_gap_adv_set_configure()
You can find the documentation for the function in ble_gap_app.h in \components\serialization\application\codecs\ble\serializers folder.
Quoted here:
/**@brief Encodes @ref sd_ble_gap_adv_set_configure command request.
*
* @sa @ref ble_gap_adv_set_configure_rsp_dec for command response decoder.
*
* @param[in] p_adv_handle Advertising handle.
* @param[in] p_adv_data Pointer to a @ref ble_gap_adv_data_t structure.
* @param[in] p_adv_params Pointer to a @ref ble_gap_adv_params_t structure.
* @param[in] p_buf Pointer to buffer where encoded data command will be returned.
* @param[in, out] p_buf_len \c in: size of \p p_buf buffer.
* \c out: Length of encoded command packet.
*
* @retval NRF_SUCCESS Encoding success.
* @retval NRF_ERROR_NULL Encoding failure. NULL pointer supplied.
* @retval NRF_ERROR_INVALID_LENGTH Encoding failure. Incorrect buffer length.
*/
uint32_t ble_gap_adv_set_configure_req_enc(uint8_t * p_adv_handle,
ble_gap_adv_data_t const * p_adv_data,
ble_gap_adv_params_t const *p_adv_params,
uint8_t * const p_buf,
uint32_t * const p_buf_len);
Hi H.O,
ble_gap_adv_set_configure_req_enc() is the serialized function for sd_ble_gap_adv_set_configure()
You can find the documentation for the function in ble_gap_app.h in \components\serialization\application\codecs\ble\serializers folder.
Quoted here:
/**@brief Encodes @ref sd_ble_gap_adv_set_configure command request.
*
* @sa @ref ble_gap_adv_set_configure_rsp_dec for command response decoder.
*
* @param[in] p_adv_handle Advertising handle.
* @param[in] p_adv_data Pointer to a @ref ble_gap_adv_data_t structure.
* @param[in] p_adv_params Pointer to a @ref ble_gap_adv_params_t structure.
* @param[in] p_buf Pointer to buffer where encoded data command will be returned.
* @param[in, out] p_buf_len \c in: size of \p p_buf buffer.
* \c out: Length of encoded command packet.
*
* @retval NRF_SUCCESS Encoding success.
* @retval NRF_ERROR_NULL Encoding failure. NULL pointer supplied.
* @retval NRF_ERROR_INVALID_LENGTH Encoding failure. Incorrect buffer length.
*/
uint32_t ble_gap_adv_set_configure_req_enc(uint8_t * p_adv_handle,
ble_gap_adv_data_t const * p_adv_data,
ble_gap_adv_params_t const *p_adv_params,
uint8_t * const p_buf,
uint32_t * const p_buf_len);
Hi Hung Bui-san,
Thank you very much for your reply.
This description is not included in your Infocenter, why is the reason?
If the definite reason. , let me know.
B.R.
Hi H.O,
The ble_gap_adv_set_configure_req_enc() is an implementation in the SDK, not a Softdevice's function. So unlike the ble_gap_adv_set_configure() the ble_gap_adv_set_configure_req_enc() doesn't have the description on Infocenter.