various services: changed member access levels from private to protected

This commit is contained in:
Rohit Grover 2015-06-13 00:17:29 +01:00
parent 1298a1dda9
commit eaf65c9ec4
6 changed files with 9 additions and 8 deletions

View file

@ -56,7 +56,7 @@ public:
ble.updateCharacteristicValue(batteryLevelCharacteristic.getValueAttribute().getHandle(), &batteryLevel, 1);
}
private:
protected:
BLEDevice &ble;
uint8_t batteryLevel;

View file

@ -105,13 +105,13 @@ public:
}
}
private:
protected:
static const unsigned SIZEOF_CONTROL_BYTES = 2;
static const unsigned SIZEOF_PACKET_BYTES = 20;
static ResetPrepare_t handoverCallback; /**< application specific handover callback. */
private:
protected:
BLEDevice &ble;
uint8_t controlBytes[SIZEOF_CONTROL_BYTES];
uint8_t packetBytes[SIZEOF_PACKET_BYTES];

View file

@ -114,7 +114,7 @@ public:
serviceAdded = true;
}
private:
protected:
BLEDevice &ble;
GattCharacteristic manufacturersNameStringCharacteristic;
GattCharacteristic modelNumberStringCharacteristic;

View file

@ -125,7 +125,7 @@ public:
}
}
private:
protected:
void setupService(void) {
GattCharacteristic *charTable[] = {&hrmRate, &hrmLocation, &controlPoint};
GattService hrmService(GattService::UUID_HEART_RATE_SERVICE, charTable, sizeof(charTable) / sizeof(GattCharacteristic *));
@ -134,7 +134,7 @@ private:
ble.onDataWritten(this, &HeartRateService::onDataWritten);
}
private:
protected:
/* Private internal representation for the bytes used to work with the vaulue of the heart-rate characteristic. */
struct HeartRateValueBytes {
static const unsigned MAX_VALUE_BYTES = 3; /* FLAGS + up to two bytes for heart-rate */
@ -180,7 +180,7 @@ private:
uint8_t valueBytes[MAX_VALUE_BYTES];
};
private:
protected:
BLEDevice &ble;
HeartRateValueBytes valueBytes;

View file

@ -92,7 +92,7 @@ private:
}
}
private:
protected:
BLEDevice &ble;
AlertLevel_t alertLevel;
callback_t callback;

View file

@ -370,6 +370,7 @@ class URIBeaconConfigService {
}
}
protected:
BLEDevice &ble;
Params_t &params;