File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
connectivity/FEATURE_BLE/include/ble Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,41 @@ class GattServer {
132
132
(void )params;
133
133
}
134
134
135
+ /* *
136
+ * Function invoked when a client writes an attribute
137
+ *
138
+ * @note params has a temporary scope and should be copied by the
139
+ * application if needed later
140
+ */
141
+ virtual void onDataWritten (const GattWriteCallbackParams *params) {
142
+ (void )params;
143
+ }
144
+
145
+ /* *
146
+ * Function invoked when a client reads an attribute
147
+ *
148
+ * @note This functionality may not be available on all underlying stacks.
149
+ * Application code may work around that limitation by monitoring read
150
+ * requests instead of read events.
151
+ *
152
+ * @note params has a temporary scope and should be copied by the
153
+ * application if needed later
154
+ *
155
+ * @see GattCharacteristic::setReadAuthorizationCallback()
156
+ * @see isOnDataReadAvailable().
157
+ */
158
+ virtual void onDataRead (const GattReadCallbackParams *params) {
159
+ (void )params;
160
+ }
161
+
162
+ /* *
163
+ * Function invoked when the GattServer instance is about
164
+ * to be shut down. This can result in a call to reset() or BLE::reset().
165
+ */
166
+ virtual void onShutdown (const GattServer *server) {
167
+ (void )server;
168
+ }
169
+
135
170
/* *
136
171
* Function invoked when the client has subscribed to characteristic updates
137
172
*
You can’t perform that action at this time.
0 commit comments