title: How to get sleep data DIRECTLY from Wear OS?
body: <p>I am new to Wear OS development, and am trying to get user's sleep duration.</p>
  
  <p>I've managed to get sleep data from other <strong><em>smartbands</em></strong> using raw <em>BLE</em> stack, but  I don't know how should I gather sleep data from <strong>Wear OS</strong>?. </p>
  
  <p>I've searched a bit in the web, and most people suggest to use Google Fit API, but in my case, I can't depend on external APIs. </p>
  
  <p>So these are my questions</p>
  
  <p>1) Is there anyway I can get sleep data from the Wear OS direclty ? If Yes, How?</p>
  
  <p>If No,</p>
  
  <p>2) Should I build a sleep tracker myself (by analyzing watch's movement and heart rate) ? </p>