Commit graph

617 commits

Author SHA1 Message Date
Rohit Grover
bf3cdb35f6 GattClient: provide default implementation for virtual methods. fix comments. 2015-06-19 09:45:37 +01:00
Rohit Grover
29e1b7f7d3 GattServer.h: provide default implementations for virtual methods. Fix comments. 2015-06-19 09:32:21 +01:00
Rohit Grover
3bf2c95c59 Gap.h: provide default implementations for virtual functions and fix up comments. 2015-06-19 09:29:33 +01:00
Rohit Grover
b70e8f6174 drop GattServer::initializeGattDatabase() 2015-06-19 09:10:16 +01:00
Rohit Grover
345e8010a2 remove un-necessary comment block. 2015-06-19 09:04:46 +01:00
Rohit Grover
16658a5f7f fix GattServer::onConfirmationReceived() 2015-06-19 09:04:33 +01:00
Rohit Grover
27a32c92a4 minor cosmetic improvements to comments 2015-06-19 09:02:57 +01:00
Rohit Grover
5c2e63a2d8 fix GattServer::onUpdatesDisabled() 2015-06-19 08:57:31 +01:00
Rohit Grover
dd7bbc9747 fix GattServer::onDataRead() 2015-06-19 08:51:59 +01:00
Rohit Grover
87c8c48d2f fix GattServer::onUpdatesEnabled() 2015-06-19 08:46:22 +01:00
Rohit Grover
16c3c1aa9d minor fix for some typos in comments 2015-06-19 08:45:23 +01:00
Rohit Grover
962533e39f fix GattServer::onDataWritten() 2015-06-19 08:37:04 +01:00
Rohit Grover
0553e6f440 fixed GattServer::onDataSent() 2015-06-19 08:35:57 +01:00
Rohit Grover
ebd6bbceb5 introduce SecurityManager 2015-06-19 08:14:12 +01:00
Rohit Grover
db2de9114e handle Gap::onRadioNotification() 2015-06-18 20:41:43 +01:00
Rohit Grover
183665a01b setup Gap::onDisconnection 2015-06-18 20:19:30 +01:00
Rohit Grover
692fe6d445 setup Gap::onConnection() 2015-06-18 19:18:56 +01:00
Rohit Grover
42d440b3ce minor cosmetic move of APIs within Gap.h 2015-06-18 19:06:30 +01:00
Rohit Grover
61eae6c03a fix Gap::onTimeout().
Introduce Gap::TimeoutSource_t. Update TimeoutEventCallback_t
2015-06-18 19:04:16 +01:00
Rohit Grover
5a93322a63 remove GATTClient related APIs from BLE 2015-06-18 18:34:59 +01:00
Rohit Grover
5b76b4ae76 GattServer: readValue()->read(), updateValue()->write() 2015-06-18 16:15:23 +01:00
Rohit Grover
42aaf6bb99 add BLE::gattServer() 2015-06-18 14:49:33 +01:00
Rohit Grover
68683f1c43 deprecate all GAP APIs from within BLE;
add consistent comment headers.
2015-06-18 14:20:43 +01:00
Rohit Grover
7d4f3584ce drop reset() from BLEInstanceBase.h 2015-06-18 06:53:36 +01:00
Rohit Grover
93ef520e62 GapAdvertisingParams: rename type to AdvertisingType_t 2015-06-17 14:16:43 +01:00
Rohit Grover
0e9fdf09a7 copy over GAP APIs from BLE into GAP 2015-06-17 11:09:28 +01:00
Rohit Grover
3832347ea8 rename accessors within Gap 2015-06-17 09:58:40 +01:00
Rohit Grover
f3de00348d rename members within GAP with an underscore prefix 2015-06-17 09:55:33 +01:00
Rohit Grover
e74eb3b4f2 moved GAP related members out of BLE and into GAP 2015-06-17 09:51:37 +01:00
Rohit Grover
756e86da71 BLE: move scanningParams to a better location 2015-06-16 12:46:56 +01:00
Rohit Grover
5981b610d1 add BLE::gap() 2015-06-16 11:58:35 +01:00
Rohit Grover
c89eea7a32 rename BLEDevice as BLE; BLEDeviceInstanceBase as BLEInstanceBase 2015-06-16 11:35:59 +01:00
Rohit Grover
532535b1ec Merge branch 'gattClient' into develop 2015-06-16 11:17:54 +01:00
Rohit Grover
9bcd743330 Rename BLEDevice as BLE. Retain an alias to BLEDevice for the sake of compatibility with old code. 2015-06-16 09:45:57 +01:00
Rohit Grover
05edd0f454 minor white space diffs. 2015-06-15 08:12:22 +01:00
Rohit Grover
43177a02f7 remove un-necessary comments in GattClient.h 2015-06-15 08:09:58 +01:00
Rohit Grover
bfc5480375 fixes #43. Added a few items to DisconnectionReason_t 2015-06-13 00:31:21 +01:00
Rohit Grover
bc4233f22a white space and cosmetic changes. 2015-06-13 00:18:40 +01:00
Rohit Grover
eaf65c9ec4 various services: changed member access levels from private to protected 2015-06-13 00:17:29 +01:00
Rohit Grover
1298a1dda9 certain services like the batteryService and heartRateService don't need to be singletons. 2015-06-13 00:14:52 +01:00
Rohit Grover
33e1d6f93a minor reordering of APIs in BLEDeviceInstanceBase 2015-06-12 17:50:53 +01:00
Rohit Grover
8ebf721ef2 move setTxPower() and getPermittedTxPowerValues() into Gap.h 2015-06-12 17:48:48 +01:00
Rohit Grover
06fe80d975 GattServer APIs should be mostly public 2015-06-12 17:35:12 +01:00
Rohit Grover
ab66c925bc Gap APIs should be mostly public. 2015-06-12 17:34:52 +01:00
Rohit Grover
69726547cc Release 0.3.9
=============

A minor patch to fix a build error introduced by the previous
release. This has to do with certain declarations being made members
of class UUID.
2015-06-08 10:55:27 +01:00
Rohit Grover
f6cd813d68 fix minor build errors arising from making certain declarations members of class UUID. 2015-06-08 10:54:52 +01:00
Rohit Grover
7e8977d8e7 Release 0.3.8
=============

This is a minor set of enhancements before we yotta-ize BLE_API.

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

* Minor rework for class UUID; added a default and copy constructor; and a != operator.

* Added copy constructor and accessors for GapAdvertisingParams.

* GapScanningParams:: remove unnecessary checks for SCAN_TIMEOUT_MAX.

* Add a comment header block to explain why BLEDevice::init() may not be safe
  to call from global static context.

* Introduce GattAttribute::INVALID_HANDLE.

* Replace some deprecated uses of Gap::address_t with Gap::Address_t.

Bugfixes
~~~~~~~~

* None.
2015-06-08 10:28:33 +01:00
Rohit Grover
9f26d2a308 define operator!= for UUID 2015-06-08 09:53:16 +01:00
Rohit Grover
cdaa23edfd add UUID::setupLong() 2015-06-08 09:52:44 +01:00
Rohit Grover
27aae6bf41 Add a copy and default constructor for UUID.h.
add a comment to UUID constructor to explain MSB byte ordering.
2015-06-08 09:51:24 +01:00