You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For more information about ArduinoBLE library please visit the official web page at:
17
17
https://github.com/arduino-libraries/ArduinoBLE
18
18
19
-
# Configuration
20
-
STM32Cube_WPAN has several configuration options, which are set in the `app_conf.h`.
21
-
This package has a default configuration named `app_conf_default.h`.
22
-
The user can include the file `app_conf_custom.h` to customize the ble application. Options wrapped in `#ifndef, #endif` in `app_conf_default.h` can be overwritten. Additional options can be added.
* Maximum number of simultaneous connections that the device will support.
55
+
* Valid values are from 1 to 8
56
+
*/
57
+
#defineCFG_BLE_NUM_LINK 8
58
+
59
+
/**
60
+
* Maximum number of Services that can be stored in the GATT database.
61
+
* Note that the GAP and GATT services are automatically added so this parameter should be 2 plus the number of user services
62
+
*/
63
+
#defineCFG_BLE_NUM_GATT_SERVICES 8
64
+
65
+
/**
66
+
* Maximum number of Attributes
67
+
* (i.e. the number of characteristic + the number of characteristic values + the number of descriptors, excluding the services)
68
+
* that can be stored in the GATT database.
69
+
* Note that certain characteristics and relative descriptors are added automatically during device initialization
70
+
* so this parameters should be 9 plus the number of user Attributes
71
+
*/
72
+
#defineCFG_BLE_NUM_GATT_ATTRIBUTES 68
73
+
74
+
/**
75
+
* Maximum supported ATT_MTU size
76
+
*/
77
+
#defineCFG_BLE_MAX_ATT_MTU (156)
78
+
79
+
/**
80
+
* Size of the storage area for Attribute values
81
+
* This value depends on the number of attributes used by application. In particular the sum of the following quantities (in octets) should be made for each attribute:
82
+
* - attribute value length
83
+
* - 5, if UUID is 16 bit; 19, if UUID is 128 bit
84
+
* - 2, if server configuration descriptor is used
85
+
* - 2*DTM_NUM_LINK, if client configuration descriptor is used
86
+
* - 2, if extended properties is used
87
+
* The total amount of memory needed is the sum of the above quantities for each attribute.
88
+
*/
89
+
#defineCFG_BLE_ATT_VALUE_ARRAY_SIZE (1344)
90
+
91
+
/**
92
+
* Prepare Write List size in terms of number of packet
0 commit comments