Paul Szczeanek
110b190b38
fix privacy initialisation and give access to local identity
...
Initialises identity addres when privacy is enabled. Stores the identity. Retrieves local identity if previously stored.
2020-06-03 17:35:23 +01:00
Paul Szczeanek
73b4bebee0
add connection addresses to whitelist
2020-06-03 17:30:21 +01:00
Paul Szczeanek
bfdbcc7b4a
add accessor for local irk
2020-06-03 17:29:51 +01:00
Paul Szczeanek
05f7685a79
store local csrk and identity in the security db
2020-06-03 17:27:26 +01:00
Paul Szczeanek
d6a5bd2825
make number of db entries configurable
2020-06-03 17:07:47 +01:00
Lingkai Dong
8de604d485
Rename ConnectionParams_t -> PreferredConnectionParams_t
...
For actual connections, full ConnectionParameters is used. But
as per BLE specification, Generic Access Service can display
preferred connection parameters which is a smaller subset and
ConnectionParams_t matches exactly. Thus we rename/repurpose
it to PreferredConnectionParams_t.
2020-04-17 09:59:14 +01:00
Lingkai Dong
7c49aeb01f
Remove connection_params from internal on_connected()
...
The callback on_connected() in ConnectionEventMonitorEventHandler
contains a parameter ConnectionParams_t which is superceded by
ConnectionParameters. Since it's not used, remove it.
2020-04-17 09:59:13 +01:00
Lingkai Dong
9455f86954
BLE: replace legacy address types (BLEProtocol) with new ones
2020-04-17 09:59:08 +01:00
Lingkai Dong
2422efc9bb
GenericGap: clean up unused helper functions
2020-04-17 09:59:05 +01:00
Lingkai Dong
55ecc57ac9
BLE: use up-to-date structs for disconnections
2020-04-17 09:59:04 +01:00
Lingkai Dong
c17cf0f3f3
Add to Gap/GenericGap non-deprecated APIs originally in LegacyGap
2020-04-17 09:59:03 +01:00
Lingkai Dong
be3858cec2
BLE: update to use whitelist_t from ble namespace
2020-04-17 09:58:58 +01:00
Lingkai Dong
eee3b687c4
GenericGap: prepare legacy advertising set
...
This is based on (and supercedes) PR #10772 .
As the switches between old and new APIs do not exist anymore,
we create a function for legacy advertising set creation.
2020-04-17 09:56:24 +01:00
Lingkai Dong
a2a99291d4
BLE Gap: remove version one scan API
2020-04-17 09:56:24 +01:00
Lingkai Dong
d35a6b88a9
GenericGap: remove legacy dis/connection callbacks signalling
2020-04-17 09:56:22 +01:00
Lingkai Dong
6f701cd6ef
Remove deprecated implementations from GenericGap & LegacyGap
2020-04-17 09:56:21 +01:00
Vincent Coubard
c66dd7fd1f
BLE: Add an HCI driver API to set the random static address.
2020-01-28 13:29:11 +00:00
Lingkai Dong
6f7f1337cd
BLE: Replace uses of ArrayView with mbed::Span
...
The platform API mbed::Span provides the same features as ArrayView.
2019-06-07 16:18:55 +01:00
Vincent Coubard
de482e4029
BLE: Create and handle write_command Event.
...
This event is raised when a write command has been sent to the controller. It can be used to queue a new write command.
2019-05-14 17:13:51 +01:00
paul-szczepanek-arm
dad6844167
bounce scan timeout of the queue
2019-03-26 10:53:10 -05:00
Vincent Coubard
b183ba1d01
BLE - Use LowPower Ticker and Timer for address rotation and scan timeout.
2019-03-07 16:49:58 +00:00
Vincent Coubard
eeca03f952
BLE - Fix exclusion of getMaxAdvertisingSetNumber and getMaxAdvertisingDataLength
2019-02-28 16:29:21 +00:00
Vincent Coubard
831241df12
BLE - Cleanup GenericSecurityManager conditional directives
...
- Inheritance lisr
- Within constructor
- Within member declaration
- Private function declaration and definition.
2019-02-28 11:33:49 +00:00
Vincent Coubard
e706b6cc52
BLE - Cleanup Generic GattClient conditional directives.
...
- Inherithance list
- private functions exposed
- members declaration.
2019-02-28 11:32:51 +00:00
Vincent Coubard
07f3ca2723
BLE - Cleanup GenericGap conditional directive
...
- Within constructor
- Within member declaration
- Private function declaration and definition.
2019-02-28 11:31:48 +00:00
Vincent Coubard
ba9aa6b641
Fix rebase mistakes.
2019-02-27 22:15:06 +00:00
paul-szczepanek-arm
f8c28fcbe7
privacy pass
2019-02-27 21:51:16 +00:00
paul-szczepanek-arm
bc3ff56504
partial security pass
2019-02-27 21:46:08 +00:00
paul-szczepanek-arm
ec6783ed77
cordio peripheral role pass
2019-02-27 21:39:06 +00:00
paul-szczepanek-arm
eb16fb6053
broadcaster role cordio pass
2019-02-27 21:34:00 +00:00
paul-szczepanek-arm
3e03c11832
guard class fields with ifs
2019-02-27 20:55:58 +00:00
paul-szczepanek-arm
33e8826361
whitelist feature
2019-02-27 19:46:43 +00:00
paul-szczepanek-arm
5a97706aab
added #if guards to cordio ble
2019-02-27 19:46:12 +00:00
paul-szczepanek-arm
aefab05e5a
add all the features and rename existing non-roles to features
2019-02-27 19:31:46 +00:00
Steve Cartmell
72d28d920a
feat(ble): Guard out Observer code when role is disabled
2019-02-27 19:29:51 +00:00
Steve Cartmell
6e301ce148
feat(ble): Guard out GattClient code when role is disabled
2019-02-27 19:23:31 +00:00
Vincent Coubard
04d26f7ab5
BLE - Devirtualize ::ble::generic::GenericSecurityManager
...
Two parameters are expected by the template:
- TPalSecurityManager a template class of the security manager of the form TPalSecurityManager<EventHandler>. The GenericSecurityManager is the event handler.
- SigningMonitor a template in the form SigningMonitor<Handler>.
2019-02-26 13:18:17 +00:00
Vincent Coubard
b135074821
BLE - Devirtualize ble::generic::GattClient
...
GenericGattClient is parametized by two types:
- The template of the PalGattClient
- The SigningMonitorEventHandler
Note that the PalGattClient template must be of the form PalGattClient<EventHandler>. The event handler being the GenericGattClient.
2019-02-26 13:18:17 +00:00
Vincent Coubard
39e938bf8e
BLE - Devirtualize ble::generic::GenericGap
...
Expected types are similar to the type expected by the constructor:
- PalGap
- PalSecurityManager
- ConnectionEventMonitorEventHandler
Note that for the PalGap we expect a **template** of the form PalGap<EventHandler>
2019-02-26 13:18:17 +00:00
paul-szczepanek-arm
1cea53b6a7
use grandfathered convention for class members names and initialise them
2019-02-14 12:34:34 +00:00
paul-szczepanek-arm
b628285254
route mtu changed events to server and client instead of gap
2019-02-14 12:34:33 +00:00
paul-szczepanek-arm
c10fc2eb8e
add API to trigger MTU negotiation
2019-02-14 12:34:33 +00:00
paul-szczepanek-arm
b6df6d54a1
change event names
2019-02-14 12:34:32 +00:00
paul-szczepanek-arm
06a2a403e9
fix typos
2019-02-14 12:34:31 +00:00
paul-szczepanek-arm
c452d8ff0e
add mtu events
2019-02-14 12:34:31 +00:00
Martin Kojtal
284781a565
Merge pull request #9096 from pan-/fix-enforce-size-limits
...
BLE: Enforce advertising data payload limits
2019-01-17 12:41:57 +01:00
paul-szczepanek-arm
dd1d473375
future proof return size
2019-01-02 15:42:14 +00:00
paul-szczepanek-arm
ff0a2a907e
check connectible sizes
2018-12-13 17:52:00 +00:00
paul-szczepanek-arm
7dd90e1810
Docuement active set length and add informative call for querying the limit
2018-12-13 17:51:10 +00:00
paul-szczepanek-arm
e1cf516100
fix max payload and hci length values
2018-12-13 17:50:53 +00:00