main/ble_gatts.h

Mon, 17 Apr 2023 14:54:35 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 17 Apr 2023 14:54:35 +0200
changeset 31
ec5c7794dcd6
permissions
-rw-r--r--

Added basic BLE code.

/**
 * @file ble_gatts.h
 * @brief BLE GATTS services.
 */

#ifndef _BLE_GATTS_H
#define _BLE_GATTS_H


/// Battery Service Attributes Indexes
enum
{
    BAS_IDX_SVC,

    BAS_IDX_BATT_LVL_CHAR,
    BAS_IDX_BATT_LVL_VAL,
    BAS_IDX_BATT_LVL_NTF_CFG,
    BAS_IDX_BATT_LVL_PRES_FMT,

    BAS_IDX_NB,
};


esp_err_t ble_balkon_gatts_register(void);
esp_err_t ble_balkon_gatts_app_register(void);
esp_err_t ble_balkon_gatts_set_mtu(void);

#endif

mercurial