BLE: move scanningParams to a better location

This commit is contained in:
Rohit Grover 2015-06-16 12:46:56 +01:00
parent 5981b610d1
commit 756e86da71

View file

@ -719,7 +719,7 @@ public:
void terminateServiceDiscovery(void);
BLE() : transport(createBLEInstance()), advParams(), advPayload(), scanResponse(), needToSetAdvPayload(true), scanningParams() {
BLE() : transport(createBLEInstance()), advParams(), advPayload(), scanningParams(), scanResponse(), needToSetAdvPayload(true) {
@ -729,14 +729,13 @@ private:
GapAdvertisingParams advParams;
GapAdvertisingData advPayload;
GapScanningParams scanningParams;
GapAdvertisingData scanResponse;
/* Accumulation of AD structures in the advertisement payload should
* eventually result in a call to the target's setAdvertisingData() before
* the server begins advertising. This flag marks the status of the pending update.*/
bool needToSetAdvPayload;
GapScanningParams scanningParams;
typedef BLE BLEDevice; /* DEPRECATED. This type alias is retained for the sake of compatibilty with older