Commit graph

118 commits

Author SHA1 Message Date
Rohit Grover
7588e719f8 Merge pull request #8 from rosterloh/master
Fix for GCC lost in SDK v8.0 update
2015-04-22 08:58:46 +01:00
Rohit Grover
0466f80d4d remove references to app_trace from device_manager_peripheral 2015-04-22 08:19:13 +01:00
Rohit Grover
411da25577 remove component app_gpiote. 2015-04-22 08:17:59 +01:00
Richard Osterloh
fa30565ff2 Fix for GCC lost in SDK v8.0 update 2015-04-21 10:48:15 +01:00
Rohit Grover
deaa052af6 Release 0.3.2
=============

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

* Changes needed to support v8 of the Nordic SDK.
* provide more detail about BLE spec and fwid in getVersion().

Workarounds
~~~~~~~~~~~

* ble_radio_notification_init requires DISTANCE_800US for now. :(
2015-04-20 11:25:08 +01:00
Rohit Grover
4ae92f89c1 porting to v8.0 of the SDK 2015-04-20 10:50:56 +01:00
Rohit Grover
2783e0289c ble_radio_notification_init requires DISTANCE_800US for now. :( 2015-04-15 09:23:56 +01:00
Rohit Grover
52ce741764 add missing #define BLE_STACK_SUPPORT_REQD 2015-04-15 09:16:58 +01:00
Rohit Grover
2ebc6874cd Release 0.3.1
=============

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

* updating to v7.1 of the Nordic SDK. Re-organized file layout to match that from the SDK.

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

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

Bugfixes
~~~~~~~~

none.
2015-04-15 08:51:36 +01:00
Rohit Grover
ab5d4cf092 adding const to an argument of GattServer::updateValue() 2015-04-15 08:36:30 +01:00
Rohit Grover
fa7fa975df white space diffs 2015-04-15 08:36:30 +01:00
Rohit Grover
a0829e8c96 white space diffs 2015-04-15 08:36:20 +01:00
Rohit Grover
11a53ce5f8 Add support for 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.

Bugfixes
~~~~~~~~

none.
2015-04-10 12:48:59 +01:00
Rohit Grover
149bfef781 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-04-10 12:48:13 +01:00
Rohit Grover
fa183c4024 updating to v7.1 of the Nordic SDK.
Re-organized file layout to match that from the SDK.
2015-04-10 12:48:13 +01:00
Rohit Grover
270603e302 Release 0.3.0
==============

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

* Updated to use of new APIs for authorizeRead() and authorizeWrite() which
  return status.

* Implement APIs for getMinAdvertisingInterval() and variants.

* add #ifdef __cplusplus to pstorage.h

Bugfixes
~~~~~~~~

none.
2015-03-23 16:22:46 +00:00
Rohit Grover
afdc7154d5 updated to use of new APIs for authorizeRead() and authorizeWrite() which return status. 2015-03-23 16:15:09 +00:00
Rohit Grover
6dd1e0b667 add #ifdef __cplusplus to pstorage.h 2015-03-23 16:14:51 +00:00
Rohit Grover
2c5d9aecb8 ble_conn_params: transfer use of app_timer to mbed::Ticker 2015-03-17 14:35:45 +00:00
Rohit Grover
1d28ee8643 disable the connParameters module because it uses app_timer. 2015-03-02 11:32:29 +00:00
Rohit Grover
c9d036fc04 Release 0.2.6
=============

Enhancements
~~~~~~~~~~~~
* Disregard bytes 2 and 3 when comparing long UUIDs. This is in response to a
  user request to avoid zeroing out bytes 2 and 3 when storing long UUIDs
  within the class UUID.

* Added optional data and length fields to the return struct for authorized
  reads so a new value can be provided for each individual authorization. Pull
  request from Marcus Chang.

* Updated return value for nRF51GattServer::updateValue. Will now report when
  call fails. Pull request from Marcus Chang.

* Use GattAttribute::Handle_t for GattServer::readValue() and updateValue().

* add code to support getPermittedTxValues().

Bugfixes
~~~~~~~~

* Write permission was not set for 'write without response' characteristics.
  Pull request from Marcus Chang.

* When the write-authorization attribute is enabled for a characteristic,
  handleDataWritten() should still be called after authorization.

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

This release is backward compatible with 0.2.3.
2015-03-02 11:32:01 +00:00
Rohit Grover
3b74d9dcb2 add code to support getPermittedTxValues() 2015-03-02 11:32:01 +00:00
Rohit Grover
929136c446 use GattAttribute::Handle_t for GattServer::readValue and updateValue 2015-03-02 11:32:01 +00:00
Rohit Grover
e3a8d803a6 Merge pull request #6 from Marcomissyou/master
new target DELTA_DFCM_NNN40 with nrf51822 chip, config internal RC crystal.
2015-02-25 10:28:48 +00:00
Marcomissyou
dcc76f5165 #if defined(TARGET_DELTA_DFCM_NNN40) || defined(TARGET_HRM1017) 2015-02-11 16:06:37 +08:00
Rohit Grover
e4fab54bf2 include the pstorage module in the nRF port. 2015-01-20 17:06:44 +00:00
Rohit Grover
d24bfdb5e7 When the write-authorization attribute is enabled for a characteristic, AUTHORIZATION_REQ event (if replied with true) is *not* followed by another DATA_WRITTEN event; so we still need to invoke handleDataWritten(). 2015-01-16 13:12:21 +00:00
Rohit Grover
4a6ca6cd7a minor white space diff. 2015-01-16 09:16:08 +00:00
Rohit Grover
e2020c2b0c update CFG_TIMER_OPERATION_QUEUE_SIZE to 2 to allow scheduling deletion of timers while they're pending. 2015-01-09 13:08:49 +00:00
Rohit Grover
1c1dad30d9 minor white space diff. 2015-01-09 10:44:09 +00:00
Rohit Grover
c9a39ef3ea Merge pull request #4 from marcuschangarm/master
Updated return value for nRF51GattServer::updateValue. Will now report w...
2015-01-07 09:06:34 +00:00
Marcus Chang
7ce2924889 Updated return value for nRF51GattServer::updateValue. Will now report when call fails. 2015-01-06 13:06:37 +00:00
Rohit Grover
5d2eb310fc white space diffs. 2014-12-17 08:55:57 +00:00
Rohit Grover
d3ac84395f Merge pull request #3 from marcuschangarm/master
Added optional data and length fields to the return struct for authorize...
2014-12-17 08:51:23 +00:00
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