Commit graph

171 commits

Author SHA1 Message Date
Rohit Grover
82408ba7ca add implementation for stopScanning() 2015-05-12 10:55:13 +01:00
Rohit Grover
b90fafa58b connect call to processAdvertisementReport() from GAP_EVT_ADV_REPORT 2015-05-12 10:55:13 +01:00
Rohit Grover
13bbda2a7d add API for startScanning() 2015-05-12 10:55:13 +01:00
Rohit Grover
b4eef8fc57 initial attempt at installing a handler for ADV_REPORT 2015-05-12 10:55:13 +01:00
Rohit Grover
4fb156a651 Release 0.3.4
=============

Enhancements
~~~~~~~~~~~~

* Upgrade to Nordic's S130 softdevice (production version). This is a
  merge between the previous S110 and S120 softdevices. It brings in
  features from BLE4.1.

Bugfixes
~~~~~~~~

none.
2015-05-12 10:53:03 +01:00
Rohit Grover
477645595c update to S130 alpha 2015-05-12 09:12:38 +01:00
Rohit Grover
09570bd683 nRF51GattServer::hwCallback: use handle_value instead of characteristic index at a couple of places. 2015-05-12 09:11:59 +01:00
Rohit Grover
a524435708 Release 0.3.3
=============

Enhancements
~~~~~~~~~~~~

* Bring in support for security related APIs.

Bugfixes
~~~~~~~~

none.
2015-05-08 15:32:30 +01:00
Rohit Grover
2edf0b1b51 process GAP_EVT_PASSKEY_DISPLAY 2015-05-08 13:39:43 +01:00
Rohit Grover
364ab5a1ad remove un-necessary comment blocks. unrelated to security, really. 2015-05-08 13:29:31 +01:00
Rohit Grover
67e8989ed0 minor renames around securitySetup 2015-05-08 11:57:20 +01:00
Rohit Grover
c426e97708 add a securityMode arg to processLinkSecuredEvent 2015-05-08 11:43:07 +01:00
Rohit Grover
256f8f8927 add some defaults to a couple of switches around security modes. 2015-05-08 11:39:48 +01:00
Rohit Grover
bc99c5488f white space diffs. 2015-05-08 11:15:12 +01:00
Rohit Grover
33f02bc072 move SecurityMode_t within Gap 2015-05-08 11:13:20 +01:00
Rohit Grover
9c406b4924 handle securityProcedureCompletedEvent 2015-05-08 11:00:33 +01:00
Rohit Grover
2d0cff4ef4 delete handling of BLE_GAP_EVT_SEC_PARAMS_REQUEST in btle.cpp.
THis is now done in btle_security.cpp
2015-05-08 10:32:16 +01:00
Rohit Grover
4b9b2d8a02 handle SecurityProcedureInitiatedEvent with augmented parameters. 2015-05-08 10:31:26 +01:00
Rohit Grover
f6aeede597 update for BLEDeviceInstanceBase::initializeSecurity() 2015-05-07 13:14:25 +01:00
Rohit Grover
4f10b57155 initializeSecurity() should take default arguments for security capabilities. 2015-05-07 13:02:01 +01:00
Rohit Grover
4a80052d4c add a missing include. 2015-05-07 12:54:59 +01:00
Rohit Grover
5dafff52d6 fixed implementation for getLinkSecurity().
needed filling in of application instance.
2015-05-07 09:46:16 +01:00
Rohit Grover
5c91df5cfd use correct type for applicationInstance. 2015-05-07 09:45:24 +01:00
Rohit Grover
4af88a2be7 update GattCharacteristic::ble_gatt_char_required_security_t to SecurityMode_t 2015-05-07 08:30:49 +01:00
Rohit Grover
1c3349f7a2 adjust for rename of ble_gatt_char_required_security to SecurityMode_t. 2015-05-07 08:16:28 +01:00
Rohit Grover
989c629008 guard against repeated calls to ble_initializeSecurity() 2015-05-07 08:15:48 +01:00
Rohit Grover
002f61cf83 ble_initializeSecurity: minor inversion of error checking code. 2015-05-07 08:15:48 +01:00
Rohit Grover
509325724e intermediate checkin with stray debugging printfs 2015-05-07 08:15:48 +01:00
Rohit Grover
d99e272f7c minor re-ordering of variables. 2015-05-07 08:15:48 +01:00
Rohit Grover
f258300a53 rename to purgeAllBondingState() 2015-05-07 08:15:48 +01:00
Rohit Grover
caf49f6c53 white space diff. 2015-05-07 08:15:48 +01:00
Rohit Grover
590b9828cf add getLinkSecurity() 2015-05-07 08:15:48 +01:00
Rohit Grover
9e7dab432e implement deleteAllBondedDevices() 2015-05-07 08:15:48 +01:00
Rohit Grover
85fcb2cbb3 simplify some error handling. 2015-05-07 08:15:48 +01:00
Rohit Grover
560d7d3de9 move applicationInstance out as a static variable. 2015-05-07 08:15:48 +01:00
Rohit Grover
0f6f90726c move declaration into btle_security.h 2015-05-07 08:15:48 +01:00
Rohit Grover
c372068ee8 remove exec bit from btle.cpp 2015-05-07 08:15:48 +01:00
Rohit Grover
e599b93b14 separating out security related code into btle_security.cpp 2015-05-07 08:15:48 +01:00
Rohit Grover
3dddef3deb remove some un-necessary debug code. 2015-05-07 08:15:48 +01:00
Rohit Grover
488de5cd45 allow for security modes to be set for characteristics. 2015-05-07 08:15:48 +01:00
Rohit Grover
75e2f969fd handle DM related events. 2015-05-07 08:14:19 +01:00
Rohit Grover
28973060c7 custom_helper.h: move some includes outside extern "C" { 2015-05-07 08:14:19 +01:00
Rohit Grover
4f49671804 intermediate checkin 2015-05-07 08:14:19 +01:00
Rohit Grover
7b0a9a7929 add handling for initializeSecurity() 2015-05-07 08:14:18 +01:00
Rohit Grover
ac70594f77 mark an out-parameter as [out] in the comment header. 2015-05-07 08:12:52 +01:00
Rohit Grover
7e055bd04f initialize the device manager to allow security setup.
Was able to bond with peer.
2015-05-07 08:12:52 +01:00
Rohit Grover
50391e73a0 begin integration of device_manager by calling dm_init() from btle_init() 2015-05-07 08:12:52 +01:00
Rohit Grover
e5ba1d8528 Call pstorage_init() from btle_init() 2015-05-07 08:12:52 +01:00
Rohit Grover
55ae14757e purge dependencies on BOND_MANAGER 2015-05-07 08:12:52 +01:00
Rohit Grover
facb54c979 Allow ble_conn_params to still use APP_TIMER if needed.
Particularly in the case of the Bootloader.

This is made optional based on a preprocessor macro: USE_APP_TIMER.
Some Nordic code assumes the use of AppTimer, and if we replace it with mbed's timer, then a lot more code gets pulled in than necessary. Ideally this should not have been a problem, but it is, and the bootloader is a bit unforgiving in its size constraints.
2015-05-07 08:12:52 +01:00