Commit Graph

782 Commits (0d1bfd4843b268ebc0dc7d9ca8bccb5990439d53)

Author SHA1 Message Date
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
Rohit Grover eaf31a3941 beaconPeriod should be converted to adv_duration_units only before calling setAdvertisingInterval() 2014-12-01 08:38:10 +00:00
Rohit Grover 25eebd68ef rename to effectiveTxPower 2014-12-01 08:37:08 +00:00
Rohit Grover 6e85b53f92 Uri Data must be between 0 and 18 bytes
https://github.com/mbedmicro/BLE_API/issues/6
2014-12-01 08:19:59 +00:00
Rohit Grover 1c37781d6e Release 0.2.5
=============

Features
~~~~~~~~

* Introduce the URIBeacon2 service.

* Add helper API Gap::MSEC_TO_ADVERTISEMENT_DURATION_UNITS(); this can then be
  used in calls to setAdvertisingInterval().

* Remove Stream as a base class for UARTService. Instantiating Stream() was
  causing the C library to initialize the serial console UART implicitly;
  which caused a constant drain of around 1mA. This change means that we can
  no longer benefit from the APIs offered by Stream, and we can no longer re-
  target STDOUT to UARTService like before; but that's not worth losing 1mA.

* Remove some un-necessary header files from BLEDevice.h.

Bugfixes
~~~~~~~~

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

This release is backward compatible with 0.2.4.
2014-11-28 14:08:36 +00:00
Rohit Grover 959ba7c6db removing Stream as a base class for UARTService.
Instantiating Stream was causing a call to initialize the serial console uart; which caused a constant drain of around 1mA.
2014-11-28 13:57:03 +00:00
Rohit Grover a4d2a4327c fix access privileges for methods of URIBeacon2Service. 2014-11-28 13:57:03 +00:00
Rohit Grover 6694c00b40 Merge branch 'uribeacon' into develop 2014-11-28 13:57:03 +00:00
Rohit Grover 49103aff55 minor change to a check. 2014-11-28 13:57:02 +00:00
Rohit Grover 617a754082 rename to configuredSuccessfully() 2014-11-28 13:57:02 +00:00
Rohit Grover 3536e5a2b2 moving back to the constructor. This brings it in line with other services. 2014-11-28 13:57:02 +00:00
Rohit Grover 1a0593dc7c switch to useTxPowerLevel() 2014-11-28 13:57:02 +00:00
Rohit Grover 5cd5f364ea minor cosmetic use of reinterpret_cast. 2014-11-28 13:57:02 +00:00
Rohit Grover 584e149985 enable resetCharacteristic. 2014-11-28 13:57:02 +00:00
Rohit Grover 149a413573 some more variable renames. 2014-11-28 13:57:02 +00:00
Rohit Grover f79f6b8ba7 variable renames. 2014-11-28 13:57:02 +00:00
Rohit Grover fdfc899372 add a comment header. 2014-11-28 13:57:02 +00:00
Rohit Grover 1ef561977e minor re-ordering of methods. 2014-11-28 13:57:02 +00:00
Rohit Grover b4e8ed204f rename setup as configure()
and setupService() as setup()
2014-11-28 13:57:02 +00:00
Rohit Grover 09a38f1e57 comment headers and minor white space diffs. 2014-11-28 13:57:02 +00:00
Rohit Grover 576c2fa65e add failed to accommodate. 2014-11-28 13:57:02 +00:00
Rohit Grover e5145420ba add a comment header for setupService 2014-11-28 13:57:02 +00:00