Compatible with Keewi v1

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
Rohit Grover
Date:
Fri Jul 04 11:27:20 2014 +0100
Parent:
99:58c47085e816
Child:
101:9566e418a313
Commit message:
accumulateAdvertisingPayload(flags) should allow for combinations of flags

Changed in this revision

hw/BLEDevice.h Show annotated file Show diff for this revision Revisions of this file
--- a/hw/BLEDevice.h	Thu Jul 03 09:59:53 2014 +0100
+++ b/hw/BLEDevice.h	Fri Jul 04 11:27:20 2014 +0100
@@ -133,9 +133,10 @@
      * small.
      *
      * @param  flags
-     *         The flag to be added.
+     *         The flags to be added. Multiple flags may be specified in
+     *         combination.
      */
-    ble_error_t accumulateAdvertisingPayload(GapAdvertisingData::Flags flags);
+    ble_error_t accumulateAdvertisingPayload(uint8_t flags);
 
     /**
      * Accumulate an AD structure in the advertising payload. Please note that
@@ -338,7 +339,7 @@
 }
 
 inline ble_error_t
-BLEDevice::accumulateAdvertisingPayload(GapAdvertisingData::Flags flags)
+BLEDevice::accumulateAdvertisingPayload(uint8_t flags)
 {
     needToSetAdvPayload = true;
     return advPayload.addFlags(flags);