Commit Graph

609 Commits

Author SHA1 Message Date
Andres Amaya Garcia 116eb8db8e Finish implementation of getAddressesFromBondTable
Finish the implementation of the new function getAddressesFromBondTable() in
SecurityManager that returns a table with a list of addresses from the peers
in the bond table.
2016-01-08 18:23:43 +00:00
Andres Amaya Garcia 91e8bf4bb2 Modify nRF5xGap::reset() to reset the whitelist 2016-01-08 15:33:19 +00:00
Andres Amaya Garcia bdf392d471 Remove redundant structures from nRF5xGap
Remove the following structures/arrays from the nRF5xGap class:

* ble_gap_whitelist_t whitelist
* ble_gap_addr_t *whitelistAddressePtrs[]
* ble_gap_irk_t  *whitelistIrkPtrs[]

These are made redundant because the SoftDevice does not require the user to
keep a copy of the whitelist itself.
2016-01-08 15:19:18 +00:00
Andres Amaya Garcia 12e6c9ec09 Make setWhitelist check errors before changing state 2016-01-08 14:23:17 +00:00
Andres Amaya Garcia 553551aa4f Update nrf51-sdk dependency to v2.1.0
This is required because 2.1.0 includes additional files from the peer manager
that are used by the implementation of the whitelisting API to check whether an
address can be generated from a given IRK.
2016-01-08 14:23:17 +00:00
Andres Amaya Garcia b72f9aa24e Add whitelisting documentation to nRF51xGap 2016-01-08 14:20:38 +00:00
Andres Amaya Garcia 9d0c6381d4 Add missing documentation to btle_security for whitelisting 2016-01-08 14:20:38 +00:00
Andres Amaya Garcia 2ebbcb08b5 Add documentation and fix style of SecurityManager 2016-01-08 14:20:38 +00:00
Andres Amaya Garcia c9b6bb9bbb Almost complete implementation of whitelisting API 2016-01-08 14:20:38 +00:00
Andres Amaya Garcia 0f76db4eed Add helper function to get whitelist from SD bond table 2016-01-08 14:20:38 +00:00
Andres Amaya Garcia fdead9ec36 Early whitelisting API prototype implementation 2016-01-08 14:20:38 +00:00
Vincent Coubard 31c4a7c475 version v2.3.1 2016-01-07 17:28:17 +00:00
Andres Amaya Garcia 98d770885c Merge pull request #98 from pan-/yottaDependencies
Update yotta module dependencies
2016-01-07 17:24:25 +00:00
Vincent Coubard 48ee379978 Update yotta module dependencies 2016-01-07 17:19:35 +00:00
Vincent Coubard 1d37de1460 version v2.3.0 2015-12-23 12:27:45 +00:00
Vincent Coubard 05763f7854 Merge pull request #74 from pan-/characteristicDescriptorDiscovery
Implementation of Characteristic descriptor discovery
2015-12-23 12:25:32 +00:00
Vincent Coubard 4092d56947 version v2.2.10 2015-12-23 11:17:59 +00:00
Vincent Coubard 19d1c40612 Merge branch 'develop' of https://github.com/ARMmbed/ble-nrf51822 into characteristicDescriptorDiscovery 2015-12-22 17:53:52 +00:00
Vincent Coubard b8ed9fdbf7 Merge pull request #96 from andresag01/fix_shutdown
Fix shutdown of Gap instance to avoid NULL refs
2015-12-22 17:03:37 +00:00
Andres Amaya Garcia 22082c54ae Add minor comment in shutdown function 2015-12-22 15:51:34 +00:00
Andres Amaya Garcia 9b14870e5c Fix shutdown of Gap instance to avoid NULL refs 2015-12-22 15:49:12 +00:00
Vincent Coubard bb283199db Merge pull request #95 from andresag01/init_checks
Add check for return code of ble_init
2015-12-21 15:02:09 +00:00
Andres Amaya Garcia 65cb294f61 Fix comment typo 2015-12-21 09:35:49 +00:00
Andres Amaya Garcia 7f02a2d51f Add check for return code of ble_init 2015-12-21 09:32:44 +00:00
Rohit Grover 2850a85809 version v2.2.9 2015-12-18 13:30:36 +00:00
Rohit Grover a5fa97a549 Merge pull request #92 from andresag01/rm_appearance
Remove occurrence of deprecated appearance enum
2015-12-18 08:12:37 +00:00
Andres Amaya Garcia 7a499f1f3e Remove unused include blecommon.h from projectconfig.h 2015-12-17 15:51:07 +00:00
Andres Amaya Garcia eab13c8b91 Remove occurrence of deprecated appearance enum 2015-12-17 15:49:10 +00:00
Rohit Grover b1b1a40368 white space diff 2015-12-16 10:19:22 +00:00
Rohit Grover 5a6f8cde9a replace a few instances of Gap::AddressType_t with BLEProtocol::AddressType_t 2015-12-16 08:57:20 +00:00
Rohit Grover 04bb297831 add an interdependency to "ble": "^2.1.16" 2015-12-16 06:50:20 +00:00
Rohit Grover 3f66311359 version v2.2.7 2015-12-15 14:10:18 +00:00
Rohit Grover 1527ce60c1 Merge pull request #89 from andresag01/develop
Replace deprecated inclusions of mbed.h
2015-12-15 14:03:30 +00:00
Andres Amaya Garcia 90de915fac Replace deprecated inclusions of mbed.h
Replace all deprecated inclusions of mbed.h for mbed-drivers/mbed.h when using
mbed OS. Applications should compile for mbed classic.
2015-12-15 13:58:54 +00:00
Vincent Coubard fd8b73f914 Merge pull request #87 from andresag01/develop
Improve shutdown to clear BLE API and not just SD
2015-12-15 13:53:09 +00:00
Andres Amaya Garcia 4efa84c82e Remove out-of-date comment from nRF5xn 2015-12-15 13:18:37 +00:00
Andres Amaya Garcia 252ef3cfbd Make _gapInstance non-static in nRF5xn 2015-12-15 13:16:05 +00:00
Rohit Grover 0e933954c8 update dependency for ble to have version >=2.1.15 2015-12-15 13:07:23 +00:00
Rohit Grover cd2f96b5f1 version v2.2.6 2015-12-15 13:05:37 +00:00
Rohit Grover ca8b3d2135 replace instances of BLEProtocol::AddressType::Type with BLEProtocol::AddressType_t 2015-12-15 13:05:24 +00:00
Rohit Grover 752e2ba43b Merge pull request #88 from rgrover/develop
follow the extraction of address related types from Gap.h into BLEProtocol.h
2015-12-15 13:03:38 +00:00
Andres Amaya Garcia 786cd0b9bf Modify nRF5xn::shutdown to return actual error code 2015-12-15 10:54:11 +00:00
Vincent Coubard 15592642e1 Move Implementation of nRF5xCharacteristicDescriptorDiscoverer::Discovery
to cpp file.
2015-12-15 10:22:23 +00:00
Vincent Coubard c8d826ffd0 Documentation of descriptor discoverer class.
Simplify the process
2015-12-15 09:56:27 +00:00
Vincent Coubard 59ced0b4b1 rename remainingCharacteristic member, now it is named
discoveredCharacteristic. Add doc to the discovery process and the
rationale behind discoveredCharacteristic member.
2015-12-15 09:54:25 +00:00
Rohit Grover 52200b37bb follow the extraction of ddress related types from Gap.h into BLEProtocol.h 2015-12-14 17:09:28 +00:00
Andres Amaya Garcia 0bcc2e96c9 Modify shutdown due to BLE API change
The module is updated to comply with the changes to BLE API regarding correct
shutdown functionality. The following changes are introduced to ble-nrf51822:

* Calls to the old static function shutdown in Gap, GattClient, GattServer and
SecurityManager are removed.
* The cleanup function in Gap, GattClient, GattServer and SecurityManager is
renamed to `reset()` and made public.
* The static references inside nRF5xGap, nRF5xGattClient, nRF5xGattServer and
nRF5xSecurityManager to objects of their own class are moved to nRF5xn.
* The static getInstance accessors in nRF5xGap, nRF5xGattClient,
nRF5xGattServer and nRF5xSecurityManager are removed and their functionality is
moved to the implemented virtual accessors in nRF5xn i.e. getGap(),
getGattClient, etc.
* A static function Instance is added to nRF5xn class to make the transport
object accessible across the module.
2015-12-14 15:15:35 +00:00
Vincent Coubard eb5ca3806d Add a function to change the lastHandle of a discovered characteristic 2015-12-14 15:04:56 +00:00
Vincent Coubard 7e784e0e0c Merge branch 'develop' of https://github.com/ARMmbed/ble-nrf51822 into characteristicDescriptorDiscovery 2015-12-14 11:57:57 +00:00
Andres Amaya Garcia 0429643609 Fix comment typo 2015-12-11 18:19:10 +00:00