fix mbedmicro/BLE_API/#16: move GATT_MTU_SIZE_DEFAULT into blecommon.h
This commit is contained in:
parent
75beb80315
commit
dde04982bc
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue