Commit graph

782 commits

Author SHA1 Message Date
Bill Schilit 4394fbac39 Review comments 2015-01-28 08:39:41 -08:00
Bill Schilit 2c7a0b06fe Review comments 2015-01-28 08:36:04 -08:00
Bill Schilit 7f538a2909 Merge pull request #1 from schilit/uribeacon-update
Uribeacon update
2015-01-24 18:09:21 -08:00
Bill Schilit cff7888cd2 Formatting 2015-01-24 14:23:04 -08:00
Bill Schilit bc31580537 Update config service 2015-01-24 14:20:22 -08:00
Rohit Grover 4a268db0f2 Release 0.2.11
=============

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

* Use template classes to simplify definitions of GattCharacteristic within services.

Bugfixes
~~~~~~~~

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

This release is API compatible with 0.2.4.
2015-01-22 09:27:36 +00:00
Rohit Grover 9dc7849cf2 minor white space diffs. 2015-01-21 10:37:38 +00:00
Rohit Grover 540c8c2ba7 Release 0.2.10
=============

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

* BLEDevice::onDataSent() now appends to a callChain. This means we can string
  together multiple onDataSent() callbacks.

* rename GattCharacteristicWriteCBParams.h as GattCharacteristicCallbackParams.h.

* Added optional data and length fields to the return structure for
  readAuthorization so a new 'value' can be provided for each individual
  authorization.

* Several improvements to URIBeaconConfigService:
    ** ServiceDataPayload can have a maximum of 18 bytes of URIData.
    ** Add lock and unlock characteristics; and use 'pstorage' to make their
       values persist.

* Remove minor warnings seen with GCC ARM toolchain.

Bugfixes
~~~~~~~~

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

This release is API compatible with 0.2.4.
2015-01-21 08:58:39 +00:00
Rohit Grover 3842391b5e commented out some debugging code. 2015-01-20 16:05:45 +00:00
Rohit Grover c992164b2d white space diff. 2015-01-20 16:05:22 +00:00
Rohit Grover e17ff55226 need to setup write authorization for lock and unlock characteristics. 2015-01-20 15:52:29 +00:00
Rohit Grover 21eddb5373 add protected accessors for updating and copying lockBits. 2015-01-20 15:49:23 +00:00
Rohit Grover 06fe64b067 remove calls to virtual methods from the constructor. 2015-01-20 15:47:36 +00:00
Rohit Grover 8b9a501367 Add persistence API to be able to save and retrieve lockBits. 2015-01-19 16:44:22 +00:00
Rohit Grover a367cf0f47 add lock and unlock characteristics. 2015-01-19 16:44:22 +00:00
Rohit Grover cbfd78fa8f Merge pull request #23 from shirishb/master
Fix README links
2014-12-28 19:19:26 +00:00
Shirish Baskaran 83edad0129 Remove minor warnings seen with GCC ARM toolchain
[Warning] Gap.h@152: 152:16: warning: enumeration value
‘GAP_EVENT_CONNECTED’ not handled in switch [-Wswitch] enumeration value
‘GAP_EVENT_DISCONNECTED’ not handled in switch [-Wswitch]

[Warning] GattServer.h@78: In member function ‘void
GattServer::handleEvent(GattServerEvents::gattEvent_e, uint16_t)’:
enumeration value ‘GATT_EVENT_DATA_SENT’ not handled in switch
[-Wswitch]

[Warning] GattServer.h@78: In member function ‘void
GattServer::handleEvent(GattServerEvents::gattEvent_e, uint16_t)’:
enumeration value ‘GATT_EVENT_DATA_WRITTEN’ not handled in switch
[-Wswitch]

[Warning] GattServer.h@78: In member function ‘void
GattServer::handleEvent(GattServerEvents::gattEvent_e, uint16_t)’:
enumeration value ‘GATT_EVENT_READ_AUTHORIZATION_REQ’ not handled in
switch [-Wswitch]

[Warning] GattServer.h@78: In member function ‘void
GattServer::handleEvent(GattServerEvents::gattEvent_e, uint16_t)’:
enumeration value ‘GATT_EVENT_WRITE_AUTHORIZATION_REQ’ not handled in
switch [-Wswitch]
2014-12-28 03:45:47 -05:00
Shirish Baskaran 343b248cf6 Fix README links, they need to be absolute and not relative to the project 2014-12-27 23:55:08 -05:00
Rohit Grover 846438af43 Merge pull request #22 from marcuschangarm/master
Added optional data and length fields to the return struct for authorize...
2014-12-17 08:52:15 +00:00
Marcus Chang 4426616b94 Added optional data and length fields to the return struct for authorized reads so a new value can be provided for each individual authorization. 2014-12-16 11:36:16 +00:00
Rohit Grover 052b9490f8 rename GattCharacteristicWriteCBParams.h as GattCharacteristicCallbackParams.h 2014-12-16 08:54:01 +00:00
Rohit Grover fedcae1c12 minor white space diffs. 2014-12-16 08:48:09 +00:00
Rohit Grover 3c58be01f6 minor white space diffs 2014-12-16 08:26:50 +00:00
Rohit Grover 6f066f355b Add to a comment block. 2014-12-16 08:25:12 +00:00
Rohit Grover bec9560c70 fix all line endings to be Unix style 2014-12-16 08:18:48 +00:00
Rohit Grover 270ac8d7c5 Merge pull request #21 from marcuschangarm/draft
Chained callbacks for onDataSent
2014-12-16 08:07:19 +00:00
marcuschang 580f31d86b Added chained callbacks for onDataSent. 2014-12-15 16:12:16 +00:00
marcuschang 512f1054cf Changed newline character in public/GattServer.h from CRLF to LF. 2014-12-15 16:10:24 +00:00
marcuschang aee424788e Changed newline character in public/BLEDevice.h from CRLF to LF. 2014-12-15 16:09:42 +00:00
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