Commit Graph

74 Commits (refactor_mbed_host_tests)

Author SHA1 Message Date
Paul Szczepanek 8dedd43e7c add status to start and stop events 2021-06-01 22:37:43 +01:00
Paul Szczepanek ab123d3e22 advertising start queued up waiting for completion 2021-05-17 19:37:26 +01:00
Paul Szczepanek 17bf70989d ignore offset, replace whole value of attr in auth callback 2021-05-05 18:40:59 +01:00
Paul Szczepanek 55ffb176d5 Copy data from read auth callback 2021-05-05 14:31:35 +01:00
Paul Szczepanek b61fc6b639 Deprecate indications event onConfirmationReceived 2021-04-28 14:02:56 +01:00
Martin Kojtal 06a33d37f8
Merge pull request #14436 from paul-szczepanek-arm/remove-services
BLE: replace obsolete services with the new services repo
2021-04-13 16:00:58 +02:00
Paul Szczepanek d594aa2d4b add MBED_DEPRECATED comment for maintainers to find it 2021-04-08 09:53:23 +01:00
Paul Szczepanek cc478b3896 add deprecation warning 2021-04-07 17:15:09 +01:00
Abbas Bracken Ziad aaf9435f87 Use general name for POD 2021-04-07 12:34:25 +01:00
Abbas Bracken Ziad d42c0a7269 Add value handle field to callback params 2021-04-06 17:39:10 +01:00
Paul Szczepanek c6d2ca17d5 remove obsolete services and add information about the services repo 2021-03-17 13:05:25 +00:00
Martin Kojtal 8284807a00
Merge pull request #14239 from paul-szczepanek-arm/passkey-fix
BLE: fix passkey for display being returned reversed
2021-02-11 08:04:57 +00:00
Martin Kojtal 871522c929
Merge pull request #14256 from pan-/ble-chainable-event-handler-test
BLE: Add API to test the presence of an event handler in a chain.
2021-02-11 08:04:34 +00:00
Vincent Coubard edd7678cfc BLE: Add API to test the presence of an event handler in a chain. 2021-02-10 11:18:59 +00:00
Vincent Coubard c099b859d7 BLE: Add APIs to get characteristic authorization callbacks. 2021-02-09 19:56:58 +00:00
Paul Szczepanek 94529508a5 include deprecation option for reversing passkey display 2021-02-08 13:36:28 +00:00
Paul Szczeanek 5e99ea8d7e correct the documentation for GattServer::addService 2021-01-04 17:11:03 +00:00
Vincent Coubard 2eb77d607a Update GattAuthCallbackReply_t enumeration.
Add missing values that are present in pal::AttErrorResponse.
This allows applications to use correct ATT error codes.
2020-12-08 10:47:55 +00:00
Martin Kojtal 57bbb4739b
Merge pull request #13085 from pea-pod/remove-deprecated-mbed-assert
Change MBED_STATIC_ASSERTs version for built-in
2020-11-24 13:38:07 +00:00
Martin Kojtal e725df7d07
Merge pull request #13833 from AGlass0fMilk/privacy-enabled-cb-patch
Add new Gap::EventHandler callbacks to ChainableGapEventHandler class
2020-11-12 08:43:35 +00:00
George Beckstein 911cee69f2 Add new Gap::EventHandler callbacks to ChainableGapEventHandler class 2020-10-29 15:39:41 -04:00
pea-pod 507181d262 Change MBED_STATIC_ASSERTs version for built-in 2020-10-27 08:30:40 -05:00
Vincent Coubard 557eac0617 BLE: Conditional compilation of the security manager
Depends on the role (central or peripheral), signing enabled and secure connection enabled.
2020-10-23 16:19:38 +01:00
Martin Kojtal b242be1b08
Merge pull request #13734 from AGlass0fMilk/chainable-event-handler
BLE: Introduce ChainableEventHandler and subclasses
2020-10-19 12:27:56 +01:00
Martin Kojtal 61aa6817f0
Merge pull request #13724 from harmut01/license_refactor
Add license notice to Arm copyrighted source files
2020-10-16 09:09:53 +01:00
Martin Kojtal 75f3b6cb1c
Merge pull request #13717 from ARMmbed/feature-ble-host-privacy
Feature ble host privacy
2020-10-15 15:07:54 +01:00
Harrison Mutai 4fad1112e5 Add SPDX license identifier to Arm files
Add license identifier to files which Arm owns the copyright to,
and contain either BSD-3 or Apache-2.0 licenses. This is to address
license errors raised by scancode analysis.
2020-10-15 10:47:27 +01:00
George Beckstein 9a6d207585 Update GattServer Callback API
Update parameters passed to onDataSent, onUpdatesEnabled/Disabled, and onConfirmationReceived callbacks.

Deprecate single-callback-registering functions for event handling in lieu of the new EventHandler-based API.

Introduce new GattServer::EventHandler callback functions to replace the deprecated versions.
2020-10-14 12:44:12 -04:00
George Beckstein cda2c8bb8d Introduce ChainableGapEventHandler subclass of ChainableEventHandler
The ChainableGapEventHandler enables chaining together Gap::EventHandlers so separate parts of an application can be notified of Gap events as needed. The application can register multiple Gap::EventHandler objects to one ChainableGapEventHandler and then set the global Gap::EventHandler to the ChainableGapEventHandler. All registered EventHandlers will then be called when a Gap Event occurs.
2020-10-14 12:44:09 -04:00
George Beckstein 751674b962 Introduce ChainableEventHandler and ChainableGattServerEventHandler classes.
Common functionality has been split off into a generic ChainableEventHandler for use by other EventHandler implementations. The ChainableEventHandler is essentially singly-linked list that propagates callbacks to all objects in the list.

The ChainableGattServerEventHandler enables chaining together GattServer::EventHandlers. An application can register separate event handlers (eg: for different services that need to handle GattServer events) and then set the global GattServer::setEventHandler to the instance of ChainableGattServerEventHandler with all registered GattServer::EventHandlers.
2020-10-14 12:42:25 -04:00
Paul Szczeanek 3f9798b52d Fix conditional compilation based on config 2020-10-13 17:32:49 +01:00
George Beckstein fa2c3633dd Add doxygen guard to private function 2020-10-07 13:32:17 -04:00
George Beckstein eccb3e9bda Make setImplicitCCCD private and add impl::GattServer as a friend class 2020-10-07 13:31:09 -04:00
George Beckstein ca9b70582c Remove nullptr check when deleting _implicit_cccd 2020-10-07 13:12:08 -04:00
George Beckstein 5c82533d06 Enabled getting an implicitly-created CCCD through GattCharacteristic::getDescriptor 2020-10-06 19:26:32 -04:00
Vincent Coubard f32141a051 BLE: Notify application when advertising start or stop
Applicable for legacy and extended advertising.
2020-10-05 11:54:05 +01:00
Vincent Coubard bb35cba134 BLE: Add function to signal privacy initialization. 2020-10-05 11:54:04 +01:00
Paul Szczeanek 03cc0f9940 host privacy config option to enable it 2020-10-05 11:54:04 +01:00
Paul Szczeanek 44b2e73ef1 Add setters to events 2020-10-05 11:53:23 +01:00
Vincent Coubard 5cb05958a9 BLE: Add function to get the device random static address. 2020-10-05 11:53:22 +01:00
Vincent Coubard 742356158f BLE: Add resolvable_address_timeout_t datatype. 2020-10-05 11:50:33 +01:00
Vincent Coubard f7dfc5c9f2 BLE: Update ble::Duration to support default values 2020-10-05 11:50:32 +01:00
Vincent Coubard f116604024 BLE: correctness improvments
Remove unused variable, improve header inclusion, fix initialization list order,
2020-09-04 13:26:29 +01:00
Vincent Coubard 5943a7360c BLE: Fix uses of mbed.h 2020-08-25 12:28:40 +01:00
Vincent Coubard 12388d77d4 BLE: move source/impl into source/cordio 2020-08-25 11:26:28 +01:00
Vincent Coubard 241c69f50d BLE: Cleanup public headers 2020-08-25 11:26:28 +01:00
Vincent Coubard 7cbc0e38a4 BLE: Clang tidy on public headers. 2020-08-25 11:26:28 +01:00
Vincent Coubard 0baa92d70c BLE: Expose HCI driver in public API. 2020-08-25 11:26:28 +01:00
Vincent Coubard 63ac8fac3c BLE: Add compatibility path for headers. 2020-08-25 11:26:26 +01:00
Vincent Coubard 13c358717f BLE: Move GATT public header into ble/gatt
Move private headers GattServerEvents.h, GapEvents,h and GapType.h in relevant part of the source tree.
2020-08-25 11:26:26 +01:00