From dde04982bc4d686a74bddbadc81caefd965de5e3 Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Tue, 30 Jun 2015 07:46:19 +0100 Subject: [PATCH] fix mbedmicro/BLE_API/#16: move GATT_MTU_SIZE_DEFAULT into blecommon.h --- ble/blecommon.h | 3 +++ ble/services/UARTService.h | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ble/blecommon.h b/ble/blecommon.h index 1de64eb..7a6cd59 100644 --- a/ble/blecommon.h +++ b/ble/blecommon.h @@ -126,6 +126,9 @@ enum ble_error_t { BLE_ERROR_UNSPECIFIED = 9, /**< Unknown error. */ }; +/** @brief Default MTU size. */ +static const unsigned GATT_MTU_SIZE_DEFAULT = 23; + #ifdef __cplusplus } #endif diff --git a/ble/services/UARTService.h b/ble/services/UARTService.h index 64676fe..2b0ef49 100644 --- a/ble/services/UARTService.h +++ b/ble/services/UARTService.h @@ -41,7 +41,6 @@ extern const uint8_t UARTServiceRXCharacteristicUUID[UUID::LENGTH_OF_LONG_UUID] class UARTService { public: /**< Maximum length of data (in bytes) that can be transmitted by the UART service module to the peer. */ - static const unsigned GATT_MTU_SIZE_DEFAULT = 23; static const unsigned BLE_UART_SERVICE_MAX_DATA_LEN = (GATT_MTU_SIZE_DEFAULT - 3); public: