Commit Graph

782 Commits

Author SHA1 Message Date
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
Rohit Grover 2cef97c117 rename to MAX_SIZEOF_SERVICE_DATA_PAYLOAD 2014-11-28 13:57:01 +00:00
Rohit Grover e387fac6c2 remove legacy commented code from battery service. 2014-11-28 13:57:01 +00:00
Rohit Grover 84c99e724c remove un-necessary comment block. 2014-11-28 13:57:01 +00:00
Rohit Grover 5e083c2fce use ble.setTxPower() 2014-11-28 13:57:01 +00:00
Rohit Grover 07b87a6412 add default arguments to the constructor for URIBeacon; and minor renames. 2014-11-28 13:57:01 +00:00
Rohit Grover 2586b27aaf add copyURLCheckingForSuffixes() 2014-11-28 13:57:01 +00:00
Rohit Grover 3ea0f708fd add encodePrefix() 2014-11-28 13:57:01 +00:00
Rohit Grover 74849dd90b fleshed out encodeURIData to detect prefixes. 2014-11-28 13:57:01 +00:00
Rohit Grover dca3451587 initial commit for URIBeacon Service. 2014-11-28 13:57:01 +00:00
Rohit Grover e8e3a7aa2b add Gap::MSEC_TO_ADVERTISEMENT_DURATION_UNITS() 2014-11-28 13:56:11 +00:00
Rohit Grover 80f4417363 Release 0.2.4
=============

Features
~~~~~~~~

* Introduce GattServer::initializeGattDatabase(). This populates the GATT
  server with added services.

* Add helper funcs: Gap::MSEC_TO_GAP_DURATION_UNITS() to ease setting up of
  connection parameters.

* Enhance connectionEventCallback() to take in peer addr information.

* Minor cleanup of a few public API classes and removal of unnecessary header-file includes.

Bugfixes
~~~~~~~~

* Increase GAP_ADV_PARAMS_INTERVAL_MAX to 0x4000. This addresses mbedmicro/BLE_API/issues/2.

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

One new API has been added (GattServer::initializeGattDatabase()) and
Gap::ConnectionEventCallback_t has been extended. Applications depending on
these should be updated.
2014-11-21 09:04:07 +00:00
Rohit Grover 3d8441e204 minor cleanup of public API classes. 2014-11-21 08:46:19 +00:00
Rohit Grover d0dbe29f35 minor white space diffs 2014-11-21 08:06:22 +00:00
Rohit Grover 4234515948 Minor re-organization of member functions and their access privileges.
Make most APIs private, and accessible only to BLEDevice.
Add a private copy constructor and assignment operator.
2014-11-21 08:00:15 +00:00
Rohit Grover a795389b7d remove un-necessary header files from Gap.h 2014-11-21 07:53:32 +00:00
Rohit Grover 5b8a2fb5fe making APIs within GattServer private; but adding friend BLEDevice. 2014-11-21 07:53:08 +00:00
Rohit Grover d93ad344b3 Merge pull request #5 from xiongyihui/master
make the library less dependent on the mbed.h header
2014-11-20 20:13:01 +00:00
Rohit Grover 505deafd7c white space diffs. 2014-11-20 14:43:58 +00:00
Rohit Grover ae371eaf9d add a missing header include. 2014-11-20 11:41:53 +00:00
Rohit Grover 0ee78c2c46 bringing in minor improvements from CSR's BLEDevice.h 2014-11-20 11:13:14 +00:00
Rohit Grover 503f8d5297 introduce GattServer::initializeGattDatabase() 2014-11-20 11:11:31 +00:00
Yihui Xiong 814fa47061 Update UARTService.h 2014-11-19 22:56:06 +08:00
Rohit Grover d9fecf9209 add helper funcs: MSEC_TO_GAP_DURATION_UNITS 2014-11-19 10:08:14 +00:00
Rohit Grover 8d15b5e908 uncrustify Gap.h 2014-11-19 08:57:13 +00:00
Rohit Grover 23f9ef8058 enhance connectionEventCallback() to take in peer addr information 2014-11-18 15:10:26 +00:00