mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #10646 from LDong-Arm/connectionCount
Fix deprecation notice for ble::Gap::getState()pull/10654/head
commit
c4cc9c4f1b
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue