I developed two applications that implements both GATT roles: server and client. In my case, the GATT server is also the GAP peripheral and the GATT client is the GAP central.
I can connect/disconnect the client to/from the server, but I found some problems when I tried to stop advertising in the moment when the client is connected to the server. In this case, the connection is broken.
I can't understand. If two devices are connected, the server shoud not need to transmit advertising packets to keep alive the connection... That's strange.
I am using the SDK version 23