I am developing an android BLE application and I have successfully created the app which connects with the BLE peripheral. Right now Gatt server gets disconnected and reconnected again on interval of 30sec, I assume.
What I need is now to keep the connection alive in order to stream data into my data from peripheral. Why do I need that? Because it is an EMG sensor which a user would wear on the arm and plot real time data of muscle movement. I know that would reduce the battery life of the peripheral of EMG device but that doesn't matter in my case.
Does anyone have any suggestion to do that? Or Am I unaware of something which BLE offers?
I have modified this sample code for my peripheral https://github.com/googlesamples/android-BluetoothLeGatt