Select one of the symbols to view example projects that use it.
 
Outline
#define H_BLUEDROID_GATTS_
#include "sdkconfig.h"
#include "esp_bt.h"
#include "esp_gap_ble_api.h"
#include "esp_gatts_api.h"
#include "esp_bt_defs.h"
#include "esp_bt_main.h"
#include "esp_bt_device.h"
#include "esp_gatt_common_api.h"
#define PROFILE_NUM
#define PROFILE_A_APP_ID
#define GATTS_SERVICE_UUID_TEST_A
#define GATTS_CHAR_UUID_TEST_A
#define GATTS_DESCR_UUID_TEST_A
#define GATTS_NUM_HANDLE_TEST_A
#define adv_config_flag
#define scan_rsp_config_flag
#define TEST_DEVICE_NAME
#define TEST_MANUFACTURER_DATA_LEN
#define GATTS_DEMO_CHAR_VAL_LEN_MAX
#define PREPARE_BUF_MAX_SIZE
Files
loading...
SourceVuESP-IDF Framework and Examplesadvanced_https_ota samplemain/ble_helper/include/bluedroid_gatts.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #ifndef H_BLUEDROID_GATTS_ #define H_BLUEDROID_GATTS_ #include "sdkconfig.h" #if CONFIG_BT_CONTROLLER_ENABLED && CONFIG_BT_BLE_ENABLED #ifdef __cplusplus extern "C" { #endif #include "esp_bt.h" #include "esp_gap_ble_api.h" #include "esp_gatts_api.h" #include "esp_bt_defs.h" #include "esp_bt_main.h" #include "esp_bt_device.h" #include "esp_gatt_common_api.h"7 includes #define PROFILE_NUM 1 #define PROFILE_A_APP_ID 0 #define GATTS_SERVICE_UUID_TEST_A 0x00FF #define GATTS_CHAR_UUID_TEST_A 0xFF01 #define GATTS_DESCR_UUID_TEST_A 0x3333 #define GATTS_NUM_HANDLE_TEST_A 4 #define adv_config_flag (1 << 0) #define scan_rsp_config_flag (1 << 1) #define TEST_DEVICE_NAME "ESP_OTA_GATTS" #define TEST_MANUFACTURER_DATA_LEN 17 #define GATTS_DEMO_CHAR_VAL_LEN_MAX 0x40 #define PREPARE_BUF_MAX_SIZE 102412 defines struct gatts_profile_inst { esp_gatts_cb_t gatts_cb; uint16_t gatts_if; uint16_t app_id; uint16_t conn_id; uint16_t service_handle; esp_gatt_srvc_id_t service_id; uint16_t char_handle; esp_bt_uuid_t char_uuid; esp_gatt_perm_t perm; esp_gatt_char_prop_t property; uint16_t descr_handle; esp_bt_uuid_t descr_uuid; }{...}; typedef struct { uint8_t *prepare_buf; int prepare_len; }{...} prepare_type_env_t; void gatts_profile_a_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t gatts_if, esp_ble_gatts_cb_param_t *param); void example_write_event_env(esp_gatt_if_t gatts_if, prepare_type_env_t *prepare_write_env, esp_ble_gatts_cb_param_t *param); void example_exec_write_event_env(prepare_type_env_t *prepare_write_env, esp_ble_gatts_cb_param_t *param); void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param); void gatts_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_t gatts_if, esp_ble_gatts_cb_param_t *param); #ifdef __cplusplus }{...} #endif /* ... */ #endif /* ... */ #endif
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.