Commit graph

633 commits

Author SHA1 Message Date
Rohit Grover
f89fcb3ec2 remove extraneous declaration of AdvertisementReportCallback_t 2015-06-05 08:04:18 +01:00
Rohit Grover
c2b53a6f8a add ServiceDiscovery.h 2015-06-05 08:04:18 +01:00
Rohit Grover
e6c44ac779 add copy and default constructors for UUID. 2015-06-05 08:04:18 +01:00
Rohit Grover
9f9e3b872d fill in APIs around setScanningParams 2015-06-05 08:04:18 +01:00
Rohit Grover
c607797150 update declaration for AdvertisementReportCallback_t 2015-06-05 08:04:18 +01:00
Rohit Grover
6a5663babb add AdvertisementType_t 2015-06-05 08:04:18 +01:00
Rohit Grover
8980b6d7d2 add API for stopScanning() 2015-06-05 08:04:18 +01:00
Rohit Grover
17a74c04d7 add API for startScanning() 2015-06-05 08:04:18 +01:00
Rohit Grover
8d3e092916 add a missing include for GapScanningParams.h 2015-06-05 08:04:18 +01:00
Rohit Grover
0ff09c61c3 remove un-necessary checks for SCAN_TIMEOUT_MAX 2015-06-05 08:03:48 +01:00
Rohit Grover
73a6be23d8 move the static declarations for char UUIDs out of URIBeaconConfigService.h into .cpp. 2015-06-04 09:24:09 +01:00
Rohit Grover
d9283d5868 white space diffs. 2015-06-03 09:01:51 +01:00
Rohit Grover
6a7c543d86 simplify declaration of GapState_t 2015-05-21 11:24:15 +01:00
Rohit Grover
37fce3e7b7 repalced uses of Gap::addr_type_t with Gap::AddressType_t 2015-05-19 13:28:10 +01:00
Rohit Grover
92fca3c11a add a comment header block to explain why BLEDevice::init() may not be safe to call from global static context. 2015-05-19 09:52:02 +01:00
Rohit Grover
01ffebdc80 Merge Marcus's work on accessors to advertising payload and params. 2015-05-19 09:51:03 +01:00
Rohit Grover
b29089e85a minor improvements to the new APIs for getAdvParams/Data(). 2015-05-19 09:27:55 +01:00
Marcus Chang
8c39703246 Added get/set methods for advPayload and advParams. 2015-05-18 19:40:17 +01:00
Marcus Chang
6d3b65391e Allow copy constructor in GapAdvertisingParams. 2015-05-18 19:39:31 +01:00
Rohit Grover
67abc0ce25 Release 0.3.7
=============

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

* Add AdvertisementCallbackParams_t and use FunctionPointer to allow
  <object,member> context for advertisement report callback.

* Minor: replace some instances of Gap::address_t (deprecated) with
  Gap::Address_t.

Bugfixes
~~~~~~~~

* URIBeaconConfigService: re-map incoming beacon advertisement interval within
  permissible bounds.
2015-05-18 09:48:59 +01:00
Rohit Grover
bee91cabe5 enable <object,callbackMember> context for startScan. 2015-05-18 09:10:22 +01:00
Rohit Grover
aebfbce3f5 redefine AdvertisementReportCallback_t in terms of AdvertisementCallbackParams_t.
This allows us to make use of FunctionPointerWithContext.
2015-05-18 07:41:24 +01:00
Rohit Grover
9263436522 replace instances of Gap::address_t with Gap::Address_t 2015-05-18 07:39:31 +01:00
Rohit Grover
d3b5fa7b5c white space diffs. 2015-05-15 09:43:03 +01:00
Rohit Grover
d1d6299841 URIBeaconConfigService: re-map incoming beacon advertisement interval within permissing bounds. 2015-05-15 09:35:19 +01:00
Rohit Grover
dcc18e3d18 Release 0.3.6
=============

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

* Add APIs for scanning of advertisements.

    BLEDevice::setScanParams(uint16_t interval, uint16_t window, uint16_t timeout, bool activeScanning);
    BLEDevice::startScan(Gap::AdvertisementReportCallback_t callback);
    BLEDevice::stopScan(void);
  Also introduced a type to encapsulate scanning-parameters. There's a new demo on mbed.org for a trivial observer.

Bugfixes
~~~~~~~~

* fix #40: fix value of Gap::UNIT_0_625_MS
2015-05-12 10:33:21 +01:00
Rohit Grover
ca9f8a9c12 add some comments to highlight deprecated type aliases. 2015-05-12 09:16:38 +01:00
Rohit Grover
0a59dd0c84 remove extraneous declaration of AdvertisementType_t 2015-05-12 09:16:38 +01:00
Rohit Grover
c577e02eaf GapScanningParams takes in interval and window args in units of ms.
But then translates them internally to units of 0.625ms.
2015-05-12 09:16:38 +01:00
Rohit Grover
deac909a33 rename Gap::GAP_DURATION_UNITS_TO_MS to Gap::ADVERTISEMENT_DURATION_UNITS_TO_MS 2015-05-12 09:16:38 +01:00
Rohit Grover
ca3ed00d36 fix value of UNIT_0_625_MS 2015-05-12 09:16:38 +01:00
Rohit Grover
002ebbe3a8 replace inclusion of GapScanningParams with a forward declaration. 2015-05-12 09:16:38 +01:00
Rohit Grover
ad8c79ae0e updating comment block. 2015-05-12 09:16:38 +01:00
Rohit Grover
68036cd4a4 white space diffs. 2015-05-12 09:16:38 +01:00
Rohit Grover
2a685ffc37 add support for active scanning. 2015-05-12 09:16:38 +01:00
Rohit Grover
ba805863a3 add support for active scanning within Scanning params. 2015-05-12 09:16:38 +01:00
Rohit Grover
abf3316803 shorten *scanning* to *scan* in APIs 2015-05-12 09:16:38 +01:00
Rohit Grover
ba4914c15f white space diffs. 2015-05-12 09:16:38 +01:00
Rohit Grover
96327396b9 improved documentation for setScanningParams() 2015-05-12 09:16:38 +01:00
Rohit Grover
0163a8b723 simplify some enumerations within GattCharacteristic. Turn them anynymous. 2015-05-12 09:16:38 +01:00
Rohit Grover
a655f86025 add AdvertisementType_t 2015-05-12 09:16:38 +01:00
Rohit Grover
c7717aa41d add API for stopScanning() 2015-05-12 09:16:38 +01:00
Rohit Grover
4c6fb07984 add error checking for APIs for ScanningParameters. 2015-05-12 09:16:38 +01:00
Rohit Grover
c2e9d87163 add API for startScanning() 2015-05-12 09:16:38 +01:00
Rohit Grover
23a16e05bb fill in APIs around setScanningParams 2015-05-12 09:16:38 +01:00
Rohit Grover
a15a8922a4 initialize scanningParams in the constructor for BLEDevice. 2015-05-12 09:16:38 +01:00
Rohit Grover
b8b185160b add Gap::onAdvertisementReport and processAdvertisementReport() 2015-05-12 09:16:38 +01:00
Rohit Grover
aabb9c1837 update declaration for AdvertisementReportCallback_t 2015-05-12 09:16:38 +01:00
Rohit Grover
06529208f5 add AdvertisementType_t 2015-05-12 09:16:38 +01:00
Rohit Grover
78d7b675f2 add GapScanningParams.h 2015-05-12 09:16:38 +01:00