Function esp_idf_svc::hal::sys::esp_ble_gatts_create_service
source ยท pub unsafe extern "C" fn esp_ble_gatts_create_service(
gatts_if: u8,
service_id: *mut esp_gatt_srvc_id_t,
num_handle: u16,
) -> i32
Expand description
@brief Create a service. When service creation is done, a callback event ESP_GATTS_CREATE_EVT is called to report status and service ID to the profile. The service ID obtained in the callback function needs to be used when adding included service and characteristics/descriptors into the service.
@param[in] gatts_if: GATT server access interface @param[in] service_id: service ID. @param[in] num_handle: number of handle requested for this service.
@return - ESP_OK : success - other : failed