-
Notifications
You must be signed in to change notification settings - Fork 3k
Ble extended advertising #8738
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
Ble extended advertising #8738
Changes from all commits
Commits
Show all changes
361 commits
Select commit
Hold shift + click to select a range
b983261
fix names
paul-szczepanek-arm 519f755
ppm conversion
paul-szczepanek-arm 62b38cf
connection complete event
paul-szczepanek-arm fd880d1
fix swapping
paul-szczepanek-arm 565f1e0
fix first element of array selection
paul-szczepanek-arm 87887cc
rename phy to index
paul-szczepanek-arm 32c303d
missing return
paul-szczepanek-arm 02d9b35
assert added
paul-szczepanek-arm a3820c8
removed impossible case
paul-szczepanek-arm 216dd6d
we need clamping while we wait for c++17
paul-szczepanek-arm c0f4b86
clamp values
paul-szczepanek-arm 365a6c8
set random address
paul-szczepanek-arm 2cdff44
cancel connection
paul-szczepanek-arm 8cc580d
only one connection event needed
paul-szczepanek-arm 68b5aad
ppm case
paul-szczepanek-arm 9b77f9d
default values and func names
paul-szczepanek-arm 8733d52
event types fixed
paul-szczepanek-arm 00da0e5
fix review comments
paul-szczepanek-arm b6c7bd7
Merge pull request #1 from paul-szczepanek-arm/vincent
pan- 74c2def
BLE: Fix mutability in ble::advertising_event_t
pan- 194e2cb
BLE: Move common type from pal to ble namespace.
pan- 6a63948
BLE: Add phy in sync exstablished event.
pan- f136b0c
BLE: Rework Gap event handler.
pan- e04fd87
units
paul-szczepanek-arm 8e18e19
new units
paul-szczepanek-arm 7b44395
comparison operator
paul-szczepanek-arm 57e4cdd
new units
paul-szczepanek-arm d01b4a5
docs
paul-szczepanek-arm cfde4ed
disallow removing the legacy handle
paul-szczepanek-arm bb8892a
more docs
paul-szczepanek-arm 4f769df
merge fail
paul-szczepanek-arm 642602c
merge cleanup
paul-szczepanek-arm 9fc577d
docs
paul-szczepanek-arm 360336c
docs
paul-szczepanek-arm 8fe07b4
docs
paul-szczepanek-arm fa3869c
docs
paul-szczepanek-arm 9604c01
BLE: Introduce Duration and Bounded classes.
pan- ff9b380
BLE: Use secure types in GapScanParameters.
pan- 09d22a3
BLE: Address special case when advertising payload size is 0.
pan- 6fccb11
BLE: Deal with random address rotation where appropriate.
pan- 3e884a3
BLE: Initialisation of legacy advertising set.
pan- 5ad50a2
BLE: Add PHY precondition check in setScanParameters.
pan- 4de9a61
BLE: Add strict Duration type
pan- da22df7
docs and synchronise connection result with other events
paul-szczepanek-arm e9177fa
docs
paul-szczepanek-arm 472e9ff
Update mbed-os/features/FEATURE_BLE/ble/Gap.h
pan- 6eee528
Update mbed-os/features/FEATURE_BLE/ble/Gap.h
pan- 0f4ac44
docs
paul-szczepanek-arm f7310a0
docs
paul-szczepanek-arm cf69013
docs
paul-szczepanek-arm 2d1362c
BLE: Move GapScanParameters header into ble/gap/ScanParameters
pan- 4d33540
BLE: rename GapExtendedConnectParameters_t into ConnectionParameters
pan- 3737e38
BLE: Expose ble::pal::connection_role_t in ble namespace.
pan- 6f21326
BLE: Move Gap event types in dedicated file.
pan- 6870349
BLE: Extract types from GapAdvertisingConstant and add them into ble …
pan- 20d5de7
BLE: Move ble::Duration in its own file.
pan- a1d464f
move ble::Bounded in its own file.
pan- 1324116
BLE: rename duration type and extract them out of Gap.
pan- f0cbd9f
BLE: move GapAdvertisingParameters to ble::AdvertisingParameters
pan- 07cf0f5
BLE: Move ConnectionParameters into ble namespace.
pan- 5dc6c1d
BLE: move ScanParameters into ble namespace.
pan- f3c47f1
docs
paul-szczepanek-arm 05fb66a
docs
paul-szczepanek-arm 09f71d2
move feature support into user api
paul-szczepanek-arm 65d84e4
fix case
paul-szczepanek-arm 812b86a
BLE: cleanup ble::AdvertisingParameters
pan- a043f49
BLE: Use common ble::own_address_type_t in ble::ScanParameters.
pan- d659bc6
BLE: unwrap own_address_type value in GenericGap.
pan- 184533a
BLE: Fix second time base.
pan- b34d09c
BLE: Fix AdvertisingParameters::getChannelXX functions.
pan- a255a79
BLE: Improve ble::AdvertisingParameters field declaration.
pan- 47c4784
BLE: Rework ble::AdvertisingParameters
pan- 2477d0e
BLE: Fix missing initialization in ble::phy_set_t.
pan- 823825e
BLE: Fix ternary expression return type.
pan- b4fe04a
BLE: Improve readability of AdvertisingDataBuilder::appendField
pan- b8db58f
BLE: Move new gap types in ble/gap/Types.h
pan- b59b29b
reject conenct request if exteneded not enabled but required
paul-szczepanek-arm b4c704c
BLE: Move leftover target_peer_address_type_t in ble/gap/Types.h
pan- db55540
BLE: merge ble::advertising_type_t and pal::advertising_type_t.
pan- c6cdfd0
BLE: Merve ble::advertising_policy_mode and pal::advertising_filter_p…
pan- 3b334b8
BLE: Revert space change in ble/GapAdvertisingParams.h
pan- 07d73d5
BLE: merge ble::scanning_policy_mode_t and gap::scanning_filter_policy_t
pan- cc8b43f
update gap overview
paul-szczepanek-arm d1cb1e1
BLE: merge ble::scanning_filter_duplicates_t and pal::duplicate_filter_t
pan- ad127d7
BLE: merge ble::own_address_t and pal::own_address_type_t.
pan- 33ab365
advertising data
paul-szczepanek-arm 7ea560a
size clarification
paul-szczepanek-arm d8eb9de
fix names
paul-szczepanek-arm 7aa1e95
BLE: merge ble::target_peer_address_type_t and advertising_peer_addre…
pan- 3e72570
move values out of GAP
paul-szczepanek-arm 493c858
BLE: cleanup of clock_accuracy_t
pan- c1cd5ed
BLE: Cleanup ble::connection_role_t.
pan- 7123364
BLE: remove not required prefixes in ble::ConnectionParameters.
pan- 6c75c53
BLE: Move gap events into ble namespace.
pan- 46815cc
BLE: remove ble:: prefixes in ble::ScanParameters.
pan- 5f435de
BLE: remove ble:: prefixes in ble::AdvertisingParameters.
pan- 6de585f
BLE: rename Gap::IsFeatureSupported into Gap::isFeatureSupported
pan- d3c26f4
BLE: rename functions that trap concurrent use of incorect GAP APIs
pan- fa4aa8f
BLE: remove inner V2 typedef in Gap class.
pan- c165bd9
BLE: Add explicit constructor for Duration that accepts millisecond i…
pan- 7d7ccea
BLE: clean separation between GAP v1 and GAP v2 API.
pan- da7d4a0
BLE: Introduce new disconnection API.
pan- 862775d
extra data builder funcs
paul-szczepanek-arm 6ef90b5
remove data instead of replace data
paul-szczepanek-arm 838de80
flags no longer a safenum
paul-szczepanek-arm 0d95ccb
fix enum values
paul-szczepanek-arm b6a0c8a
helper functinos
paul-szczepanek-arm 869bb30
BLE: Add API to manage GAP connection parameter updates.
pan- 4b6eede
UUID handling
paul-szczepanek-arm 4a85020
remove redundant calulations
paul-szczepanek-arm 0b1b07f
service data
paul-szczepanek-arm 7ab45e4
individual operations
paul-szczepanek-arm 656aa4f
CONNECTION INTERVAL HELPER
paul-szczepanek-arm aefd92a
docs
paul-szczepanek-arm 91fa548
verify parameters
paul-szczepanek-arm 92cbec3
requested services
paul-szczepanek-arm acd7ec3
check sizes, use memcpy
paul-szczepanek-arm e54c0ed
simplify UUID funcs
paul-szczepanek-arm 062c301
check min size for custom data
paul-szczepanek-arm 181ce00
fix size checks
paul-szczepanek-arm 84dd169
allow long uuids in service data
paul-szczepanek-arm 02d61cf
BLE: Move new version of ::GAP in a new class ::ble::Gap .
pan- 79518ca
service data allows both types of UUIDs
paul-szczepanek-arm 935444d
use correct type for service data based on uuid length
paul-szczepanek-arm e5e7f3e
pull in inherited overloads
paul-szczepanek-arm 75e6128
solve link problems
paul-szczepanek-arm b0b6346
added extra constructor
paul-szczepanek-arm 376cbd2
fixed index and default constructor in conn params
paul-szczepanek-arm 2e6fefa
missing defaults
paul-szczepanek-arm 0b746a7
BLE: prefix inclusion of Gap header with "ble/"
pan- 1802909
BLE: Move Gap deprecated implementation in source/Gap.cpp .
pan- a9fd003
BLE: Move uses of deprecated Gap functions into isolated and warning …
pan- 4fdb9c7
BLE: provide default implementation ::ble::Gap::isFeatureSupported
pan- bc6078e
BLE: prevent warning from deprecated API implementation in GenericGap.
pan- dd2c85d
BLE: Fix signeness warning in AdvertisingDataBuilder.
pan- c54e0d9
BLE: Move Gap::StopScan into ::ble::Gap::stopScan .
pan- 586aea5
BLE: Move privacy subsystem to ::ble::Gap.
pan- 0c2efc4
BLE: Fix return value of GenericGap::manageConnectionParametersUpdate…
pan- 86dc6d7
BLE: Fix includes of ble/gap/AdvertisingDataBuilder.h ,
pan- dfa7749
BLE: Split ble/gap/AdvertisingDataBuilder.h into declaration and impl…
pan- 87f3645
BLE: return immutable buffer from AdvertisingDataBuilder::getAdvertis…
pan- e49b523
fix missing index
paul-szczepanek-arm 1bf5826
pull in more inherited overloads
paul-szczepanek-arm ed10543
missing virtual
paul-szczepanek-arm b293426
missing overloads
paul-szczepanek-arm e9c0f58
fix constness to match recent const changes
paul-szczepanek-arm 80db38c
BLE: Cleanup bounded and document it.
pan- 7fb863e
missing virtual
paul-szczepanek-arm 7b0cb27
added type conversion for connection params
paul-szczepanek-arm 07c0591
BLE: Add Duration::forever() function.
pan- 49f5c7f
BLE: Fix Bounded constant declaration.
pan- 62674e5
BLE: Handle forever value in ble::Duration operators.
pan- e602a5f
BLE: Improve static constant of Range and Duration.
pan- ba931f1
BLE: Document ble::Duration and satelite classes.
pan- 02cf9ea
moved some funcs to cpp, moved cpp to source folder
paul-szczepanek-arm fea3ac8
BLE: Add forever information to ble::adv_duration_t and ble::scan_dur…
pan- 9f39dba
BLE: Fix constant declaration of ble::AdvertisingParameters.
pan- c9dcef1
return func made const
paul-szczepanek-arm cd5dabf
duration added valueInMs
paul-szczepanek-arm 2eaec28
simple scan paramater constructor
paul-szczepanek-arm 52318e4
BLE: rename AdvertisingParameters::*PolicyMode into AdvertisingParame…
pan- 8d03d67
BLE: Improve ble::AdvertisingParameters documentation.
pan- 1841f4e
BLE: Document ble::ConnectionParameters.
pan- 49455dc
BLE: set the phy as first parameter in ble::ConnectionParameters.
pan- 6e4e733
BLE: Add code example for ble::ConnectionParameters.
pan- 8fc62ef
BLE: Improve naming consistency of ble::Gap::EventHandler functions.
pan- 430777e
BLE: Update documentation of Gap::Events.
pan- dea2ae9
BLE: Exclude Gap Event constructors from documentation.
pan- 70ec1cf
BLE: Improve naming consistency of Gap event types.
pan- 1b734a4
BLE: Improve ble::Gap::EventHandler documentation.
pan- f64b37b
BLE: Fix function braces opening in header files.
pan- b49870d
BLE: Fix code formating issues in Gap subsystem.
pan- e9637c4
BLE: Remove ble::clamp as it is not used anywhere.
pan- 2a08549
BLE: rename ble::Forever into ble::Value.
pan- d32354a
BLE: Fix compiler warning about unused variable.
pan- 27dd084
BLE: remove ble::pal::extended_advertising_report_event_type_t as it …
pan- 76416b2
BLE: Improve implementation readability of ble::advertising_event_t
pan- 30c6432
BLE: Address code formating issue in CordioPalGap implementation.
pan- eda3bfb
BLE: Explain magic constant in ble::Gap implementation.
pan- ce2460a
BLE: expose representation type and pointer to the inner storage in S…
pan- 6c09b6c
BLE: Expose representation type in ble::Duration.
pan- 643fad0
BLE: Improve code by explaining or textually defining constants
pan- 6cb7645
BLE: Improve NULL check in ble::AdvertisingDataBuilder implementation.
pan- 4058f09
BLE: Extract computation of minimumSupervisionTimeout.
pan- 6b8b1d0
BLE: remove minimize fragmentation parameter in Gap.
pan- 936f1c5
BLE: Update ble::Gap documentation.
pan- 4db8ddf
BLE: fix name of functions in ble::ScanParameters.
pan- e130bec
BLE: rework ScanParameters::phy_configuration_t
pan- 3119f94
BLE: Construct a phy_set_t from a phy_t.
pan- 11b1e91
BLE: Rework ScanParameters construction.
pan- 27011fd
BLE: Document ble::ScanParameters.
pan- 9621b26
BLE: Reorganize ble::gap documentation group.
pan- 884d870
BLE: Improve gap/Types.h documentation.
pan- 78d4a9b
BLE: Cleanup enum duplicates in gap/Types.h
pan- dff8f25
BLE: Improve Duration documentation.
pan- 0407ee8
BLE: move privacy configuration type in ble namespace.
pan- be7cc41
BLE: doxygen fixes.
pan- 09ba26c
BLE: Move advertising data types in their own file.
pan- d4a66ae
BLE: Add an AdvertisingDataParser
pan- 8cbc536
BLE: Add a simple builder for AdvertisingData.
pan- 208b1bd
fix size calculation for UUID data payload
paul-szczepanek-arm 528deb1
fix wrong variable being swapped
paul-szczepanek-arm e0e186c
replace consts with a private enum
paul-szczepanek-arm a03aaa2
simplify and explain swapping
paul-szczepanek-arm f3a64fe
replace magic numbers
paul-szczepanek-arm bee115c
replace magic numbers
paul-szczepanek-arm d3d93e1
BLE: Improve ble::Gap documentation.
pan- c9e8501
make PHY case consistent
paul-szczepanek-arm 190b9bc
BLE: Fix address type in ::ble::Gap::connect
pan- a915748
BLE: Fallback to legacy connect when required.
pan- 3aa91ec
BLE: return phy_set_t in ConnectionParameters::getPhySet
pan- 93b6ecf
BLE: initialize properly deprecated and non deprecated flags.
pan- d1b5c8c
BLE: Mark LEGACY_ADVERTISING_HANDLE as active in initialization.
pan- 89355b9
BLE: Check supervision timeout value in connect.
pan- 2d63714
BLE: Implement connection parameter management in GAP.
pan- f71e08c
BLE: tag API uses in GenericGap.
pan- e54e3ea
cast no longer needed
paul-szczepanek-arm 2b94b66
deprecate services that are not useless
paul-szczepanek-arm f4a560d
reset advertising sets on reset
paul-szczepanek-arm 6f3a9ca
legacy handle starts off present in _existing_sets
paul-szczepanek-arm bed7677
stop advertising before reseting
paul-szczepanek-arm bf535af
check feature support before calling extended functnions
paul-szczepanek-arm ac47736
BLE: Enable cordio extended modules if available.
pan- 7f33145
BLE: Fix extended advertising check.
pan- 3ae38ac
always set existing set for legacy handle
paul-szczepanek-arm daf0f42
BLE: Fix advertising set issues on legacy controllers.
pan- 0ef7a40
BLE: Fix set advertising paylaod dispatch.
pan- 5618558
BLE: Report legacy advertising with new API.
pan- 4d986bf
fix is feature enabled condition and made in consistent
paul-szczepanek-arm a14f143
set active set to false when stoping advertising
paul-szczepanek-arm ef1552a
BLE: report legacy connection event in new event handler.
pan- b552f8c
fix return code for implemented func
paul-szczepanek-arm 0c9ce24
BLE: remove unwanted trace.
pan- 66a9e63
BLE: report correct event type for legacy advertising report.
pan- 7b1e225
BLE: Fix address name in NRF targets.
pan- a65296e
BLE: removed resolved TODO.
pan- ecf8c73
Edit Gap.h
451f9aa
Edit Bounded.h
7df90ba
Edit AdvertisingDataBuilder.h
5347a8a
Update Duration.h in consistent casing
31a73fc
Edit AdvertisitngDataSimpleBuilder.h
c904ac8
Edit AdvertisingParameters.h
2e02869
Edit ConnectionParameters.h
b4c3455
Edit Events.h
431402c
Edit Gap.h
08ef3f7
Edit iBeacon.h
fa784c2
Edit URIBeaconCOnfigService.h
d00ad8b
Edit ScanParameters.h
bbb67a6
Edit Types.h
6677fab
BLE: Move source/Gap.cpp -> source/LegacyGap.cpp
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.