Add a new sample that demonstrate how to exchange MTU to allow larger packet transmission. The sample is split in two applications. One is the Central, it will initiate the MTU exchange. The other one is the Peripheral and will try to send a large notification. If the MTU exchange fail or the new size is not big enough, the Peripheral will not be able to send the notification. Signed-off-by: Théo Battrel <theo.battrel@nordicsemi.no>
14 lines
296 B
CMake
14 lines
296 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(mtu_update)
|
|
|
|
target_sources(app PRIVATE
|
|
src/main.c
|
|
src/peripheral_mtu_update.c
|
|
)
|
|
|
|
zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)
|