Function esp_idf_sys::ble_gatts_add_svcs
source · pub unsafe extern "C" fn ble_gatts_add_svcs(
svcs: *const ble_gatt_svc_def,
) -> c_int
Expand description
Queues a set of service definitions for registration. All services queued in this manner get registered when ble_gatts_start() is called.
@param svcs An array of service definitions to queue for registration. This array must be terminated with an entry whose ‘type’ equals 0.
@return 0 on success; BLE_HS_ENOMEM on heap exhaustion.