Skip to content

Commit

Permalink
fix mbedmicro/BLE_API/#16: move GATT_MTU_SIZE_DEFAULT into blecommon.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit Grover committed Jun 30, 2015
1 parent 75beb80 commit dde0498
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ble/blecommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion ble/services/UARTService.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dde0498

Please sign in to comment.