Commit graph

377 commits

Author SHA1 Message Date
Rohit Grover
094e94b9f8 Merge branch 'master' of https://github.com/autopulated/nRF51822 into autopulated-master 2015-07-02 12:56:29 +01:00
Rohit Grover
d854663cbc add consts at a couple of places. 2015-07-02 07:59:44 +01:00
Rohit Grover
bf1405414d close #21: provide an implementation for areUpdatesEnabled() 2015-07-02 07:57:51 +01:00
Rohit Grover
1682fb0932 fixes #20: addService initializes value attribute handles correctly. Previously these were getting confused with characteristicIndex.
Event handlers also return attribute handles correctly now; they were also previously returning characteristic indices.
2015-07-01 11:39:13 +01:00
Rohit Grover
4bedd5ac7c replace DiscoveredCharacteristic::setupOnDataRead() with GattClient::onDataRead() 2015-07-01 08:18:38 +01:00
Rohit Grover
84e2b306e1 #16: unhide GATT_MTU_SIZE_DEFAULT because the nordic bootloader depends on it. 2015-07-01 07:25:33 +01:00
Rohit Grover
2ebe5108ee Fix #16: move GATT_MTU_SIZE_DEFAULT into blecommon.h
Note: there's a corresponding change to mbedmicro/BLE_API
2015-06-30 07:49:39 +01:00
Rohit Grover
3d87035e26 fix #16: hide duplicate symbol definitions in ble_types.h 2015-06-29 07:45:28 +01:00
James Crosby
e5575abbfc add module.json 2015-06-23 18:20:12 +01:00
James Crosby
488e24620d restructure to yotta module, with a few tweaks to get things building 2015-06-23 18:15:41 +01:00
Rohit Grover
2716309ce1 Release 0.4.0
=============

This is a major release which introduces the GATT Client functionality. It
aligns with release 0.4.0 of BLE_API.

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

* Introduce GattClient. This includes functionality for service-discovery,
  connections, and attribute-reads and writes. You'll find a demo program for
  LEDBlinker on the mbed.org Bluetooth team page to use the new APIs. Some of
  the GATT client functionality hasn't been implemented yet, but the APIs have
  been added.

* We've added an implementation for the abstract base class for
  SecurityManager. All security related APIs have been moved into that.

* There has been a major cleanup of APIs under BLE. APIs have now been
  categorized as belonging to Gap, GattServer, GattClient, or SecurityManager.
  There are accessors to get references for Gap, GattServer, GattClient, and
  SecurityManager. A former call to ble.setAddress(...) is now expected to be
  achieved with ble.gap().setAddress(...).

* We've cleaned up our APIs, and this has resulted in dropping some APIs like
  BLE::reset().

* We've also dropped GattServer::initializeGattDatabase(). THis was added at
  some point to support controllers where a commit point was needed to
  indicate when the application had finished constructing the GATT database.
  This API would get called internally before Gap::startAdvertising(). We now
  expect the underlying port to do the equivalent of initializeGattDatabase()
  implicitly upon Gap::startAdvertising().

* We've added a version of Gap::disconnect() which takes a connection handle.
  The previous API (which did not take a connection handle) has been
  deprecated; it will still work for situations where there's only a single
  active connection. We hold on to that API to allow existing code to migrate
  to the new API.

Bugfixes
~~~~~~~~

* None.
2015-06-19 15:48:04 +01:00
Rohit Grover
f983494cc9 adjust to the new yotta friendly file tree for BLE_API 2015-06-19 13:39:08 +01:00
Rohit Grover
2453a09171 drop initializeGattDatabase() 2015-06-19 10:24:27 +01:00
Rohit Grover
77a3683918 disconnect() should have a version which takes a connection handle 2015-06-19 10:23:57 +01:00
Rohit Grover
716a8f6258 drop BLEInstanceBase::reset() 2015-06-19 08:29:00 +01:00
Rohit Grover
954c08e84d add support for SecurityManager 2015-06-19 08:28:35 +01:00
Rohit Grover
ef145ffba1 white space diffs. 2015-06-18 21:27:29 +01:00
Rohit Grover
b7fdb260a0 implement GattServer::read() and write() 2015-06-18 21:23:54 +01:00
Rohit Grover
35e13e5497 add implementation for BLEInstanceBase::getGattServer() const 2015-06-18 21:23:08 +01:00
Rohit Grover
b70f93d351 updates to support radioNotificationCallback 2015-06-18 21:22:22 +01:00
Rohit Grover
2f4e06b266 handle processTimeoutEvent() passing in TimeoutSource_t 2015-06-18 21:21:51 +01:00
Rohit Grover
872b10f2ec add implementation for virtual const Gap &getGap() const 2015-06-18 14:12:50 +01:00
Rohit Grover
832347de91 make use of GapAdvertisingParams::AdvertisingType_t instead of Gap::AdvertisementType_t 2015-06-18 14:12:15 +01:00
Rohit Grover
a6b456c75c make use of GapAdvertisingData::Appearance instead of uint16_t 2015-06-18 14:10:50 +01:00
Rohit Grover
27b54dee36 Merge branch 'gattClient' into develop 2015-06-17 09:29:47 +01:00
Rohit Grover
bb88aaad7b renamed BLEDevice to BLE 2015-06-17 09:25:18 +01:00
Rohit Grover
0c2e06ff0f Merge pull request #12 from adfernandes/gattClient
Fix various GCC compilation issues.
2015-06-17 07:47:37 +01:00
Andrew Fernandes
fbfc6d16f3 Fix various GCC compilation issues. 2015-06-16 15:08:32 -04:00
Rohit Grover
c796271c91 Merge branch 'gattClient' into develop 2015-06-16 10:52:31 +01:00
Rohit Grover
6d1bf116e1 fix #1: update license headers for all sources obtained from nordic-SDK using a new template obtained from Nordic. 2015-06-16 09:28:17 +01:00
Rohit Grover
efcb88a147 move setTxPower() and getTxPowerLevels() into Gap.h 2015-06-12 17:50:05 +01:00
Rohit Grover
4d24dc24c9 DFU: disable CRC checks based on the init packet. 2015-06-09 08:10:04 +01:00
Rohit Grover
9f72c4ba7c Release 0.3.7
=============

This is a minor set of enhancements mostly around reduce our global static
memory footprint.

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

* Reduce the maximum number of CHARACTERISTICS and DESCRIPTORS that can be
  handled. This has memory implications for static global memory. It should
  be possible to re-architect our solution for add_characteristic() to not
  require these limits; hopefully we'll get there soon.

* Move nRF51GattServer::getInstance() into a .cpp file; same for nRF51Gap::getInstance().

* Reduce max bonds to managed by device-manager to 4; this has memory implications for static global memory.

* Reduce pStorage command queue size to 2; this has memory implications for static global memory.

* Replace uses of deprecated Gap::addr_type_t with Gap::AddressType_t.

* Some UUID-related types have moved into UUID class. Minor changes were needed to work around build errors.

Bugfixes
~~~~~~~~

* None.
2015-06-08 10:37:21 +01:00
Rohit Grover
d7f869bda7 UUID types have moved into UUID class. 2015-06-08 09:47:09 +01:00
Rohit Grover
d3889dfb7e rename nRF* to nRF51* 2015-06-05 15:25:25 +01:00
Rohit Grover
3f88e3e384 remove extraneous comment carrying old code. 2015-06-05 13:31:28 +01:00
Rohit Grover
16137b5897 we now have a working nRFGattClient::write() 2015-06-05 13:30:48 +01:00
Rohit Grover
3bea28cfae cleanup around GattCallbackParamTypes 2015-06-05 11:16:31 +01:00
Rohit Grover
ce514155d3 use GattCharacteristicReadCBParams 2015-06-05 10:46:41 +01:00
Rohit Grover
c182fef4bb accommodate GattClient::WriteOp_t 2015-06-05 09:58:17 +01:00
Rohit Grover
f49e3469ae setup save of GattClient pointer in DiscoveredClient 2015-06-05 09:26:41 +01:00
Rohit Grover
5a4e62f169 one massive commit to integrate with GattClient.
DiscoveredCharacteristic still needs to setup gattc pointers.
2015-06-04 14:44:44 +01:00
Rohit Grover
093cc129bb nRFDiscovery is now a part of the nRFGattClient object. 2015-06-04 09:25:04 +01:00
Rohit Grover
168eed4ee4 nRFDiscoveredCharacteristic::setup() takes a GattClient poitner 2015-06-04 09:25:04 +01:00
Rohit Grover
9d50304018 add read() to nRFGattClient. 2015-06-04 09:25:04 +01:00
Rohit Grover
0cc48daf77 introduce implementation for nRF51GattClient 2015-06-04 09:25:04 +01:00
Rohit Grover
1fc421bad1 intermediate checkin as nRFDiscoveredCharacteristic moves into GattClient implementation. 2015-06-04 09:25:04 +01:00
Rohit Grover
d708c588ee handle NOT_PERMITTED for read() and writeWoResponse() 2015-06-04 09:25:04 +01:00
Rohit Grover
4ec5b9443b nRFDiscoveredCharacteristic: handle setup of properties correctly. 2015-06-04 09:25:04 +01:00
Rohit Grover
7cf266a318 introduce nRFDiscoveredCharacteristic::writeWoResponse() 2015-06-04 09:25:04 +01:00