Commit graph

746 commits

Author SHA1 Message Date
Rohit Grover
3d6893f3da version v0.4.4 2015-08-07 15:50:59 +01:00
Rohit Grover
17253370ff Release 0.4.4
=============

This is a minor release.

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

* Add a new helper API: Gap::updateAdvertisingPayload(). This helps update a
  particular AD field in the advertisement payload.

* Deprecate GattClient::onDataWrite() in favour of onDataWritten().

* fix #64. clearScanResponse() should work properly now.

* fix #60: if scanning parameters are changed while scanning is active, their
  new values are propagated to the underlying stack right-away.

* Introducing an initial implementation for Google's Eddystone beacon service.
  See https://github.com/google/eddystone.

* Updated module.json because URL of the host repo has changed to
  "git@github.com:ARMmbed/ble.git".

Bugfixes
~~~~~~~~

none.
2015-08-07 15:50:37 +01:00
Rohit Grover
00e76777b2 add yotta dependency for mbed-core 2015-08-07 15:50:03 +01:00
Rohit Grover
5422ec45c3 we now depend on v0.4.4 of ble-nrf51822 2015-08-07 15:42:49 +01:00
Rohit Grover
a9561faea1 host repository has been renamed to github/ARMmbed/ble. 2015-08-07 15:29:34 +01:00
Rohit Grover
eb97fcf064 minor change to avoid a compiler warning about un-used variable. 2015-08-07 15:27:34 +01:00
Rohit Grover
bff44f94a6 Adding an initial implementation for Eddystone beacon service. 2015-08-07 15:27:08 +01:00
Rohit Grover
45813579a5 fix #60: if scanning parameters are changed while scanning is active, their new values are propagated to the underlying stack rightaway. 2015-08-07 10:14:37 +01:00
Rohit Grover
24a989212a fix #64: GapAdvertisingData::getPayload() should return the payload pointer regardless of len. 2015-08-07 09:20:30 +01:00
Rohit Grover
3711ca3016 deprecate GattClient::onDataWrite() in favour of onDataWritten(). 2015-08-07 09:10:39 +01:00
Rohit Grover
501de9ef1f Merge pull request #63 from jslater8/develop
Conversion from advertisement duration units to ms moved from Gap to …
2015-08-06 13:36:43 +01:00
Joshua Slater
e65471d680 Fixed bugs with Gap:: and GapAdvertisingParams 2015-08-06 11:04:38 +01:00
Joshua Slater
0f2ba674c8 Conversion from advertisement duration units to ms moved from Gap to GapAdvertisingParams. getInterval converts to ms. Added conversion in GapScanningParams 2015-08-06 10:43:04 +01:00
Rohit Grover
ce6772dd88 Merge branch 'sunsmilearm-develop' into develop. Bring in Gap::updateAdvertisingPayload() 2015-08-03 08:11:30 +01:00
Rohit Grover
97d939ca77 Minor updates to the implementation. Add a local struct to describe ADV fields. 2015-08-03 08:08:47 +01:00
Rohit Grover
ea37b64307 Merge branch 'develop' of https://github.com/sunsmilearm/BLE_API into sunsmilearm-develop 2015-08-03 07:23:21 +01:00
Xiao Sun
509ffdd1de Add a new function updateAdvertisingPayload()
add updateAdvertisingPayload() to update  one field of the advertising
payload
2015-08-03 14:05:16 +08:00
Rohit Grover
64e5ef32c1 minor update to a comment header. Add a mention of units for accumulateAdvertisingPayloadTxPower(). 2015-07-29 12:06:51 +01:00
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