Commit Graph

902 Commits (mbed-os-5.13)

Author SHA1 Message Date
Paul Szczepanek 4572cf1757 add comments 2019-08-23 11:37:41 +01:00
paul-szczepanek-arm 26fd68a026 add nonscannable connectable type 2019-08-23 11:37:41 +01:00
paul-szczepanek-arm 06342e496b handle early termination of ad struct 2019-08-23 11:37:41 +01:00
paul-szczepanek-arm fdbbf7bc8a fix recursive call 2019-08-23 11:37:41 +01:00
George Beckstein 6f331ef96e Remove flexing on Tesla 💪💪💪 2019-07-11 11:40: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
Lingkai Dong f3c29df377 Suppress warnings of deprecated API in deprecated services
Services that already have deprecation notices in place should
not trigger more warnings from the compiler.
2019-05-23 09:17:22 +01:00
Lingkai Dong 31edc25ae7 Deprecate UARTService
UARTService is rarely used and has not been actively updated.
2019-05-22 13:49:23 +01:00
Lingkai Dong 1b71c934c4 BLE services: update to use the latest APIs
Update BatterService and HealthThermometerService to use
up-to-date BLE APIs.

Note: HealthThermometerService::updateTemperature() will
not check GAP connection which should be taken care of by
the caller.
2019-05-22 13:44:31 +01:00
Vincent Coubard cb97b3c2e2 BLE - Document GattClientEventHandler::on_write_command_sent. 2019-05-16 11:40:46 +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
Vincent Coubard e814a3cfb3 BLE: handle GattServerEvents::GATT_EVENT_DATA_SENT 2019-05-14 17:12:02 +01:00
Marc Emmers bd74cb2ab7 Removed function calls from mbed_assert, which caused the functions to be ignored in release mode 2019-03-29 09:47:28 +01:00
paul-szczepanek-arm dad6844167 bounce scan timeout of the queue 2019-03-26 10:53:10 -05:00
Cruz Monrreal c81a292921
Merge pull request #10092 from desmond-blue/fix-ble-on_phy_update_complete
BLE:fix on_phy_update_complete function
2019-03-16 23:00:37 -05:00
Desmond Chen a6df7b2bd7 BLE:fix on_phy_update_complete function 2019-03-14 11:42:03 +08:00
Vincent Coubard b183ba1d01 BLE - Use LowPower Ticker and Timer for address rotation and scan timeout. 2019-03-07 16:49:58 +00:00
paul-szczepanek-arm 54a866c159 add broadcaster ifdef and pull headers into ifdef 2019-02-28 17:18:30 +00:00
Vincent Coubard eeca03f952 BLE - Fix exclusion of getMaxAdvertisingSetNumber and getMaxAdvertisingDataLength 2019-02-28 16:29:21 +00:00
Vincent Coubard 3142f26def BLE - Exclude services if GattServer is not available. 2019-02-28 16:28:15 +00:00
Vincent Coubard 20c4e4ced5 BLE - Fix call to implementation. 2019-02-28 13:40:09 +00:00
Vincent Coubard ca44ce3cd8 BLE - Conditionally expose SecurityManager::enableSigning 2019-02-28 13:27:16 +00:00
Vincent Coubard 632851e5ae BLE - Small reordering to reduce diff. 2019-02-28 12:02:23 +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 f7df97bed7 BLE - Remove conditionnal directive within GattClient::WriteOp_t 2019-02-28 11:29:35 +00:00
Vincent Coubard c9d719a8ca BLE - Cleanup conditional directives in Gap.
- Remove conditional directives for member variables.
- Remove conditional directive for processXXX functions that are exclusively used by implementation.
-  Remove conditional directives on types exported by the class.
2019-02-28 11:28:55 +00:00
Vincent Coubard 126a7a966e BLE - Cleanup conditional directives in gap/Gap/
- Remove directives from event handler type
- Expose privacy default configuration  unconditionally
- Fix conditional test for connect and cancelConnect.
2019-02-28 11:27:02 +00:00
Vincent Coubard bc10a09c4e BLE - Remove conditional directive removing functions in pal. 2019-02-28 11:24:08 +00:00
Vincent Coubard 06b26d4e8a BLE - remove conditional directive from value types 2019-02-28 11:22:37 +00:00
Vincent Coubard ba9aa6b641 Fix rebase mistakes. 2019-02-27 22:15:06 +00:00
paul-szczepanek-arm a034bf875e gatt server pass
mostly phy and security issues
2019-02-27 21:52:07 +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 a1815e31f0 correct dependencies for central and peripheral 2019-02-27 21:39:07 +00:00
paul-szczepanek-arm ec6783ed77 cordio peripheral role pass 2019-02-27 21:39:06 +00:00
paul-szczepanek-arm 45eca7c373 cordio observer role pass 2019-02-27 21:36:26 +00:00
paul-szczepanek-arm eb16fb6053 broadcaster role cordio pass 2019-02-27 21:34:00 +00:00
paul-szczepanek-arm c198603c63 ble ifdefs 2019-02-27 21:17:15 +00:00
paul-szczepanek-arm e44c3edede fix gap ifdefs 2019-02-27 21:17:15 +00:00
paul-szczepanek-arm 909b78fc14 complete gap feature ifdef 2019-02-27 21:15:54 +00:00
paul-szczepanek-arm c8d8c4e159 merge failure fix 2019-02-27 21:00:10 +00:00
paul-szczepanek-arm 9e710d4309 git review changes 2019-02-27 20:59:35 +00:00
paul-szczepanek-arm 208eb200f1 gatt client signing 2019-02-27 20:57:09 +00:00
paul-szczepanek-arm 3e03c11832 guard class fields with ifs 2019-02-27 20:55:58 +00:00