-
Notifications
You must be signed in to change notification settings - Fork 3k
Ble extended advertising fixes #8904
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
daee12d
BLE: Fix set check in GenerigGap::stopAdvertising.
pan- 1a6246f
BLE: Remove double handling of DM_CONN_OPEN_IND .
pan- 5302a7f
consistent errors
paul-szczepanek-arm c23911e
BLE: Fix extraction of advertising element type.
pan- e7ef0b7
BLE: protect event signaling flag from concurent accesses.
pan- 78468fb
BLE: Use RANDOM address per default for Advertising, Scan and Connect…
pan- 402a447
BLE: Ensure scan process is stopped before connecting.
pan- 3ddcdf2
BLE: Fix ble::Gap::getMaxAdvertisingDataLength return type.
pan- 4ed3f56
BLE: Fix name of DisconnectionEvent into DisconnectionCompleteEvent f…
pan- e8972a7
BLE: provide better default connection parameters.
pan- e026bce
BLE: Change parameter order of ble::Gap::startScan
pan- dc3ff6a
BLE: Rename ConnectionParameters::setFilterPolicy into setFilter for …
pan- 5abf2f0
BLE: Reintroduce refactored type identifier in privacy configuration …
pan- ed426c5
BLE: rename ConnectionParameters::getFilterPolicy into getFilter for …
pan- d1b0642
BLE: rename AdvertisingReportEvent::getAdvertisingData into getPayload.
pan- 472c572
BLE: Fix doxygen parameter declaration order.
pan- File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -427,7 +427,7 @@ class Gap { | |
* | ||
* @see disconnect() | ||
*/ | ||
virtual void onDisconnectionComplete(const DisconnectionEvent &event) | ||
virtual void onDisconnectionComplete(const DisconnectionCompleteEvent &event) | ||
{ | ||
} | ||
|
||
|
@@ -536,7 +536,7 @@ class Gap { | |
* | ||
* @return Maximum advertising data length supported. | ||
*/ | ||
virtual uint8_t getMaxAdvertisingDataLength(); | ||
virtual uint16_t getMaxAdvertisingDataLength(); | ||
|
||
/** Create an advertising set and apply the passed in parameters. The handle returned | ||
* by this function must be used for all other calls that accept an advertising handle. | ||
|
@@ -711,8 +711,8 @@ class Gap { | |
|
||
/** Start scanning. | ||
* | ||
* @param filtering Filtering policy. | ||
* @param duration How long to scan for. Special value 0 means scan forever. | ||
* @param filtering Filtering policy. | ||
* @param period How long to scan for in single period. If the period is 0 and duration | ||
* is nonzero the scan will last for single duration. | ||
* | ||
|
@@ -726,8 +726,8 @@ class Gap { | |
* @see EventHandler::onScanTimeout when scanning timeout. | ||
*/ | ||
virtual ble_error_t startScan( | ||
duplicates_filter_t filtering = duplicates_filter_t::DISABLE, | ||
scan_duration_t duration = scan_duration_t::forever(), | ||
duplicates_filter_t filtering = duplicates_filter_t::DISABLE, | ||
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. Needs doxygen update 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. Fixed. |
||
scan_period_t period = scan_period_t(0) | ||
); | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
any reason for these particular values?
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.
Yes, they are more balanced with common use cases than the previous one (62 to 124 ms for the connection interval instead of 7.5 to 4 seconds).