title: Android BluetoothLe keeping Gatt client-server connection alive
body: <p>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. </p>
  
  <p>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.     </p>
  
  <p>Does anyone have any suggestion to do that? Or Am I unaware of something which BLE offers?  </p>
  
  <p>I have modified this sample code for my peripheral <a href="https://github.com/googlesamples/android-BluetoothLeGatt" rel="nofollow noreferrer">https://github.com/googlesamples/android-BluetoothLeGatt</a> </p>