diff options
author | Sven Gothel <[email protected]> | 2022-01-24 19:36:34 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-01-24 19:36:34 +0100 |
commit | c361d3af33b447ca59b9283d192811b071d68156 (patch) | |
tree | cc75194a96c70ec8a56aa6e7a341ee02335b604c /src/direct_bt/BTGattHandler.cpp | |
parent | 2a7c32136cd0eb38647ab3cd107372009efefaa2 (diff) |
All BTGattHandler::reply*() methods and applyWrite() are of noexcept
Diffstat (limited to 'src/direct_bt/BTGattHandler.cpp')
-rw-r--r-- | src/direct_bt/BTGattHandler.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/direct_bt/BTGattHandler.cpp b/src/direct_bt/BTGattHandler.cpp index fa72e99b..5cdc33b1 100644 --- a/src/direct_bt/BTGattHandler.cpp +++ b/src/direct_bt/BTGattHandler.cpp @@ -217,7 +217,7 @@ DBGattCharRef BTGattHandler::findServerGattCharByValueHandle(const uint16_t char return gattServerData->findGattCharByValueHandle(char_value_handle); } -AttErrorRsp::ErrorCode BTGattHandler::applyWrite(BTDeviceRef device, const uint16_t handle, const jau::TROOctets & value, const uint16_t value_offset) { +AttErrorRsp::ErrorCode BTGattHandler::applyWrite(BTDeviceRef device, const uint16_t handle, const jau::TROOctets & value, const uint16_t value_offset) noexcept { if( nullptr == gattServerData ) { return AttErrorRsp::ErrorCode::INVALID_HANDLE; } @@ -522,7 +522,7 @@ void BTGattHandler::replyWriteReq(const AttPDUMsg * pdu) noexcept { signalWriteDone(device, handle); } -void BTGattHandler::replyReadReq(const AttPDUMsg * pdu) { +void BTGattHandler::replyReadReq(const AttPDUMsg * pdu) noexcept { /* BT Core Spec v5.2: Vol 3, Part G GATT: 4.8.1 Read Characteristic Value */ /* BT Core Spec v5.2: Vol 3, Part G GATT: 4.8.3 Read Long Characteristic Value */ /* For any follow up request, which previous request reply couldn't fit in ATT_MTU */ @@ -679,7 +679,7 @@ void BTGattHandler::replyReadReq(const AttPDUMsg * pdu) { send(err); } -void BTGattHandler::replyFindInfoReq(const AttFindInfoReq * pdu) { +void BTGattHandler::replyFindInfoReq(const AttFindInfoReq * pdu) noexcept { // BT Core Spec v5.2: Vol 3, Part F ATT: 3.4.3.1 ATT_FIND_INFORMATION_REQ // BT Core Spec v5.2: Vol 3, Part F ATT: 3.4.3.2 ATT_FIND_INFORMATION_RSP // BT Core Spec v5.2: Vol 3, Part G GATT: 4.7.1 Discover All Characteristic Descriptors @@ -742,7 +742,7 @@ void BTGattHandler::replyFindInfoReq(const AttFindInfoReq * pdu) { send(err); } -void BTGattHandler::replyFindByTypeValueReq(const AttFindByTypeValueReq * pdu) { +void BTGattHandler::replyFindByTypeValueReq(const AttFindByTypeValueReq * pdu) noexcept { // BT Core Spec v5.2: Vol 3, Part F ATT: 3.4.3.3 ATT_FIND_BY_TYPE_VALUE_REQ // BT Core Spec v5.2: Vol 3, Part F ATT: 3.4.3.4 ATT_FIND_BY_TYPE_VALUE_RSP // BT Core Spec v5.2: Vol 3, Part G GATT: 4.4.2 Discover Primary Service by Service UUID @@ -812,7 +812,7 @@ void BTGattHandler::replyFindByTypeValueReq(const AttFindByTypeValueReq * pdu) { send(err); } -void BTGattHandler::replyReadByTypeReq(const AttReadByNTypeReq * pdu) { +void BTGattHandler::replyReadByTypeReq(const AttReadByNTypeReq * pdu) noexcept { // BT Core Spec v5.2: Vol 3, Part F ATT: 3.4.4.1 ATT_READ_BY_TYPE_REQ // BT Core Spec v5.2: Vol 3, Part F ATT: 3.4.4.2 ATT_READ_BY_TYPE_RSP // BT Core Spec v5.2: Vol 3, Part G GATT: 4.6.1 Discover All Characteristics of a Service @@ -903,7 +903,7 @@ void BTGattHandler::replyReadByTypeReq(const AttReadByNTypeReq * pdu) { } } -void BTGattHandler::replyReadByGroupTypeReq(const AttReadByNTypeReq * pdu) { +void BTGattHandler::replyReadByGroupTypeReq(const AttReadByNTypeReq * pdu) noexcept { // BT Core Spec v5.2: Vol 3, Part F ATT: 3.4.4.9 ATT_READ_BY_GROUP_TYPE_REQ // BT Core Spec v5.2: Vol 3, Part F ATT: 3.4.4.10 ATT_READ_BY_GROUP_TYPE_RSP // BT Core Spec v5.2: Vol 3, Part G GATT: 4.4.1 Discover All Primary Services @@ -989,7 +989,7 @@ void BTGattHandler::replyReadByGroupTypeReq(const AttReadByNTypeReq * pdu) { } } -void BTGattHandler::replyAttPDUReq(std::unique_ptr<const AttPDUMsg> && pdu) { +void BTGattHandler::replyAttPDUReq(std::unique_ptr<const AttPDUMsg> && pdu) noexcept { if( !validateConnected() ) { // shall not happen DBG_PRINT("GATT-Req: disconnected: req %s from %s", pdu->toString().c_str(), toString().c_str()); |