This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ATT_MTU Throuput Example Setup GATTS & GATTC

Hello Community,

I have been trying to avoid asking this question here (it may be trivial) but I guess the answer will help other people as well. 

In the ATT_MTU throughput example (SDK15.2.0 and previous ones) one unit is set as Central and the other as Peripheral. 

The 'tester' board is the Central and is doing all the transmission of the data while the 'responder' board is the peripheral that receives the data. 

What I cannot understand is why both devices are initialized as client and server at the same time. (?) 

I can see that the 'tester' (aka Client) is using functions in amts.c to notify the 'responder' (aka server) while the latter is using amtc.c routines to receive them.

Obviously the case is that the client can send data to the server and the other way round but why should each unit run both client_init and server_init routines?

Thank you for your answers.

Related