Commit graph

184 commits

Author SHA1 Message Date
Marcus Chang
e6d3736490 Added optional data and length fields to the return struct for authorized reads so a new value can be provided for each individual authorization. 2014-12-16 11:35:29 +00:00
Rohit Grover
6151c498de Synchronizing with pull request from Marcus Chang.
description:
Write permission was not set for 'write without response' characteristics.

changeset:   85:17fe69405098
tag:         tip
user:        marcuschang
date:        Fri Dec 12 17:12:35 2014 +0000
files:       btle/custom/custom_helper.cpp
2014-12-15 07:43:32 +00:00
Rohit Grover
03791a03e9 minor changes to fix GCC compiler issues 2014-12-12 14:14:07 +00:00
Rohit Grover
f6b58a5aa3 Release 0.2.5
=============

API enhancements to support read/write authorization for GATT accesses.

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

* Add support for authorization, whereby the user application can receive a
  callback to authorize a read or a write on a characteristic's value
  attribute before GATT commits the transaction.

Bugfixes
~~~~~~~~

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

This release is backward compatible with 0.2.3.
2014-12-12 13:18:22 +00:00
Rohit Grover
9b33184697 add support for write authorization. 2014-12-12 11:03:38 +00:00
Rohit Grover
4e2d4aca36 Release 0.2.4
=============

API enhancements to support purging of GATT/GAP state.

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

* Add support for API BLEDevice::shutdown() to purge the BLE stack of
  GATT and GAP state.  BLEDevice::init() should be called before
  restoring state.

Bugfixes
~~~~~~~~

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

This release is backward compatible with 0.2.3.
2014-12-03 11:57:38 +00:00
Rohit Grover
5c80717d97 add support for shutdown().
This API allows for the GATT/GAP state to be purged.
2014-12-03 11:45:02 +00:00
Rohit Grover
2c80818744 remove un-necessary comment blocks. 2014-12-03 09:48:22 +00:00
Rohit Grover
2415bbb412 Release 0.2.3
=============

Features
~~~~~~~~

* Add nRF51GattServer::initializeGATTDatabase() to have an explicit commit
  point where the underlying GATT server is populated.

* Extend ConnectionCallbackParameters_t to include peer_addr.

Bugfixes
~~~~~~~~

none

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

Works with 0.2.4 of BLE_API.
2014-11-21 10:00:06 +00:00
Rohit Grover
6cd6038954 extending ConnectionCallbackParameters_t 2014-11-18 15:12:09 +00:00
Rohit Grover
eee261a2e6 nRFGattServer:: simplify header includes 2014-11-18 10:13:59 +00:00
Rohit Grover
1bc9fa928b nrfGattServer:: move constants into the class. 2014-11-18 10:13:31 +00:00
Rohit Grover
d419ec36e7 minor cosmetic change. 2014-11-18 10:10:29 +00:00
Rohit Grover
ec94c68e74 move descriptorCount into nRFGattServer 2014-11-18 10:09:35 +00:00
Rohit Grover
8940e82481 GattServer:: improve default constructor 2014-11-18 10:09:00 +00:00
Rohit Grover
8c33bdd29c improve signatures for copy constructor and assignment operator for GattServer 2014-11-18 10:08:28 +00:00
Rohit Grover
3eda3f6fc3 GAP_ADV_PARAMS_INTERVAL_MAX and other such constants have moved into GapAdvertisingParams 2014-11-10 14:46:52 +00:00
Rohit Grover
989d0668d1 69:61da91a52bd6
Revert "minor changes pulled in from Nordic's latest SDK"

This reverts commit c35f80d309.
2014-11-04 10:48:59 +00:00
Rohit Grover
8f29d80930 minor typos in comment blocks. 2014-11-04 10:07:12 +00:00
Rohit Grover
abfad118f5 add inline assembly for bootloader to be compiled with arm-gcc. 2014-11-04 09:56:57 +00:00
Rohit Grover
b5c17644f3 white space diffs 2014-11-04 09:11:15 +00:00
Rohit Grover
c35f80d309 minor changes pulled in from Nordic's latest SDK 2014-11-04 09:00:47 +00:00
Rohit Grover
2a9ab86246 white space diffs 2014-11-04 08:58:01 +00:00
Rohit Grover
c3d07e49ea simplify BLE_GAP_ADDR_LEN to ADDR_LEN defined in Gap.h 2014-10-06 10:51:19 +01:00
Rohit Grover
2220853d1e introduce GAP::getAddress() to fetch the MAC address. 2014-10-06 10:42:30 +01:00
Rohit Grover
8d7351c5f3 white space diffs. 2014-10-06 10:41:23 +01:00
Rohit Grover
2f9ca20cb3 68:936d81c963fe turn on service-changed characteristic by default 2014-09-26 14:47:00 +01:00
Rohit Grover
b272b61cb2 67:e6cc149033a6 raised the maximum number of characteristics/descriptors to 24. 2014-09-23 16:10:56 +01:00
Rohit Grover
6154c272a9 66:b3680699d9a4
Release 0.2.0
=============

Highlights:
  Add support for over-the-air firmware updates.

Features
~~~~~~~~

- Add files to support DFU bootloader.

- charHandle is now a part of GattCharacteristicWriteCBParams.

- nRF51GattServer::addService(): Skip any incompletely defined, read-only
  characteristics. For instance, the DeviceInformationService may have many
  optional, read-only characteristics which may be safely dropped if the
  application hasn't defined them.

Bugfixes
~~~~~~~~

None.

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

Works with 0.2.0 of BLE_API.
2014-09-22 11:20:23 +01:00
Rohit Grover
2db47d6a76 fix typos in a comment. 2014-09-22 11:15:05 +01:00
Rohit Grover
79b1e7282d make lookupConvertedUUIDTable() static again 2014-09-22 11:11:18 +01:00
Rohit Grover
612f3540b0 skip incompletely defined, read-only characteristics. 2014-09-22 09:52:01 +01:00
Rohit Grover
fa3c0990e1 drop un-necessary include of DFUService.h 2014-09-18 19:50:47 +01:00
Rohit Grover
41e7ed0b19 DFUService now has its own onDataWritten; no need to make a special case for it in event handling 2014-09-18 18:41:46 +01:00
Rohit Grover
b9813e57e1 add bootloader dfu related headers to nRF-sdk 2014-09-18 11:23:22 +01:00
Rohit Grover
d848bd1c03 temporary checkin for bootloader 2014-09-18 10:47:19 +01:00
Rohit Grover
11c96570b4 charHandle is now a part of GattCharacteristicWriteCBParams 2014-09-18 10:24:44 +01:00
Rohit Grover
4e2e9c1133 Detect writes to the DFU control characteristic and forward them separately to the DFU Service. 2014-09-09 14:46:25 +01:00
Rohit Grover
6d1b6e3f74 white space diffs. 2014-09-09 11:48:59 +01:00
Rohit Grover
e639e66d4a 65:98215c4f3a25 Release 0.1.3
Update to v6.1.0 of Nordic's SDK.

Bugfixes
~~~~~~~~

- Handle all valid disconnection reasons.

Compatible with Release 0.1.1 of the BLE_API.
2014-09-08 17:23:21 +01:00
Rohit Grover
c8a258749a bringing in updates from v6.1.0 of the SDK 2014-09-08 16:59:53 +01:00
Rohit Grover
fc3f7cf753 64:5d5f5cbc Merge pull request from YiHui 2014-09-08 16:59:28 +01:00
Rohit Grover
a23e2bd9ec r62:a022be4c Minor improvement to Tsuboi San's pull request. 2014-09-08 10:29:51 +01:00
Rohit Grover
6f68e7faeb r61:d0158c65 add ifdef for HRM1017 to choose IRC on btle.cpp 2014-09-08 10:28:53 +01:00
Rohit Grover
3434e4b0ee 60:e861f2041469
Release 0.1.2: Minor bugfix release.

Bugfixes
~~~~~~~~

- drop un-necessary app_button.c.

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

Compatible with revision 0.1.0 of the BLE_API.
2014-09-02 17:07:29 +01:00
Rohit Grover
7e37dcfa50 drop un-necessary app_button.c 2014-09-02 17:05:43 +01:00
Rohit Grover
4fa4609d3e 59:2819e564b613
Release 0.1.1
=============

Minor bugfix release.

Bugfixes
~~~~~~~~

- drop duplicate app_timer.cpp; it's already present in the mbed SDK.
- add missing code for custom_add_in_descriptor() to custom_helper.cpp

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

Compatible with revision 0.1.0 of the BLE_API.
2014-09-02 16:46:14 +01:00
Rohit Grover
d60f340383 drop app_timer.cpp because it is already a part of mbed sdk 2014-09-02 16:39:24 +01:00
Rohit Grover
384c84522b 58:de6b64cd7f21
Release 0.1.0
=============

We've achieved significant gains in power consumption: the BLE_Beacon demo now
runs at around 35uA of average current broadcasting once a second at 0dB; when
not using the radio, this demo consumes around 7uA.

Features
~~~~~~~~

- Replace initialization of high-frequency external crystal clock-source with
  the use of low-frequency clock. This brings in significant gains in power
  consumption.

- Re-implement the micro-second timer on nRF51 using the app_timer module
  (which internally uses RTC). This limits the precision of the us_Timer to
  30uS; but brings in significant gains in power consumption.

- Reduce the number of available app_timers and the event depths for app-timer
  events; this will reduce memory consumption for zero-initialized data by
  around 1K.

- Remove the call to conn_params_init() at startup. This is not mandatory; and
  was causing an unnecessary re-negotiation of connection parameters a few
  seconds into every connection.

- Reduce default transmission power level to 0dbB (was 4dbB before).

- Reduce min connection interval to 50ms and max to 500ms (previous values
  were much larger).

- Replace a few instances of use of wait() with nrf_delay_us().

- 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.

- disable the app_gpiote module by default.

Bugfixes
~~~~~~~~

- onDataWritten() callback now passes 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.

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

Compatible with revision 0.1.0 of the BLE_API.
2014-09-02 16:18:30 +01:00
Rohit Grover
ff8e8673ef white space diff 2014-09-02 16:16:51 +01:00