title: How can I get heart rate data (continuous measurement) from MiBand 2 in my own app?
body: <p>I'm developing an android application that needs to get the user's heart rate instantly for analysis. I have a Xiaomi MiBand 2 and would like to use it as data source.</p>
  
  <p>I found several codes in GitHub for applications that connect and get data from the bracelet, but none actually worked. I also tried to do this using Google Fit Api to get heartbeat data provided by the Mi Heart Rate synchronized with Google Fit, but it was not possible to get them either (the HR data is not found).</p>
  
  <p>So if anyone can help me, I'll be grateful.</p>