Commit Graph

942 Commits (78b7a05426c15e346254c395a7da88c67d5560cb)

Author SHA1 Message Date
Lingkai Dong a6810ddc37 Remove a few leftovers in BLE namespace 2020-04-17 09:59:16 +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 76b92b82e2 BLE: correct misspelling: prefered -> preferred 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 0341d5c898 disconnection_reason_t from raw uint8_t should be explicited an undocumented 2020-04-17 09:59:11 +01:00
Lingkai Dong 0b163ffbe1 Add default initialisation of own_address_type_t 2020-04-17 09:59:10 +01:00
Lingkai Dong 25608eede1 Remove BLEProtocol.h 2020-04-17 09:59:09 +01:00
Lingkai Dong 9455f86954 BLE: replace legacy address types (BLEProtocol) with new ones 2020-04-17 09:59:08 +01:00
Lingkai Dong ae86c119d2 Add whitelist_t::entry_t which will replace Address_t to store addr type and value 2020-04-17 09:59:08 +01:00
Lingkai Dong 7fed75b356 BLE: remove ResolutionStrategy type 2020-04-17 09:59:07 +01:00
Lingkai Dong 7ce73d414e BLE LinkLossService: use new EventHandler API to handle disconnection 2020-04-17 09:59:06 +01:00
Lingkai Dong 2422efc9bb GenericGap: clean up unused helper functions 2020-04-17 09:59:05 +01:00
Lingkai Dong 09a81a9972 GenericAccessService: remove unused device name/appearance functions due to API changes 2020-04-17 09:59:04 +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 2989466b01 BLE: construct disconnection_reason_t from uint8_t (received from HCI) 2020-04-17 09:59:02 +01:00
Lingkai Dong d2d09b2bce BLE: Remove LegacyGap and related types 2020-04-17 09:59:02 +01:00
Lingkai Dong be3858cec2 BLE: update to use whitelist_t from ble namespace 2020-04-17 09:58:58 +01:00
Lingkai Dong e97582bd23 Move BLE whitelist APIs from LegacyGap to ble::Gap 2020-04-17 09:56:25 +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
Lingkai Dong 55edb6131d ble/Gap.h: remove deprecated APIs 2020-04-17 09:56:21 +01:00
Lingkai Dong 07c25bba16 GattCharacteristic: remove deprecated APIs and helper function SecurityModeToAttSecurity 2020-04-07 10:27:16 +01:00
Lingkai Dong 70a564e7de GattClient: remove deprecated onDataWrite 2020-04-07 10:27:16 +01:00
Lingkai Dong 1a89b7718c BLE SecurityManager: remove legacy event callbacks and deprecated API 2020-04-07 10:27:16 +01:00
Lingkai Dong de89b9a572 BLE DeviceInformationService: fix deprecated addService usage 2020-03-23 16:37:21 +00:00
Lingkai Dong 682927d0a7 Remove deprecated BLE:: API
Note: The BLE() constructor is now private.
2020-03-23 16:14:20 +00:00
Lingkai Dong 266de6a69a Remove BLE services that are not maintained anymore 2020-03-23 16:14:19 +00:00
Martin Kojtal cc799a83fc
Merge pull request #12661 from kbarm/feature-fix-documentation-ascii-art
Adjusted SecurityManager Doxygen ASCII art
2020-03-23 10:18:54 +01:00
Krzysztof Borowczyk a624acd45c Adjusted SecurityManager Doxygen ASCII art to make it display correctly on mbed.com 2020-03-20 10:20:58 +01:00
Krzysztof Borowczyk 4465295332 Remove ARMC5 reference from Mbed OS platform (removed all references to __CC_ARM) 2020-03-19 16:00:45 +01:00
Rajkumar Kanagaraj 6e969ec5ab Remove the deprecated CallChain class and its APIs. 2020-02-28 07:41:44 -08:00
Vincent Coubard cb340f8f55
BLE: Fix documentation of set_random_static_address
Co-Authored-By: Lingkai Dong <lingkai.dong@arm.com>
2020-01-29 09:53:12 +00:00
Vincent Coubard c66dd7fd1f BLE: Add an HCI driver API to set the random static address. 2020-01-28 13:29:11 +00:00
Martin Kojtal e4e6c645fa
Merge pull request #11204 from paul-szczepanek-arm/non-scan
BLE: add nonscannable connectable type
2019-08-20 13:58:32 +02:00
Martin Kojtal 7ee382bdc0
Merge pull request #11216 from paul-szczepanek-arm/fix-ad-parser
BLE: make advertising data parser handle early termination
2019-08-20 09:59:18 +02:00
Paul Szczepanek 71f59eaf6c
add comments 2019-08-14 17:11:52 +01:00
paul-szczepanek-arm 280c55d57a fix recursive call 2019-08-14 09:39:04 +01:00
paul-szczepanek-arm 8acd127640 handle early termination of ad struct 2019-08-13 14:49:18 +01:00
paul-szczepanek-arm c79ffd112f add nonscannable connectable type 2019-08-12 16:38:42 +01:00
George Beckstein bb60251fdf Remove flexing on Tesla 💪💪💪 2019-07-02 13:05:18 -04:00
Lingkai Dong 7426a8a860 Remove ArrayView
All use of ArrayView within mbed-os have been removed, and
it is not a public API.
2019-06-07 16:19:18 +01: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
Martin Kojtal c4cc9c4f1b
Merge pull request #10646 from LDong-Arm/connectionCount
Fix deprecation notice for ble::Gap::getState()
2019-05-24 09:11:58 +01:00
Martin Kojtal 86bd7f05f0
Merge pull request #10634 from LDong-Arm/ble-api-update
BLE: fix deprecated API calls in battery and thermometer services
2019-05-23 21:37:19 +01:00
Lingkai Dong c84a13c0f2 Fix deprecation notice for ble::Gap::getState()
The deprecation notice suggests getConnectionCount() which
did not land in the final API. The proper replacement is keeping
your own record and updating during connection and disconnection
callbacks.
2019-05-23 16:36:28 +01:00
Martin Kojtal 3801d4a1c3
Merge pull request #10635 from LDong-Arm/deprecated_ble_services
BLE: deprecate UARTService and suppress compiler warnings
2019-05-23 14:52:17 +01:00
Lingkai Dong ce775d58e9 BLE HealthThermometerService: correct GATT characteristics
As per official specification, temperature measurement requires
the GATT characteristic "INDICATE" instead of "NOTIFY".

Full credits to Jean-Marc Jobin (@jmjobin on GitHub) for
identifying the issue and proposing this fix.
2019-05-23 09:56:01 +01:00