diff options
author | Andreas Buhr <andreas@andreasbuhr.de> | 2021-03-11 13:13:25 +0100 |
---|---|---|
committer | Andreas Buhr <andreas@andreasbuhr.de> | 2021-03-22 10:07:41 +0100 |
commit | 50311fdd2da129645a8452b7bf644c332ff3808a (patch) | |
tree | 3615b9379fe1db72f9c2ae28112e5e4648ebeb8d /src/bluetooth/qlowenergycontroller_bluez.cpp | |
parent | b18589cd45253a251b27d41e99c82560d4e0d0e0 (diff) | |
download | qtconnectivity-50311fdd2da129645a8452b7bf644c332ff3808a.tar.gz |
Introduce all Bluetooth HCI event and error codes
This patch adds all Bluetooth HCI event and error codes
as enums for easier debugging.
Fixes: QTBUG-91903
Change-Id: I5d864cc9fda91abd08b2d7af3167e601eae0bbe8
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/bluetooth/qlowenergycontroller_bluez.cpp')
-rw-r--r-- | src/bluetooth/qlowenergycontroller_bluez.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bluetooth/qlowenergycontroller_bluez.cpp b/src/bluetooth/qlowenergycontroller_bluez.cpp index 5e12cf27..cd271c74 100644 --- a/src/bluetooth/qlowenergycontroller_bluez.cpp +++ b/src/bluetooth/qlowenergycontroller_bluez.cpp @@ -287,10 +287,10 @@ void QLowEnergyControllerPrivateBluez::init() if (!hciManager->isValid()) return; - hciManager->monitorEvent(HciManager::EncryptChangeEvent); + hciManager->monitorEvent(HciManager::HciEvent::EVT_ENCRYPT_CHANGE); connect(hciManager, SIGNAL(encryptionChangedEvent(QBluetoothAddress,bool)), this, SLOT(encryptionChangedEvent(QBluetoothAddress,bool))); - hciManager->monitorEvent(HciManager::LeMetaEvent); + hciManager->monitorEvent(HciManager::HciEvent::EVT_LE_META_EVENT); hciManager->monitorAclPackets(); connect(hciManager, &HciManager::connectionComplete, [this](quint16 handle) { connectionHandle = handle; @@ -2206,7 +2206,7 @@ bool QLowEnergyControllerPrivateBluez::increaseEncryptLevelfRequired(quint8 erro case ATT_ERROR_INSUF_ENCR_KEY_SIZE: if (!hciManager->isValid()) return false; - if (!hciManager->monitorEvent(HciManager::EncryptChangeEvent)) + if (!hciManager->monitorEvent(HciManager::HciEvent::EVT_ENCRYPT_CHANGE)) return false; if (securityLevelValue != BT_SECURITY_HIGH) { qCDebug(QT_BT_BLUEZ) << "Requesting encrypted link"; |