Commit graph

782 commits

Author SHA1 Message Date
Rohit Grover 7e9fc2ae86 minor parameter renames and removal of un-necessary consts 2015-03-30 11:42:32 +01:00
Rohit Grover 1d21e85a06 Release 0.3.1
=============

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

* added helper UARTService::writeString() to simplify writing of strings.

Bugfixes
~~~~~~~~

none.
2015-03-27 13:02:31 +00:00
Rohit Grover c936446c42 UARTService::write() should return a size_t 2015-03-27 08:14:04 +00:00
Rohit Grover c7a2b9bb93 Release 0.3.0
==============

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

* BLEDevice::setAdvertisingInterval() uses milliseconds as the unit for its
  argument. If advertising interval is set to 0, advertising is stopped. If
  advertising interval is smaller than the minimum value supported, then the
  minimum value is used instead.

* Add an enumeration called GattCharacteristicAuthCBReply_t to capture a
  status code from read/write authorization callback. Previously it used to
  return only a bool.

* Add APIs for getMinAdvertisingInterval() and variants.

Bugfixes
~~~~~~~~

* URIBeaconConfigService uses better write-authorization filters. It now
  passes tests defined in Google's validator app.
2015-03-23 16:10:34 +00:00
Rohit Grover 9be96eaf4c remove comment block for absent parameter. 2015-03-23 08:45:50 +00:00
Rohit Grover 433f558c64 Release 0.2.16
==============

All changes in this release apply to the URIBeaconConfig service.

Enhancements
~~~~~~~~~~~~
* Pull out the advertisement switch from the 'service' class. This is now under application control.

* Check for persistence magic now happens outside the URIBeaconConfig service.

Bugfixes
~~~~~~~~

* isLocked was getting initialized in the constructor too soon.

Compatibility
~~~~~~~~~~~~~

This release is API compatible with 0.2.4.
2015-03-13 09:56:47 +00:00
Rohit Grover 4f221e8ac9 white space diffs. 2015-03-13 09:20:10 +00:00
Rohit Grover bdd048bc40 URIBeaconConfigService's constructor takes the resetToDefaults flag again 2015-03-13 09:19:42 +00:00
Rohit Grover b3c20f868e minor cosmetic and variable-type changes. 2015-03-10 10:06:46 +00:00
Rohit Grover 0496132214 adding a const. 2015-03-10 08:09:41 +00:00
Rohit Grover 41e18622f4 URIBeaconConfigService: Pull out the advertisement switch from the 'service' class.
This can be left in main.cpp for the application developer.
2015-03-10 08:09:25 +00:00
Rohit Grover 5a5834ce2d URIBeaconConfig::encodeURI: move const declarations to the top. 2015-03-10 07:39:23 +00:00
Rohit Grover 6f0d2168e6 URIBeaconConfig::encodeURI: remove check for suffixlen == 0; un-necessary. 2015-03-10 07:37:25 +00:00
Rohit Grover 9342504e0e white space diffs. 2015-03-10 07:35:39 +00:00
Rohit Grover b62e113bb9 Release 0.2.15
==============

Enhancements
~~~~~~~~~~~~
* Define a persistence API for the URIBeaconConfig service.

Bugfixes
~~~~~~~~

* remove some Nordic specific preprocessor macros from blecommon.h

Compatibility
~~~~~~~~~~~~~

This release is API compatible with 0.2.4.
2015-03-09 16:22:58 +00:00
Rohit Grover f89dd7b5ec minor rename of helper functions. 2015-03-09 16:04:44 +00:00
Rohit Grover d10ef53a65 rename ADVERTISING_TIMEOUT_SECONDS to CONFIG_ADVERTISING_TIMEOUT_SECONDS 2015-03-09 16:03:08 +00:00
Rohit Grover ca9091c429 white space diffs. 2015-03-09 16:00:49 +00:00
Rohit Grover 517d7c9e23 white space diffs. 2015-03-09 08:32:56 +00:00
Rohit Grover 19dbb4ecd0 move the setup of advertisements into the config service. 2015-03-06 16:16:46 +00:00
Rohit Grover 1466dddda9 blecommon.h should not be defining Nordic specific pre-processor defines. 2015-03-05 17:05:47 +00:00
Rohit Grover 22243be750 Release 0.2.14
==============

Enhancements
~~~~~~~~~~~~
* Remove the entire thing about zeroing out bytes 2 and 3 of long UUID. Fixes #35.

Bugfixes
~~~~~~~~

none.

Compatibility
~~~~~~~~~~~~~

This release is API compatible with 0.2.4.
2015-03-02 11:42:43 +00:00
Jeremy Brodt da2879ac14 Removed zeroing of UUID bytes 2 and 3. This is specific to the Nordic implementation. 2015-03-02 11:40:29 +00:00
Rohit Grover f557237f47 Release 0.2.13
==============

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

* Add support for onDataRead(); which is optionally implemented for stacks
  where an event is generated in response to a read on a characteristic. This
  feature is not implemented by any of the presently supported stacks.

* Update UUID class to get length and pointer. Added UUID comparison operator.

* BLEDevice::readCharacteristic() and BLEDevice::upateCharacteristic() should
  take GattAttribute::Handle_t instead of uint16_t.

* fix documentation for setAdvertisingType() for ADV_SCANNABLE_UNDIRECTED.

* Extend GattAttribute to export a pointer to the attribute's length.

Bugfixes
~~~~~~~~

* Initialize the min/max length values correctly in the constructor for
  URIDataChar. Previously, the minLength value was always set to URI_DATA_MAX,
  whereas maxLen got initialized by the values stored persistently. Except for
  the case of default initialization, the value of maxLength would be fetched at
  initialization from persistent storage, and would always be  less than the
  minLength, potentially causing incorrect setup in the underlying stack.

Compatibility
~~~~~~~~~~~~~

This release is API compatible with 0.2.4.
2015-02-26 16:14:13 +00:00
Rohit Grover 2fa352d222 Merge pull request #31 from jeremybrodt/attlen
Extended attribute length handling to support dynamic length.
2015-02-26 14:45:11 +00:00
Rohit Grover f7ce40b08c Merge branch 'jeremybrodt-uuid' 2015-02-26 14:42:35 +00:00
Rohit Grover 70f09d4cdf #32: minor enhancement. add enum UUID_Type_t to constrain 'type'. 2015-02-26 14:42:14 +00:00
Rohit Grover 1e6a9cbbff Merge branch 'uuid' of https://github.com/jeremybrodt/BLE_API into jeremybrodt-uuid 2015-02-26 14:31:59 +00:00
Rohit Grover 44bf3f4cc0 #33: minor fix for a typo 2015-02-26 14:30:01 +00:00
Rohit Grover 91b4b8f8ec initialize the min/max length values correctly in the constructor for URIDataChar.
Previously, the minLength value was always set to URI_DATA_MAX, whereas maxLen got initialized by the values stored persistently. Except for the case of default initialization, the value of maxLength would always be less than then minLength; causing improper behaviour from the underlying stack while setting up characterisitics.
2015-02-26 14:23:52 +00:00
Jeremy Brodt 1387a2e1df Added getLength accessor. 2015-02-24 09:23:28 -06:00
Rohit Grover a3df6ff03f Merge branch 'jeremybrodt-readcallback'.
Fixes #33.
2015-02-23 09:13:13 +00:00
Rohit Grover 2a9ce45f16 Add a virtual function to allow underlying stacks to indicate if they support onDataRead() 2015-02-23 09:09:36 +00:00
Rohit Grover 616a43e1c8 update comment header for onDataRead() 2015-02-23 09:00:19 +00:00
Rohit Grover 3b4e81103c Merge branch 'readcallback' of https://github.com/jeremybrodt/BLE_API into jeremybrodt-readcallback 2015-02-23 08:55:16 +00:00
Rohit Grover 07ef7dc6ea readChar and upateChar should take GattAttribute::Handle_t.
fixes #34
2015-02-23 08:32:49 +00:00
Jeremy Brodt 48ffb7dd8c Added ble_error_t return type for onDataRead. 2015-02-20 13:12:02 -06:00
Jeremy Brodt eb17caed0f Corrected comparison value and cast. 2015-02-20 08:25:27 -06:00
Jeremy Brodt 8d1b53edbf Added callback on characteristic reads 2015-02-19 14:35:08 -06:00
Jeremy Brodt 28a8852f35 Updated UUID class to get length and pointer. Added UUID comparison. 2015-02-19 14:16:15 -06:00
Jeremy Brodt fd762d8ef9 Extended attribute length handling to support dynamic length. 2015-02-19 13:52:53 -06:00
Rohit Grover dcc99c38da fix documentation for setAdvertisingType() for
ADV_SCANNABLE_UNDIRECTED.

Based on input from José Ángel Jiménez.
fixes #29
2015-02-19 08:28:22 +00:00
Rohit Grover ed1c46fc2d Release 0.2.12
=============

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

* Add iBeaconService to simplify creation of iBeacons.
* Update URIBeacon based on pull request from Bill Schilit (Google)

Bugfixes
~~~~~~~~

Compatibility
~~~~~~~~~~~~~

This release is API compatible with 0.2.4.
2015-02-13 16:35:55 +00:00
Rohit Grover d375dd7b56 Merge pull request #28 from BlackstoneEngineering/iBeaconService
added API for creating iBeacons
2015-02-13 13:28:49 +00:00
Rohit Grover 94676781a4 update comment block for the constructor of URIBeacon. 2015-02-13 12:02:50 +00:00
Rohit Grover a45afbc0db add a helper to encode URIData 2015-02-13 11:54:55 +00:00
Rohit Grover 5b8cc4671d white space diffs. 2015-02-13 11:51:43 +00:00
Rohit Grover bfb66e1c70 Merge pull request #25 from schilit/uribeacon-update
Uribeacon update
2015-02-13 08:50:17 +00:00
Austin Blackstone 8fe5795875 added API for creating iBeacons 2015-01-30 18:37:24 -06:00
Bill Schilit 2a4e05c7e7 Review comments 2015-01-28 14:32:37 -08:00