Commit graph

778 commits

Author SHA1 Message Date
Rohit Grover
0183fdc2cb Merge branch 'ddavidebor-master' into develop 2015-07-27 12:16:30 +01:00
Rohit Grover
97b0438704 Merge branch 'master' of https://github.com/ddavidebor/BLE_API into ddavidebor-master 2015-07-27 12:15:47 +01:00
Davide Bortolami
40929416ea minor corrections to the comments 2015-07-25 19:41:58 +02:00
Rohit Grover
2cf2c2f52d version v0.4.3 2015-07-22 10:14:56 +01:00
Rohit Grover
95321570fb Release 0.4.3
=============

This is a minor release.

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

* Switch github repo URL to ARMmbed organization: https://github.com/ARMmbed/BLE_API.
  We were previously hosted in the mbedmicro organization.

* Extend onRadioNotification() to take a <object, member> pair. This also
  introduces a new GAP API: initRadioNotification() which porters of BLE_API
  should implement.

* Rename iBeaconService as iBeacon. This is not a Service in the BLE sense.

* Pull from Ollie Ford (#56): GattCharacteristic constructors now expose optional descriptors.

* Pull from AFernandes: change DiscoveredCharacteristic API to return long or short UUIDs.

* Provide a useful initial implementation for GattClient::discoverServices().

Bugfixes
~~~~~~~~

none.
2015-07-21 12:02:37 +01:00
Rohit Grover
1842576f26 Release 0.4.3
=============

This is a minor release.

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

* Switch github repo URL to ARMmbed organization: https://github.com/ARMmbed/BLE_API.
  We were previously hosted in the mbedmicro organization.

* Extend onRadioNotification() to take a <object, member> pair. This also
  introduces a new GAP API: initRadioNotification() which porters of BLE_API
  should implement.

* Rename iBeaconService as iBeacon. This is not a Service in the BLE sense.

* Pull from Ollie Ford (#56): GattCharacteristic constructors now expose optional descriptors.

* Pull from AFernandes: change DiscoveredCharacteristic API to return long or short UUIDs.

* Provide a useful initial implementation for GattClient::discoverServices().

Bugfixes
~~~~~~~~

none.
2015-07-21 12:01:59 +01:00
Rohit Grover
cf1a66303f Rename some enums in GapAdvertisingData, and create some deprecated type aliases. This helps harmonize type-names. 2015-07-21 12:01:39 +01:00
Rohit Grover
74bf708b05 rename iBeaconService as iBeacon. 2015-07-21 11:44:36 +01:00
Rohit Grover
b3462b3c82 Extend onRadioNotification() to take a <object, member> pair.
This is going to help with the implementation of Eddystone.
2015-07-21 11:36:36 +01:00
Rohit Grover
f12267fc71 Update comment header for onRadioNotification() to explain the second prototype. 2015-07-21 11:16:36 +01:00
Rohit Grover
c1c05e5f90 Extend onRadioNotification() to take a <object, member> pair.
Add new API to be implemented by BLE ports: initRadioNotification
2015-07-21 11:05:04 +01:00
Rohit Grover
5eda1ad9e7 make signature of BLE::onRadioNotification() more explicit.
void onRadioNotification(void (*callback)(bool))
This then is extended in Gap.h by:

    template <typename T>
    void onRadioNotification(T *tptr, void (T::*mptr)(bool));
2015-07-21 09:34:08 +01:00
Rohit Grover
26e9536a80 fix some typos in API comment blocks in BLE.h 2015-07-21 09:30:09 +01:00
Rohit Grover
90551b6eb7 Rename iBeaconService as iBeacon. This is not a Service in the BLE sense. 2015-07-21 09:24:05 +01:00
Rohit Grover
09076e1673 simplified some declarations: removed extraneous 'typedef' from typedef struct X {}; 2015-07-14 09:05:35 +01:00
Rohit Grover
86d7566467 white space diffs. 2015-07-14 08:20:31 +01:00
Rohit Grover
d79995b3ce Merge pull request #56 from OJFord/develop
expose descriptors optional arg in derived GattChar. constructors
2015-07-14 08:07:18 +01:00
Rohit Grover
98261b871b switch repo URL to ARMmbed organization. 2015-07-14 08:05:20 +01:00
Ollie Ford
d583b13bba fix typo in GattService constructor
Reference to 'this characteristic' become 'this service'
2015-07-13 15:26:03 +01:00
Ollie Ford
ab17d9c409 expose optional descriptors in template constructors
Read/Write/Only/Array derivations forward `descriptors` and `numDescriptors` to base constructor
2015-07-13 15:22:59 +01:00
Rohit Grover
74191e254b module.json: depend on mbed-classic only for mbed-classic builds. 2015-07-13 10:05:56 +01:00
Rohit Grover
7aaf768fde Merge branch 'adfernandes-master' into develop 2015-07-13 07:40:09 +01:00
Rohit Grover
7d961c15f5 Merge branch 'master' of https://github.com/adfernandes/BLE_API into adfernandes-master 2015-07-13 07:39:40 +01:00
Andrew Fernandes
da20f2e2c7 Change DiscoveredCharacteristic API to return long or short UUIDs. 2015-07-10 11:50:36 -04:00
Rohit Grover
9d289f811b minor changes to comments for porting. 2015-07-06 14:39:46 +01:00
Rohit Grover
735e18aab3 provide a useful initial implementation for GattClient::discoverServices() 2015-07-06 14:35:05 +01:00
Rohit Grover
0586bdf264 Release 0.4.2
=============

This is a minor release.

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

* fix #53: add GattClient API for handling HVX Events (notifications and
  indications). Refer to GattClient::onHVX(HVXCallback_t ...) and
  GattHVXCallbackParams.

* Add empty (void) declarations for unused variables in the default
  implementations for several API (in Gap, GattServer, GattClient, etc). This
  avoids compiler warnings.

Bugfixes
~~~~~~~~

none.
2015-07-06 09:35:58 +01:00
Rohit Grover
33a70b4655 Release 0.4.2
=============

This is a minor release.

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

* fix #53: add GattClient API for handling HVX Events (notifications and
  indications). Refer to GattClient::onHVX(HVXCallback_t ...) and
  GattHVXCallbackParams.

* Add empty (void) declarations for unused variables in the default
  implementations for several API (in Gap, GattServer, GattClient, etc). This
  avoids compiler warnings.

Bugfixes
~~~~~~~~

none.
2015-07-06 09:35:41 +01:00
Rohit Grover
0d55096d82 fix #53: add GattClient::onHVX() and GattHVXCallbackParams 2015-07-06 09:31:37 +01:00
Rohit Grover
4b21112e34 update module.json with version numbers 2015-07-03 11:09:04 +01:00
Rohit Grover
feb4e95753 minor change to a comment for poter(s). 2015-07-03 10:59:27 +01:00
Rohit Grover
163f9e010a add empty (void) declarations for unused variables. This avoids warnings.
I could have used the compiler-polyfill module, but I wanted to avoid creating that dependency.
2015-07-03 10:54:32 +01:00
Rohit Grover
8846107b5c Merge branch 'rosterloh-patch-1' into develop 2015-07-02 11:44:31 +01:00
Rohit Grover
7619e0eb89 Merge branch 'patch-1' of https://github.com/rosterloh/BLE_API into rosterloh-patch-1 2015-07-02 11:44:07 +01:00
Richard Osterloh
41b4e077ff Refactor using new include paths 2015-07-02 11:41:37 +01:00
James Crosby
c7dbf2b071 use mbed-classic to build (this will probably be a target-dependendency in the future) 2015-07-02 11:31:47 +01:00
Rohit Grover
b158df2418 Merge pull request #50 from mbedmicro/revert-45-master
Revert "use mbed-classic as mbed dependency"
2015-07-02 11:29:52 +01:00
Rohit Grover
08c492444b Revert "use mbed-classic as mbed dependency" 2015-07-02 12:26:20 +01:00
Rohit Grover
3118f76bfe Merge pull request #45 from autopulated/master
use mbed-classic as mbed dependency
2015-07-02 11:25:15 +01:00
Rohit Grover
737800d8ec fix a typo in a comment header 2015-07-02 09:36:02 +01:00
Rohit Grover
42f99e1b7c Release 0.4.1
=============

This is a minor release.

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

* Introduce API GattServer::areUpdatesEnabled() to determine notification
  status for a characteristic.
  This is a follow up from https://github.com/mbedmicro/BLE_API/pull/41.
  @jeremybrodt did a lovely job submitting that pull request, but there had
  been too many changes in the neighbouring code recently to merge his
  work directly. I didn't take the trouble of preserving his submission
  in the history; my apologies--credit for this API goes entirely to him.

* Replace DiscoveredCharacteristic::setupOnDataRead() with GattClient::onDataRead().

* Move GATT_MTU_SIZE_DEFAULT into blecommon.h as BLE_GATT_MTU_SIZE_DEFAULT.

* Replace uses of the deprecated updateCharacteristicValue() with ble.gattServer().write().

* Change access levels to protected for various members of the standard services.

* Update LinkLossService with a recent change to the definition of
  GattWriteCallbackParams. Involved renaming member charHandle to handle.

Bugfixes
~~~~~~~~

* None.
2015-07-02 08:36:36 +01:00
Rohit Grover
4ac9700a2b update LinkLossService with changes to GattWriteCallbackParams 2015-07-02 08:27:54 +01:00
Rohit Grover
417b857d1b changing a comment pattern to request action from porters. 2015-07-02 08:19:12 +01:00
Rohit Grover
9a0be47794 Introduce GattServer API to determine notification status for a characteristic.
follow up from https://github.com/mbedmicro/BLE_API/pull/41.
@jeremybrodt did a lovely job submitting that pull request, but there had been too many changes in the neighbouring code recently to merge his work directly. I didn't take the trouble of preseving his submission in the history; my apologies--credit for this API goes entirely to him.
2015-07-01 14:52:17 +01:00
Rohit Grover
453681182a change access levels to protected for various members of the standard services 2015-07-01 13:14:26 +01:00
Rohit Grover
b633e90c9c replace use of updateCharacteristicValue() with ble.gattServer().write() 2015-07-01 12:57:17 +01:00
Rohit Grover
7fb8b66ebb minor rename of a variable. 2015-07-01 11:33:38 +01:00
Rohit Grover
2d59404877 #49: replace DiscoveredCharacteristic::setupOnDataRead() with GattClient::onDataRead() 2015-07-01 08:17:44 +01:00
Rohit Grover
27bc31ee0c minor white space and comment header diffs. 2015-07-01 07:39:27 +01:00
Rohit Grover
2601599599 #46: rename GATT_MTU_SIZE_DEFAULT to BLE_GATT_MTU_SIZE_DEFAULT. This avoids a name conflict with the contant defined in Nordic-SDK. 2015-07-01 07:31:24 +01:00