Skip to content

Commit

Permalink
Merge pull request #10646 from LDong-Arm/connectionCount
Browse files Browse the repository at this point in the history
Fix deprecation notice for ble::Gap::getState()
  • Loading branch information
0xc0170 committed May 24, 2019
2 parents 541dee4 + c84a13c commit c4cc9c4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions features/FEATURE_BLE/ble/Gap.h
Expand Up @@ -1347,13 +1347,15 @@ class LegacyGap :
* @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;

Expand Down

0 comments on commit c4cc9c4

Please sign in to comment.