diff options
author | Alex Blasche <alexander.blasche@qt.io> | 2021-10-19 08:27:28 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2021-10-20 16:15:16 +0200 |
commit | e84efc5e26b7c902b7a3ea0204757561b0dc7b70 (patch) | |
tree | 326b1191aaee2d9d881ad467faee8b0079d5c187 /src/bluetooth/qlowenergycontroller.cpp | |
parent | 33958368e0317d8e130ed950d82b5e8250c61ec7 (diff) |
Update mtu related documentation
Pick-to: 6.2
Change-Id: I342a6c38b75846a451116c506173077780160456
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Juha Vuolle <juha.vuolle@insta.fi>
Diffstat (limited to 'src/bluetooth/qlowenergycontroller.cpp')
-rw-r--r-- | src/bluetooth/qlowenergycontroller.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/bluetooth/qlowenergycontroller.cpp b/src/bluetooth/qlowenergycontroller.cpp index bc214bdd..e4aff61c 100644 --- a/src/bluetooth/qlowenergycontroller.cpp +++ b/src/bluetooth/qlowenergycontroller.cpp @@ -225,6 +225,19 @@ Q_DECLARE_LOGGING_CATEGORY(QT_BT_WINDOWS) */ /*! + \fn void QLowEnergyController::mtuChanged(int mtu) + + This signal is emitted as a result of a successful MTU change. \a mtu + represents the new value. + + \note If the controller is in the \l PeripheralRole, the MTU value is negotiated + for each client/central device individually. Therefore this signal can be emitted + several times in a row for one or several devices. + + \sa mtu() +*/ + +/*! \fn void QLowEnergyController::disconnected() This signal is emitted when the controller disconnects from the remote @@ -892,6 +905,10 @@ QLowEnergyController::Role QLowEnergyController::role() const Not every platform exposes the MTU value. On those platforms (e.g. Linux) this function always returns \c -1. + If the controller is in the \l PeripheralRole, there might be several + central devices connected to it. In those cases this function returns + the MTU of the last connection that was negotiated. + \since 6.2 */ int QLowEnergyController::mtu() const |