Function esp_idf_sys::esp_ble_gatts_add_char_descr
source · pub unsafe extern "C" fn esp_ble_gatts_add_char_descr(
service_handle: u16,
descr_uuid: *mut esp_bt_uuid_t,
perm: esp_gatt_perm_t,
char_descr_val: *mut esp_attr_value_t,
control: *mut esp_attr_control_t,
) -> esp_err_t
Expand description
@brief This function is called to add characteristic descriptor. When it’s done, a callback event ESP_GATTS_ADD_DESCR_EVT is called to report the status and an ID number for this descriptor.
@param[in] service_handle: service handle to which this characteristic descriptor is to be added. @param[in] perm: descriptor access permission. @param[in] descr_uuid: descriptor UUID. @param[in] char_descr_val : Characteristic descriptor value @param[in] control : attribute response control byte @return - ESP_OK : success - other : failed