capacitor-plugin-ihealth 1.1.6 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -155,7 +155,11 @@ public class ihealthPlugin extends Plugin {
155
155
  }
156
156
  if (bluetoothAdapter.isEnabled()) {
157
157
  }else{
158
- bluetoothAdapter.enable();
158
+ try{
159
+ bluetoothAdapter.enable();
160
+ }catch(Exception e){
161
+
162
+ }
159
163
  }
160
164
 
161
165
 
@@ -1715,7 +1719,7 @@ public class ihealthPlugin extends Plugin {
1715
1719
  if(!offlineDataFound){
1716
1720
  notifyListeners("deviceDatafound", result);
1717
1721
  offlineDataFound =true;
1718
- mHs4SControl.measureOnline(0,0);
1722
+ mHs4SControl.measureOnline(01,0);
1719
1723
 
1720
1724
  }
1721
1725
  } catch (JSONException e) {
@@ -1796,7 +1800,7 @@ public class ihealthPlugin extends Plugin {
1796
1800
  }
1797
1801
  break;
1798
1802
  case HsProfile.ACTION_NO_HISTORICALDATA:
1799
- mHs4SControl.measureOnline(0,0);
1803
+ mHs4SControl.measureOnline(01,0);
1800
1804
 
1801
1805
  JSObject wsNoDataResult = new JSObject();
1802
1806
  wsNoDataResult.put("message", "Data not found");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-plugin-ihealth",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "capacitor plugin to integrate ihealth sdk",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
Binary file
Binary file