Commit graph

257 commits

Author SHA1 Message Date
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
Rohit Grover
077bbb23f7 add a static setupService to create a singleton URIBeaconService object. 2014-11-28 13:57:02 +00:00
Rohit Grover
a148eacb88 minor cosmetic change 2014-11-28 13:57:02 +00:00
Rohit Grover
19400a1122 add TxPowerLevelsChar 2014-11-28 13:57:02 +00:00
Rohit Grover
8b1e9e9581 add APIs to set power modes. 2014-11-28 13:57:02 +00:00
Rohit Grover
27b5712479 minor cosmetic changes. 2014-11-28 13:57:02 +00:00
Rohit Grover
eb77b38a11 add enums for TXPowerModes_t 2014-11-28 13:57:02 +00:00
Rohit Grover
35d665a4e0 reanme to effectivePower.
Also switch to int8_t for power. (oops)
2014-11-28 13:57:02 +00:00
Rohit Grover
d45e2b3166 add comment block for setFlags. 2014-11-28 13:57:02 +00:00
Rohit Grover
4f8178b02f add a comment block for the constructor. 2014-11-28 13:57:02 +00:00
Rohit Grover
3572c9c47f add a beaconPeriod parameter for the constructor 2014-11-28 13:57:02 +00:00
Rohit Grover
e5ccaa669c minor typo 2014-11-28 13:57:01 +00:00
Rohit Grover
2138c544d1 mark OndataWritten() as protected 2014-11-28 13:57:01 +00:00
Rohit Grover
fa14fe1c46 remove some un-necessary header files from BLEDevice.h 2014-11-28 13:57:01 +00:00
Rohit Grover
178df43c3f add beaconPeriodCharacteristic 2014-11-28 13:57:01 +00:00
Rohit Grover
bdccaff73a adding a few comments. 2014-11-28 13:57:01 +00:00
Rohit Grover
97b23858bf add flags characteristic to GATT server. 2014-11-28 13:57:01 +00:00
Rohit Grover
f582743345 restore uriData characteristic upon receiving a write if locked. 2014-11-28 13:57:01 +00:00
Rohit Grover
18ffab58d1 preparing for txPower characteristic 2014-11-28 13:57:01 +00:00
Rohit Grover
1df22179e9 initialize beaconPeriod to 1000ms automatically 2014-11-28 13:57:01 +00:00
Rohit Grover
d1bc90fa0b trivial cosmetic change. 2014-11-28 13:57:01 +00:00
Rohit Grover
6d5a5e36b6 add support for onDataWritten for the URIValue characteristic. 2014-11-28 13:57:01 +00:00
Rohit Grover
4708c024fa add a couple of characteristics 2014-11-28 13:57:01 +00:00
Rohit Grover
29a046faa8 extracted a setup(). 2014-11-28 13:57:01 +00:00
Rohit Grover
fc8788b540 MAX_SIZEOF_SERVICE_DATA_PAYLOAD to 27 2014-11-28 13:57:01 +00:00
Rohit Grover
4eb693065c remove un-necessary comment. 2014-11-28 13:57:01 +00:00