fork BLE_API to add update adv payload API
Fork of BLE_API by
Revision 723:71507679c9b2, committed 2015-07-02
- Comitter:
- rgrover1
- Date:
- Thu Jul 02 09:06:12 2015 +0100
- Parent:
- 722:eab9499e4250
- Child:
- 724:80e065731d70
- Commit message:
- Synchronized with git rev 45368118
Author: Rohit Grover
change access levels to protected for various members of the standard services
Changed in this revision
--- a/ble/services/HealthThermometerService.h Thu Jul 02 09:06:12 2015 +0100 +++ b/ble/services/HealthThermometerService.h Thu Jul 02 09:06:12 2015 +0100 @@ -140,7 +140,7 @@ uint8_t bytes[SIZEOF_VALUE_BYTES]; }; -private: +protected: BLE &ble; TemperatureValueBytes valueBytes; ReadOnlyGattCharacteristic<TemperatureValueBytes> tempMeasurement;
--- a/ble/services/LinkLossService.h Thu Jul 02 09:06:12 2015 +0100 +++ b/ble/services/LinkLossService.h Thu Jul 02 09:06:12 2015 +0100 @@ -73,7 +73,7 @@ alertLevel = newLevel; } -private: +protected: /** * This callback allows receiving updates to the AlertLevel Characteristic. *
--- a/ble/services/UARTService.h Thu Jul 02 09:06:12 2015 +0100 +++ b/ble/services/UARTService.h Thu Jul 02 09:06:12 2015 +0100 @@ -159,7 +159,7 @@ return receiveBuffer[receiveBufferIndex++]; } -private: +protected: /** * This callback allows the UART service to receive updates to the * txCharacteristic. The application should forward the call to this @@ -177,7 +177,7 @@ } } -private: +protected: BLE &ble; uint8_t receiveBuffer[BLE_UART_SERVICE_MAX_DATA_LEN]; /**< The local buffer into which we receive
--- a/ble/services/URIBeaconConfigService.h Thu Jul 02 09:06:12 2015 +0100 +++ b/ble/services/URIBeaconConfigService.h Thu Jul 02 09:06:12 2015 +0100 @@ -305,7 +305,7 @@ reinterpret_cast<uint8_t *>(params.advPowerLevels), sizeof(PowerLevels_t)); } -private: +protected: void lockAuthorizationCallback(GattWriteAuthCallbackParams *authParams) { if (lockedState) { authParams->authorizationReply = AUTH_CALLBACK_REPLY_ATTERR_INSUF_AUTHORIZATION;
--- a/ble/services/iBeaconService.h Thu Jul 02 09:06:12 2015 +0100 +++ b/ble/services/iBeaconService.h Thu Jul 02 09:06:12 2015 +0100 @@ -66,7 +66,7 @@ ble.setAdvertisingType(GapAdvertisingParams::ADV_NON_CONNECTABLE_UNDIRECTED); } -private: +protected: BLE &ble; Payload data; };