Commit graph

608 commits

Author SHA1 Message Date
Rohit Grover
dcc18e3d18 Release 0.3.6
=============

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

* Add APIs for scanning of advertisements.

    BLEDevice::setScanParams(uint16_t interval, uint16_t window, uint16_t timeout, bool activeScanning);
    BLEDevice::startScan(Gap::AdvertisementReportCallback_t callback);
    BLEDevice::stopScan(void);
  Also introduced a type to encapsulate scanning-parameters. There's a new demo on mbed.org for a trivial observer.

Bugfixes
~~~~~~~~

* fix #40: fix value of Gap::UNIT_0_625_MS
2015-05-12 10:33:21 +01:00
Rohit Grover
ca9f8a9c12 add some comments to highlight deprecated type aliases. 2015-05-12 09:16:38 +01:00
Rohit Grover
0a59dd0c84 remove extraneous declaration of AdvertisementType_t 2015-05-12 09:16:38 +01:00
Rohit Grover
c577e02eaf GapScanningParams takes in interval and window args in units of ms.
But then translates them internally to units of 0.625ms.
2015-05-12 09:16:38 +01:00
Rohit Grover
deac909a33 rename Gap::GAP_DURATION_UNITS_TO_MS to Gap::ADVERTISEMENT_DURATION_UNITS_TO_MS 2015-05-12 09:16:38 +01:00
Rohit Grover
ca3ed00d36 fix value of UNIT_0_625_MS 2015-05-12 09:16:38 +01:00
Rohit Grover
002ebbe3a8 replace inclusion of GapScanningParams with a forward declaration. 2015-05-12 09:16:38 +01:00
Rohit Grover
ad8c79ae0e updating comment block. 2015-05-12 09:16:38 +01:00
Rohit Grover
68036cd4a4 white space diffs. 2015-05-12 09:16:38 +01:00
Rohit Grover
2a685ffc37 add support for active scanning. 2015-05-12 09:16:38 +01:00
Rohit Grover
ba805863a3 add support for active scanning within Scanning params. 2015-05-12 09:16:38 +01:00
Rohit Grover
abf3316803 shorten *scanning* to *scan* in APIs 2015-05-12 09:16:38 +01:00
Rohit Grover
ba4914c15f white space diffs. 2015-05-12 09:16:38 +01:00
Rohit Grover
96327396b9 improved documentation for setScanningParams() 2015-05-12 09:16:38 +01:00
Rohit Grover
0163a8b723 simplify some enumerations within GattCharacteristic. Turn them anynymous. 2015-05-12 09:16:38 +01:00
Rohit Grover
a655f86025 add AdvertisementType_t 2015-05-12 09:16:38 +01:00
Rohit Grover
c7717aa41d add API for stopScanning() 2015-05-12 09:16:38 +01:00
Rohit Grover
4c6fb07984 add error checking for APIs for ScanningParameters. 2015-05-12 09:16:38 +01:00
Rohit Grover
c2e9d87163 add API for startScanning() 2015-05-12 09:16:38 +01:00
Rohit Grover
23a16e05bb fill in APIs around setScanningParams 2015-05-12 09:16:38 +01:00
Rohit Grover
a15a8922a4 initialize scanningParams in the constructor for BLEDevice. 2015-05-12 09:16:38 +01:00
Rohit Grover
b8b185160b add Gap::onAdvertisementReport and processAdvertisementReport() 2015-05-12 09:16:38 +01:00
Rohit Grover
aabb9c1837 update declaration for AdvertisementReportCallback_t 2015-05-12 09:16:38 +01:00
Rohit Grover
06529208f5 add AdvertisementType_t 2015-05-12 09:16:38 +01:00
Rohit Grover
78d7b675f2 add GapScanningParams.h 2015-05-12 09:16:38 +01:00
Rohit Grover
6a9409fde9 white space diff. 2015-05-12 09:16:38 +01:00
Rohit Grover
fdd37dfa1a white space diffs. 2015-05-12 09:06:43 +01:00
Rohit Grover
a00bcb117e use GattAttribute::Handle_t in a couple of places. 2015-05-12 08:58:34 +01:00
Rohit Grover
ef97790264 simplifying declarations for some enumerations within Gap. 2015-05-11 14:45:31 +01:00
Rohit Grover
b8c2889f47 Release 0.3.5
=============

Minor fix around initialization of security level for Characteristics.

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

None.

Bugfixes
~~~~~~~~

* fix #39: initialize GattCharacteristic::_requiredSecurity to OPEN_LINK.
2015-05-11 07:57:29 +01:00
Rohit Grover
3024627087 white space diffs. 2015-05-11 07:54:53 +01:00
Rohit Grover
94f50a0316 minor simplification of some comments. 2015-05-11 07:54:30 +01:00
Rohit Grover
2b0e63b2cf Release 0.3.4
=============

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

* Bring in security related APIs.

    BLEDevice::initializeSecurity(): to enable the BLE stack's Security Manager.
    BLEDevice::getLinkSecurity(): to get the security status of a connection.
    BLEDevice::purgeAllBondingState(): to purge all bonding information from the database within the security manager.

    BLEDevice::onSecuritySetupInitiated(): for when the security setup procedure for a link starts.
    BLEDevice::onSecuritySetupCompleted(): for when the security setup procedure for a link completes.
    BLEDevice::onLinkSecured(): for when a link with the peer is secured.
    BLEDevice::onSecurityContextStored(): upon successful bonding.
    BLEDevice::onPasskeyDisplay(): for when the passkey needs to be displayed on a peripheral with DISPLAY capability.

* Add API for clearScanResponse().

Bugfixes
~~~~~~~~

none.
2015-05-08 15:25:19 +01:00
Rohit Grover
1495bb6da6 move purgeAllBondingState() next to other security APIs. 2015-05-08 14:33:25 +01:00
Rohit Grover
88829f4e71 move things around a bit in the implementation area of BLEDevice.h 2015-05-08 13:59:27 +01:00
Rohit Grover
d1bd1a612c add support for passkey display. 2015-05-08 13:54:06 +01:00
Rohit Grover
838e27c2db moved security APIs a bit in BLEDevice.h 2015-05-08 13:51:17 +01:00
Rohit Grover
2d801b4f46 fix a couple of typos. 2015-05-08 13:49:13 +01:00
Rohit Grover
03eaf52d08 minor update to a comment. 2015-05-08 13:22:37 +01:00
Rohit Grover
cc40e9e046 update some comment headers for APIs around securitySetup 2015-05-08 12:14:09 +01:00
Rohit Grover
968ac2aa6f some more renaming around securitySetup 2015-05-08 12:13:25 +01:00
Rohit Grover
689848a5dd minor renames around securitySetup 2015-05-08 11:55:56 +01:00
Rohit Grover
9cdae9625b add LinkSecuredCallback_t 2015-05-08 11:39:19 +01:00
Rohit Grover
6580e463c0 remove constants from the enumeration of SecurityMode_t 2015-05-08 11:38:37 +01:00
Rohit Grover
8eba398fd8 move SecurityMode_t within Gap 2015-05-08 11:12:23 +01:00
Rohit Grover
624b7a6c3a handle securityProcedureCompleted 2015-05-08 11:00:17 +01:00
Rohit Grover
d07eac2383 add SecurityProcedureInitiatedCallback_t 2015-05-08 10:29:58 +01:00
Rohit Grover
98814d23ae update initializeSecurity() to take in args. 2015-05-07 13:18:38 +01:00
Rohit Grover
ecf07db704 simplify security API names 2015-05-07 08:36:18 +01:00
Rohit Grover
0e4c49c655 rename ble_gatt_char_required_security with SecurityMode_t.
Gosh, how did I ever pick the other name?
2015-05-07 08:17:31 +01:00