Skip to content

Commit 7de71b7

Browse files
committed
Rebuild variants on mbed 6.13
1 parent 1177e48 commit 7de71b7

File tree

519 files changed

+2421
-1014
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

519 files changed

+2421
-1014
lines changed

cores/arduino/mbed/connectivity/FEATURE_BLE/include/ble/Gap.h

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ class Gap {
302302
*/
303303
struct EventHandler {
304304
/**
305-
* Called when an advertising device receive a scan response.
305+
* Called when an advertising device receive a scan request.
306306
*
307307
* @param event Scan request event.
308308
*
@@ -319,6 +319,8 @@ class Gap {
319319
*
320320
* @param event Advertising start event.
321321
*
322+
* @note Check event.getStatus() to see if advertising started successfully
323+
*
322324
* @see startAdvertising()
323325
*/
324326
virtual void onAdvertisingStart(const AdvertisingStartEvent &event)
@@ -333,7 +335,8 @@ class Gap {
333335
*
334336
* @param event Advertising end event.
335337
*
336-
* @see startAdvertising()
338+
* @note Check event.getStatus() to see if advertising ended successfully
339+
*
337340
* @see stopAdvertising()
338341
* @see onConnectionComplete()
339342
*/
@@ -409,8 +412,9 @@ class Gap {
409412
}
410413

411414
/**
412-
* Called when connection attempt ends or an advertising device has been
413-
* connected.
415+
* Called when connection attempt ends. Check event.getStatus() to see if connection
416+
* was established. If this device is the peripheral and it was advertising this will
417+
* end the advertising set which will also create the onAdvertisingEnd event.
414418
*
415419
* @see startAdvertising()
416420
* @see connect()
@@ -431,8 +435,8 @@ class Gap {
431435
*
432436
* @version 4.1+.
433437
*
434-
* @note This event is not generated if connection parameters update
435-
* is managed by the middleware.
438+
* @note This event will only be produced if manageConnectionParametersUpdateRequest() was called
439+
* with true. Otherwise the stack will handle the request and no event will be generated.
436440
*
437441
* @see manageConnectionParametersUpdateRequest()
438442
* @see acceptConnectionParametersUpdate()
@@ -553,6 +557,8 @@ class Gap {
553557
/**
554558
* Function invoked when the privacy subsystem has been enabled and is
555559
* ready to be used.
560+
*
561+
* @see enablePrivacy()
556562
*/
557563
virtual void onPrivacyEnabled()
558564
{
@@ -1087,6 +1093,7 @@ class Gap {
10871093
* @see EventHandler::onUpdateConnectionParametersRequest when a central
10881094
* receives a request to update the connection parameters.
10891095
*
1096+
* @see onUpdateConnectionParametersRequest
10901097
* @see acceptConnectionParametersUpdate to accept the request.
10911098
* @see rejectConnectionParametersUpdate to reject the request.
10921099
*/
@@ -1286,6 +1293,8 @@ class Gap {
12861293
* false to disable it.
12871294
*
12881295
* @return BLE_ERROR_NONE in case of success or an appropriate error code.
1296+
*
1297+
* @see EventHandler::onPrivacyEnabled()
12891298
*/
12901299
ble_error_t enablePrivacy(bool enable);
12911300

@@ -1433,7 +1442,7 @@ class Gap {
14331442
*/
14341443
ble_error_t reset();
14351444

1436-
/**
1445+
/**
14371446
* Register a Gap shutdown event handler.
14381447
*
14391448
* The handler is called when the Gap instance is about to shut down.

cores/arduino/mbed/connectivity/FEATURE_BLE/include/ble/GattClient.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ class GattClient {
107107
*
108108
* @param connectionHandle The handle of the connection that changed the size.
109109
* @param attMtuSize
110+
*
111+
* @see negotiateAttMtu()
110112
*/
111113
virtual void onAttMtuChange(
112114
ble::connection_handle_t connectionHandle,

cores/arduino/mbed/connectivity/FEATURE_BLE/include/ble/GattServer.h

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ class GattServer {
112112
*
113113
* @param connectionHandle The handle of the connection that changed the size.
114114
* @param attMtuSize
115+
*
116+
* @see negotiateAttMtu()
115117
*/
116118
virtual void onAttMtuChange(
117119
ble::connection_handle_t connectionHandle,
@@ -162,14 +164,14 @@ class GattServer {
162164

163165
/**
164166
* Function invoked when the GattServer instance is about
165-
* to be shut down. This can result in a call to reset() or BLE::reset().
167+
* to be shut down. This can be the result of a call to reset() or BLE::reset().
166168
*/
167169
virtual void onShutdown(const GattServer &server) {
168170
(void)server;
169171
}
170172

171173
/**
172-
* Function invoked when the client has subscribed to characteristic updates
174+
* Function invoked when the client has subscribed to characteristic updates.
173175
*
174176
* @note params has a temporary scope and should be copied by the
175177
* application if needed later
@@ -179,7 +181,7 @@ class GattServer {
179181
}
180182

181183
/**
182-
* Function invoked when the client has unsubscribed to characteristic updates
184+
* Function invoked when the client has unsubscribed from characteristic updates.
183185
*
184186
* @note params has a temporary scope and should be copied by the
185187
* application if needed later
@@ -303,9 +305,11 @@ class GattServer {
303305
* GattServer state.
304306
*
305307
* @note This function is meant to be overridden in the platform-specific
306-
* subclass. Overides must call the parent function before any cleanup.
308+
* subclass. Overrides must call the parent function before any cleanup.
307309
*
308310
* @return BLE_ERROR_NONE on success.
311+
*
312+
* @see EventHandler::onShutdown()
309313
*/
310314
ble_error_t reset();
311315

@@ -401,6 +405,9 @@ class GattServer {
401405
*
402406
* @return BLE_ERROR_NONE if the attribute value has been successfully
403407
* updated.
408+
*
409+
* @see EventHandler::onDataSent(), this will only be triggered if there are
410+
* client subscribed and the localOnly parameter is set to false.
404411
*/
405412
ble_error_t write(
406413
GattAttribute::Handle_t attributeHandle,
@@ -429,6 +436,9 @@ class GattServer {
429436
*
430437
* @return BLE_ERROR_NONE if the attribute value has been successfully
431438
* updated.
439+
*
440+
* @see EventHandler::onDataSent(), this will only be triggered if there are
441+
* client subscribed and the localOnly parameter is set to false.
432442
*/
433443
ble_error_t write(
434444
ble::connection_handle_t connectionHandle,
@@ -448,6 +458,8 @@ class GattServer {
448458
*
449459
* @return BLE_ERROR_NONE if the connection and handle are found. False
450460
* otherwise.
461+
*
462+
* @see EventHandler::onDataSent()
451463
*/
452464
ble_error_t areUpdatesEnabled(
453465
const GattCharacteristic &characteristic,
@@ -466,6 +478,8 @@ class GattServer {
466478
*
467479
* @return BLE_ERROR_NONE if the connection and handle are found. False
468480
* otherwise.
481+
*
482+
* @see EventHandler::onDataSent()
469483
*/
470484
ble_error_t areUpdatesEnabled(
471485
ble::connection_handle_t connectionHandle,

0 commit comments

Comments
 (0)