-
Notifications
You must be signed in to change notification settings - Fork 3k
BLE: Clarify ble event docs with crossreferences #14820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -302,7 +302,7 @@ class Gap { | |
*/ | ||
struct EventHandler { | ||
/** | ||
* Called when an advertising device receive a scan response. | ||
* Called when an advertising device receive a scan request. | ||
* | ||
* @param event Scan request event. | ||
* | ||
|
@@ -319,6 +319,8 @@ class Gap { | |
* | ||
* @param event Advertising start event. | ||
* | ||
* @note Check event.getStatus() to see if advertising started successfully | ||
* | ||
* @see startAdvertising() | ||
*/ | ||
virtual void onAdvertisingStart(const AdvertisingStartEvent &event) | ||
|
@@ -333,7 +335,8 @@ class Gap { | |
* | ||
* @param event Advertising end event. | ||
* | ||
* @see startAdvertising() | ||
* @note Check event.getStatus() to see if advertising ended successfully | ||
* | ||
* @see stopAdvertising() | ||
* @see onConnectionComplete() | ||
*/ | ||
|
@@ -409,8 +412,9 @@ class Gap { | |
} | ||
|
||
/** | ||
* Called when connection attempt ends or an advertising device has been | ||
* connected. | ||
* Called when connection attempt ends. Check event.getStatus() to see if connection | ||
* was established. If this device is the peripheral and it as advertising this will | ||
* end advertising which will also create the onAdvertisingEnd event. | ||
* | ||
* @see startAdvertising() | ||
* @see connect() | ||
|
@@ -431,8 +435,8 @@ class Gap { | |
* | ||
* @version 4.1+. | ||
* | ||
* @note This event is not generated if connection parameters update | ||
* is managed by the middleware. | ||
* @note This event will only be produced if manageConnectionParametersUpdateRequest(true) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you address this ? I think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, I misundestood, I though you meant the doc for manageConnectionParametersUpdateRequest isn't cross refed, so I added the @see over there. |
||
* was called. Otherwise the stack will handle the request and no event will be generated. | ||
* | ||
* @see manageConnectionParametersUpdateRequest() | ||
* @see acceptConnectionParametersUpdate() | ||
|
@@ -553,6 +557,8 @@ class Gap { | |
/** | ||
* Function invoked when the privacy subsystem has been enabled and is | ||
* ready to be used. | ||
* | ||
* @see enablePrivacy() | ||
*/ | ||
virtual void onPrivacyEnabled() | ||
{ | ||
|
@@ -1286,6 +1292,8 @@ class Gap { | |
* false to disable it. | ||
* | ||
* @return BLE_ERROR_NONE in case of success or an appropriate error code. | ||
* | ||
* @see EventHandler::onPrivacyEnabled() | ||
*/ | ||
ble_error_t enablePrivacy(bool enable); | ||
|
||
|
@@ -1433,7 +1441,7 @@ class Gap { | |
*/ | ||
ble_error_t reset(); | ||
|
||
/** | ||
/** | ||
* Register a Gap shutdown event handler. | ||
* | ||
* The handler is called when the Gap instance is about to shut down. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.