Holla back

Fork of BLE_API by Bluetooth Low Energy

History

first attempt at chaining onconnect and ondisconnect 2chains tip

2014-10-10, by jakerosenthal@gmail.com [Fri, 10 Oct 2014 17:32:22 -0700] rev 123

first attempt at chaining onconnect and ondisconnect


DFUService object needs to remain alive after ble.init(); declaring as static. default

2014-09-30, by Rohit Grover [Tue, 30 Sep 2014 01:03:56 +0100] rev 122

DFUService object needs to remain alive after ble.init(); declaring as static.


Release 0.2.2

2014-09-30, by Rohit Grover [Tue, 30 Sep 2014 00:47:01 +0100] rev 121

Release 0.2.2
=============

Features
~~~~~~~~

* Platforms enabled for DFU should introduce the DFU Service into applications automatically.

Bugfixes
~~~~~~~~

None.

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

No APIs have changed between 0.2.0 and this release. Applications need not be updated.


Release 0.2.1

2014-09-26, by Rohit Grover [Fri, 26 Sep 2014 16:42:50 +0100] rev 120

Release 0.2.1
=============

Features
~~~~~~~~

- Add the 'packet' characteristic to the DFUService. This helps mimic the
layout of the actual DFU service in the dfu-bootloader. Without this, some
FOTA clients might get confused as service definitions change after handing
control over to the bootloader.

- Initialize DFUService's controlPoint characteristic to have the value
0xFFFF. This helps distinguish an application from the dfu-bootloader; since
both provide the DFU-Service.

Bugfixes
~~~~~~~~

None.

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

No APIs have changed between 0.2.0 and this release. Applications need not be


Add the packet characteristic to the DFU Service.

2014-09-26, by Rohit Grover [Fri, 26 Sep 2014 14:28:59 +0100] rev 119

Add the packet characteristic to the DFU Service.

This helps mimic the layout of the actual DFU service in the
dfu-bootloader. Without this, some FOTA clients might get confused as
service definitions change after handing control over to the
bootloader.


Release 0.2.0

2014-09-22, by Rohit Grover [Mon, 22 Sep 2014 10:59:09 +0100] rev 118

Release 0.2.0
=============

Highlights:
Introducing standard services to simplify applications.
Add support for over-the-air firmware updates.

Features
~~~~~~~~

- This release introduces 'templates' for common services such as heart-rate,
battery-level, device-info, UART, device-firmware-update etc. These services
take the shape of class declarations within header files aggregated under a
new folder called 'services/'. These service-classes provide a high-level
API hopefully easing the burden of developing BLE applications. The
underlying APIs to work with characteristics and services are still
available to allow greater control if needed. We expect to grow the
supported services to include all SIG defined BLE profiles.

- WriteCallbackParams now includes the characteristic's value-attribute
handle; this changes the signature of onDataWritten().

- BLEDevice::onDataWritten() now allows chaining of callbacks--this means that
it is possible to chain together multiple onDataWritten callbacks
(potentially from different modules of an application) to receive updates to
characteristics. Many services, such as DFU and UART add their own
onDataWritten callbacks behind the scenes to trap interesting events. It is
also possible to chain callbacks to functions within objects.

- Added the following expectation for GattCharacteristic: If valuePtr ==
NULL, initialLength == 0, and properties == READ for the value attribute of
a characteristic, then that particular characteristic may be considered
optional and dropped while instantiating the service with the underlying BLE
stack.

- Introducing the typedef GattAttribute::Handle_t to capture Attribute handles.

Bugfixes
~~~~~~~~

None.

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

The signature of onDataWritten() has seen a change; so application programs
using this new version of the BLE API will need minor modifications. Please
refer to sample programs under BLE team page.


Release 0.1.1: Minor bugfix release.

2014-09-08, by Rohit Grover [Mon, 08 Sep 2014 17:11:58 +0100] rev 117

Release 0.1.1: Minor bugfix release.

Bugfixes
~~~~~~~~

- Handle all valid disconnection reasons.


Release 0.1.0

2014-09-02, by Rohit Grover [Tue, 02 Sep 2014 15:09:46 +0100] rev 116

Release 0.1.0
=============

Mostly API changes.

Features
~~~~~~~~

- onConnection() callback now receives connection-parameters applicable to the
new connection.

- onDataSent() callback now receives a count parameter containing the number of
times notifications were sent out since the last callback.

- A 'reason' parameter has been added to Gap::disconnect() to indicate the
reason for disconnection; and also to the onDisconnection callback to
receive a reason from the remote host.

Bugfixes
~~~~~~~~

- onDataWritten() callback now receives an additional parameter
(GattServer::WriteEventCallback_t) encapsulating the update. This avoids
having to re-fetch the updated characteristic's value attribute. It also
fixes a bug where multiple updates to the characteristic's value-attribute
could get clobbered if they occurred in quick succession before the
callbacks could be processed.


Move value attribute as member of the char class

2014-08-29, by carlescufi [Fri, 29 Aug 2014 10:41:06 +0200] rev 115

Move value attribute as member of the char class


Add support for adding descriptors

2014-08-28, by carlescufi [Thu, 28 Aug 2014 15:50:29 +0200] rev 114

Add support for adding descriptors