Commit graph

376 commits

Author SHA1 Message Date
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
Rohit Grover
7c4463b850 add comment block for GattCharacteristic::requireSecurity() 2015-05-07 08:17:31 +01:00
Rohit Grover
985edbdf48 add APIs for getLinkSecurity() and purgeAllBondingState() 2015-05-07 08:17:31 +01:00
Rohit Grover
7559176d50 support getLinkStatus() 2015-05-07 08:17:31 +01:00
Rohit Grover
1f001b7f43 add error code BLE_ERROR_INVALID_PARAM 2015-05-07 08:17:31 +01:00
Rohit Grover
b9fbc69af5 Add APIs to allow a characteristic to be marked as requiring security. 2015-05-07 08:17:31 +01:00
Rohit Grover
0e8731df97 Add APIs to setup callbacks for events related to security/bonding. 2015-05-07 08:17:31 +01:00
Rohit Grover
6cdb7753d6 add some error codes to ble_error_t 2015-05-07 08:17:30 +01:00
Rohit Grover
714bda5068 add API for initializeSecurity() 2015-05-07 08:17:30 +01:00
Rohit Grover
bd493c8aae add comment to explain the format of Gap::address_t 2015-04-27 07:35:56 +01:00
Rohit Grover
0ee85fb586 improve the comment block for GattCharacteristic's constructor. 2015-04-24 07:28:32 +01:00
Rohit Grover
0833b458e4 fixes #37: correct the comment block header for GattAttribute's constructor. 2015-04-23 14:50:14 +01:00
Rohit Grover
d1cdeb317f fixes #36: add API for clearScanResponse() 2015-04-23 10:36:26 +01:00
Rohit Grover
35e1e8b8c4 Release 0.3.3
=============

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

* Changes needed to support v8 of the Nordic SDK.

Bugfixes
~~~~~~~~

none.
2015-04-20 11:22:04 +01:00
Rohit Grover
8b631fc0c2 Release 0.3.2
=============

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

* Add new API: onRadioNotification(). Radio Notification is a feature that
  enables ACTIVE and INACTIVE (nACTIVE) signals from the stack that notify the
  application when the radio is in use. The ACTIVE signal is sent before the
  Radio Event starts. The nACTIVE signal is sent at the end of the Radio
  Event. These signals can be used by the application programmer to
  synchronize application logic with radio activity. For example, the ACTIVE
  signal can be used to shut off external devices to manage peak current drawn
  during periods when the radio is on, or to trigger sensor data collection
  for transmission in the Radio Event.

* merge contents of several .cpp files under common/* into .h files under public/*.
  e.g. GattService, GapAdvertisingData, UUID.

* Add a note to the documentation for setAdvertisingInterval() to warn users
  about the new units for 'interval'.

* get rid of a few deprecated APIs: setAdvertisingData() and startAdvertising().

Bugfixes
~~~~~~~~

none.
2015-04-15 08:04:31 +01:00
Rohit Grover
20649946f5 GattServer.h: add missing includes 2015-04-15 08:04:14 +01:00
Rohit Grover
b85a558c8b include <string.h> in UUID.h (for memcmp) 2015-04-15 08:04:14 +01:00
Rohit Grover
59d5ed95ad HeartRateService: allow READ for the heart-rate-measurement characteristic. 2015-04-15 08:04:14 +01:00
Rohit Grover
89b445600b switch access privileges for several of the callback related members to 'protected'
it should be possible for a stack-specific implementation to override the defaults.
2015-04-09 13:52:42 +01:00
Rohit Grover
a9ca991896 add a comment block for getGapState() 2015-04-09 09:59:43 +01:00
Rohit Grover
38a2037dcb add a comment block for disconnect() 2015-04-09 09:56:28 +01:00
Rohit Grover
b90cb8766e Add a note to the documentation for setAdvertisingInterval() to warn users about the new units for 'interval'. 2015-04-09 09:47:28 +01:00
Rohit Grover
721fc94b8f getting rid of deprecated APIs: setAdvertisingData() and startAdvertising() 2015-04-09 09:43:33 +01:00
Rohit Grover
18e4b666c8 merge UUID.cpp into UUID.h 2015-04-09 09:03:22 +01:00
Rohit Grover
04d91605dd merge GapAdvertisingData.cpp into GapAdvertisingData.h 2015-04-09 09:03:22 +01:00
Rohit Grover
88e59f3332 merge GattService.cpp into GattService.h 2015-04-09 09:03:22 +01:00
Rohit Grover
995d479782 merge GapAdvertisingParams.cpp into GapAdvertisingParams.h;
also get rid of the empty virtual destructor.
2015-04-09 09:03:22 +01:00
Rohit Grover
7e9fc2ae86 minor parameter renames and removal of un-necessary consts 2015-03-30 11:42:32 +01:00
Rohit Grover
1d21e85a06 Release 0.3.1
=============

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

* added helper UARTService::writeString() to simplify writing of strings.

Bugfixes
~~~~~~~~

none.
2015-03-27 13:02:31 +00:00
Rohit Grover
c936446c42 UARTService::write() should return a size_t 2015-03-27 08:14:04 +00:00
Rohit Grover
c7a2b9bb93 Release 0.3.0
==============

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

* BLEDevice::setAdvertisingInterval() uses milliseconds as the unit for its
  argument. If advertising interval is set to 0, advertising is stopped. If
  advertising interval is smaller than the minimum value supported, then the
  minimum value is used instead.

* Add an enumeration called GattCharacteristicAuthCBReply_t to capture a
  status code from read/write authorization callback. Previously it used to
  return only a bool.

* Add APIs for getMinAdvertisingInterval() and variants.

Bugfixes
~~~~~~~~

* URIBeaconConfigService uses better write-authorization filters. It now
  passes tests defined in Google's validator app.
2015-03-23 16:10:34 +00:00
Rohit Grover
9be96eaf4c remove comment block for absent parameter. 2015-03-23 08:45:50 +00:00
Rohit Grover
433f558c64 Release 0.2.16
==============

All changes in this release apply to the URIBeaconConfig service.

Enhancements
~~~~~~~~~~~~
* Pull out the advertisement switch from the 'service' class. This is now under application control.

* Check for persistence magic now happens outside the URIBeaconConfig service.

Bugfixes
~~~~~~~~

* isLocked was getting initialized in the constructor too soon.

Compatibility
~~~~~~~~~~~~~

This release is API compatible with 0.2.4.
2015-03-13 09:56:47 +00:00