Merge pull request #10646 from LDong-Arm/connectionCount

Fix deprecation notice for ble::Gap::getState()
pull/10654/head
Martin Kojtal 2019-05-24 09:11:58 +01:00 committed by GitHub
commit c4cc9c4f1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -1347,13 +1347,15 @@ public:
* @return The current GAP state of the device.
*
* @deprecated Deprecated since addition of extended advertising support.
* This is not meaningful when you use extended advertising; please use
* isAdvertisingActive() and getConnectionCount().
* This is not meaningful when you use extended advertising; Please replace
* getState().advertising with isAdvertisingActive(), and replace
* getState().connected with your own record and update during callbacks.
*/
MBED_DEPRECATED_SINCE(
"mbed-os-5.11.0",
"Deprecated since addition of extended advertising support. "
"Use isAdvertisingActive() and getConnectionCount()."
"Replace getState().advertising with isAdvertisingActive()."
"Replace getState().connected with your own record and update during callbacks."
)
GapState_t getState(void) const;