User Activity

What is the proper way of keeping connection from Client to Server alive?I'm working with smart glasses and after connection STM32 client sends the data, however, after some 10-20 seconds or so glasses show "Client disconnected" message.What puzzles ...
I've looked through many examples (in particular p2p client ) but I can't find any that sends payload that's made of array ```uint8_t pPayload[] = {0xFF, 0x01, 0x00, 0x05, 0xAA};uint8_t payloadLength = sizeof(pPayload);ret = aci_gatt_write_without_re...