Function esp_idf_svc::sys::esp_ble_gatts_add_included_service
source · pub unsafe extern "C" fn esp_ble_gatts_add_included_service(
service_handle: u16,
included_service_handle: u16,
) -> i32
Expand description
@brief This function is called to add an included service. This function have to be called between ‘esp_ble_gatts_create_service’ and ‘esp_ble_gatts_add_char’. After included service is included, a callback event ESP_GATTS_ADD_INCL_SRVC_EVT is reported the included service ID.
@param[in] service_handle: service handle to which this included service is to be added. @param[in] included_service_handle: the service ID to be included.
@return - ESP_OK : success - other : failed