Commit Graph

489 Commits (a091922f1093525fc2b62e7bfb8484e40e9b063c)

Author SHA1 Message Date
Rohit Grover 9e7dab432e implement deleteAllBondedDevices() 2015-05-07 08:15:48 +01:00
Rohit Grover 85fcb2cbb3 simplify some error handling. 2015-05-07 08:15:48 +01:00
Rohit Grover 560d7d3de9 move applicationInstance out as a static variable. 2015-05-07 08:15:48 +01:00
Rohit Grover 0f6f90726c move declaration into btle_security.h 2015-05-07 08:15:48 +01:00
Rohit Grover c372068ee8 remove exec bit from btle.cpp 2015-05-07 08:15:48 +01:00
Rohit Grover e599b93b14 separating out security related code into btle_security.cpp 2015-05-07 08:15:48 +01:00
Rohit Grover 3dddef3deb remove some un-necessary debug code. 2015-05-07 08:15:48 +01:00
Rohit Grover 488de5cd45 allow for security modes to be set for characteristics. 2015-05-07 08:15:48 +01:00
Rohit Grover 75e2f969fd handle DM related events. 2015-05-07 08:14:19 +01:00
Rohit Grover 28973060c7 custom_helper.h: move some includes outside extern "C" { 2015-05-07 08:14:19 +01:00
Rohit Grover 4f49671804 intermediate checkin 2015-05-07 08:14:19 +01:00
Rohit Grover 7b0a9a7929 add handling for initializeSecurity() 2015-05-07 08:14:18 +01:00
Rohit Grover ac70594f77 mark an out-parameter as [out] in the comment header. 2015-05-07 08:12:52 +01:00
Rohit Grover 7e055bd04f initialize the device manager to allow security setup.
Was able to bond with peer.
2015-05-07 08:12:52 +01:00
Rohit Grover 50391e73a0 begin integration of device_manager by calling dm_init() from btle_init() 2015-05-07 08:12:52 +01:00
Rohit Grover e5ba1d8528 Call pstorage_init() from btle_init() 2015-05-07 08:12:52 +01:00
Rohit Grover 55ae14757e purge dependencies on BOND_MANAGER 2015-05-07 08:12:52 +01:00
Rohit Grover facb54c979 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-05-07 08:12:52 +01:00
Rohit Grover 0447d4ac08 updating to v7.1 of the Nordic SDK.
Re-organized file layout to match that from the SDK.
2015-05-07 08:12:52 +01:00
Rohit Grover ac865c5e53 Fixes #9: Handle user-description-descriptor properly.
Also tracked by https://github.com/mbedmicro/BLE_API/issues/38
2015-04-24 08:25:42 +01:00
Rohit Grover ece3b856ba white space diffs. 2015-04-24 08:21:16 +01:00
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