Commit graph

753 commits

Author SHA1 Message Date
Rohit Grover
22a54fcced Adds a check to ensure power mode gets updated safely.
fixes #8
2014-12-12 15:58:59 +00:00
Rohit Grover
3baef00b9b fix a typo 2014-12-12 15:57:49 +00:00
Rohit Grover
c7d406c2dc ServiceDataPayload can have a maximum of 18 bytes of URIData.
fixes #6
2014-12-12 15:51:29 +00:00
Rohit Grover
2552bf25f2 Release 0.2.9
=============

API enhancements to support read/write authorization for GATT accesses.

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

* Add support for authorization, whereby the user application can receive a
  callback to authorize a read or a write on a characteristic's value
  attribute before GATT commits the transaction. We now have an API for
  GattCharacterisitc called setWriteAuthorizationCallback() which can filter
  incoming access requests before they get applied to the GATT database.

Bugfixes
~~~~~~~~

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

This release is backward compatible with 0.2.4.
2014-12-12 13:30:35 +00:00
Rohit Grover
a74b489868 minor rename of a variable 2014-12-12 12:04:22 +00:00
Rohit Grover
4596480097 white space diff. 2014-12-12 12:01:08 +00:00
Rohit Grover
15cca66a32 employ write-authorization support in simplifying URIBeaconConfigService.
fixes #12
2014-12-12 12:01:08 +00:00
Rohit Grover
7a298b6a43 Add support for write authorization for Characteristics. 2014-12-12 11:01:19 +00:00
Rohit Grover
7ac6aea06b remove un-necessary header include; and some white space diffs. 2014-12-12 10:03:07 +00:00
Rohit Grover
07baffd9a9 white space diffs. 2014-12-12 07:35:07 +00:00
Rohit Grover
5ee435ea86 Release 0.2.8
=============

Minor API enhancements to support LinkLoss service.

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

* Introduce LinkLoss Service.
  https://developer.bluetooth.org/gatt/services/Pages/ServiceViewer.aspx?u=org.bluetooth.service.link_loss.xml

* Add BLEDevice::addToDisconnectionCallChain(). This is in some sense parallel
  to the onDisconnection callback; but it allows for chaining and these
  callbacks don't receive any context.

* Some improvements to documentation.

Bugfixes
~~~~~~~~

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

This release is backward compatible with 0.2.4.
2014-12-11 11:51:04 +00:00
Rohit Grover
eed20c82ce make use of getValueHandle() as a short cut. 2014-12-11 11:39:46 +00:00
Rohit Grover
709abe6a97 add BLEDevice::addToDisconnectionCallChain() 2014-12-11 11:39:26 +00:00
Rohit Grover
ba5fb7fb36 minor improvements to documentation. 2014-12-09 13:14:45 +00:00
Rohit Grover
c7eb83db09 minor white space diffs and fixes for typos. 2014-12-09 08:12:20 +00:00
Rohit Grover
149605fe95 pulling in doxygen improvements submitted by Austin. 2014-12-09 07:36:51 +00:00
Blackstone Engineering
ad56c72314 Merge pull request #20 from BlackstoneEngineering/master
Updated Readme
2014-12-05 15:26:54 -06:00
Austin Blackstone
347fb34f63 added link to mbed page for BLE, redirecting all things BLE here 2014-12-05 15:24:58 -06:00
Austin Blackstone
8868f8ddfd updated Readme to include iBeacon and UriBeacon services 2014-12-05 15:23:18 -06:00
Rohit Grover
61cff47899 Release 0.2.7
=============

API enhancements to support purging of GATT/GAP state.

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

* Add API BLEDevice::shutdown() to purge the BLE stack of GATT and GAP state.
  BLEDevice::init() should be called before restoring state.

* Minor update to API for GattCharacterisitc: add getValueHandle() as a
  shortcut for getValueAttribute().getHandle().

Bugfixes
~~~~~~~~

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

This release is backward compatible with 0.2.4.
2014-12-03 11:55:39 +00:00
Rohit Grover
7e9f9a0530 add API BLEDevice::shutdown() to purge the BLE stack of GATT and GAP state.
init() should be called before restoring state.

fixes #15.
2014-12-03 11:54:16 +00:00
Rohit Grover
ac3a548eff minor update to GattCharacterisitc API: add getValueHandle() as a shortcut for getValueAttribute().getHandle(). 2014-12-02 16:24:35 +00:00
Rohit Grover
809ff6f235 Merge pull request #18 from schilit/getHandle
Add getHandle for readability
2014-12-02 16:02:36 +00:00
Bill Schilit
7a86401e48 Add getHandle for readability
use getHandle() for readability.
2014-12-02 01:18:43 -08:00
Rohit Grover
04ceb5cea6 Release 0.2.6
=============

Bugfixes and enhancements to URIBeaconConfigService. This entire release
refers to this service. Nothing else has changed.

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

* Rename to URIBeacon2Service to URIBeaconConfigService.

* Add helper functions to update characteristics.

* Add txPowerMode characteristic.

* Add API to setup TxPowerLevels.

Bugfixes
~~~~~~~~

* Uri Data must be between 0 and 18 bytes.

* beaconPeriod should be converted to adv_duration_units only before calling setAdvertisingInterval().

* Fixed characteristic properties to match spec.

* Make UUID consts static so that the header file can be included from multiple compilation units.

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

This release is backward compatible with 0.2.4.
2014-12-01 14:29:39 +00:00
Rohit Grover
1150cca720 oops caught a typo. 2014-12-01 14:25:53 +00:00
Rohit Grover
88d278cc71 make UUID consts static so that the header file can be included from multiple compilation units. 2014-12-01 14:06:29 +00:00
Rohit Grover
b940e50a34 simplify construction of TxPowerLevelsChar 2014-12-01 13:49:07 +00:00
Rohit Grover
eaa62b877b should still call configureGAP after updating powerLevels. 2014-12-01 13:43:28 +00:00
Rohit Grover
62e9ce268b white space diffs. 2014-12-01 13:42:46 +00:00
Rohit Grover
9ea6d8b6c1 allow update to txPowerMode from onDataWritten() 2014-12-01 13:39:19 +00:00
Rohit Grover
93af1ec289 updateGATT() should update TxPower related characteristics. 2014-12-01 13:34:19 +00:00
Rohit Grover
78696699c8 add API to setup TxPowerLevels 2014-12-01 13:33:43 +00:00
Rohit Grover
13ed67ec1e add txPowerMode characteristic. 2014-12-01 13:30:13 +00:00
Rohit Grover
d3cc9ed912 white space diffs. 2014-12-01 12:47:31 +00:00
Rohit Grover
9168068e56 re-organized code within resetDefaults() 2014-12-01 11:19:57 +00:00
Rohit Grover
8491673e7d fixed characteristic properties to match spec. 2014-12-01 11:14:37 +00:00
Rohit Grover
bca072e3ac add updateLockedStateCharacteristic() 2014-12-01 11:07:30 +00:00
Rohit Grover
0c38a1e8ef fast path for encodeURISchemePrefix() if sizeofURLData is 0 2014-12-01 11:01:20 +00:00
Rohit Grover
19f5054adf no need to save defaults; they are implicit. 2014-12-01 10:57:36 +00:00
Rohit Grover
bb041bbb10 add helper functions to update characteristics. 2014-12-01 09:34:00 +00:00
Rohit Grover
076ade55a4 rename configure() to configureGAP(); and remove duplication of this call from resetDefaults(). 2014-12-01 09:16:26 +00:00
Rohit Grover
3f856e0c4e rename to URIBeaconConfig.h 2014-12-01 08:51:10 +00:00
Rohit Grover
4163b0d2d4 fix minor typo in a comment. 2014-12-01 08:50:43 +00:00
Rohit Grover
94cb946fc8 raname to URIBeaconConfigService. 2014-12-01 08:50:20 +00:00
Rohit Grover
c9fbe1f4ba white space diffs. (uncrustified) 2014-12-01 08:45:18 +00:00
Rohit Grover
da85949113 add saveDefaults() 2014-12-01 08:42:13 +00:00
Rohit Grover
dc40eb8113 Add a comment for MAX_SIZE_URI_DATA_CHAR_VALUE 2014-12-01 08:41:56 +00:00
Rohit Grover
e5bd170d5d drop virtual from onDataWritten() 2014-12-01 08:39:03 +00:00
Rohit Grover
fe765b0191 remove block comment for onDataWritten. 2014-12-01 08:38:29 +00:00