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: