BLE keep connection alive
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 me is that I constantly send new messages every 2 seconds, so connection should be alive, but it's not.
The other strange thing is when I connect to laptop's Bluetooth, inside LightBlue logs I constantly see fresh messages every 2 seconds continuously as expected, for as long as client device is powered on.
Is there any check to periodically refresh connection state, or what's the right way?
Update: do I need to handle Server's notification in any way to keep connection alive?
