Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
Diff: public/BLEDevice.h
- Revision:
- 305:71367f7cd078
- Parent:
- 300:d9a39f759a6a
- Child:
- 325:501ad8b8bbe5
--- a/public/BLEDevice.h Mon Mar 02 11:50:48 2015 +0000 +++ b/public/BLEDevice.h Mon Mar 02 11:50:48 2015 +0000 @@ -368,6 +368,16 @@ */ ble_error_t setTxPower(int8_t txPower); + /** + * Query the underlying stack for permitted arguments for setTxPower(). + * + * @param[out] valueArrayPP + * Out parameter to receive the immutable array of Tx values. + * @param[out] countP + * Out parameter to receive the array's size. + */ + void getPermittedTxPowerValues(const int8_t **valueArrayPP, size_t *countP); + public: BLEDevice() : transport(createBLEDeviceInstance()), advParams(), advPayload(), scanResponse(), needToSetAdvPayload(true) { advPayload.clear(); @@ -682,6 +692,12 @@ return transport->setTxPower(txPower); } +inline void +BLEDevice::getPermittedTxPowerValues(const int8_t **valueArrayPP, size_t *countP) +{ + transport->getPermittedTxPowerValues(valueArrayPP, countP); +} + /* * ALL OF THE FOLLOWING METHODS ARE DEPRECATED */