Skip to content

Commit

Permalink
ios, watchos, android sdk's updated, setLocalTime api changed, fixed …
Browse files Browse the repository at this point in the history
…time zone set in sdk
  • Loading branch information
Erkki Silvola committed Apr 3, 2019
1 parent 519e93b commit a859047
Show file tree
Hide file tree
Showing 20 changed files with 191 additions and 164 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import org.reactivestreams.Publisher;

import java.util.Calendar;
import java.util.Date;

import io.reactivex.android.schedulers.AndroidSchedulers;
Expand Down Expand Up @@ -559,7 +560,9 @@ public void accept(Throwable throwable) throws Exception {
@SuppressLint("CheckResult")
@Override
public void onClick(View v) {
api.setLocalTime(DEVICE_ID,new Date()).subscribe(
Calendar calendar = Calendar.getInstance();
calendar.setTime(new Date());
api.setLocalTime(DEVICE_ID,calendar).subscribe(
new Action() {
@Override
public void run() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ import RxSwift
}

@objc func setLocalTime(_ identifier: String, time: Date, success: @escaping () -> Void, error: @escaping (Error) -> Void ) {
_ = api.setLocalTime(identifier, time: time).observeOn(MainScheduler.instance).subscribe{ e in
_ = api.setLocalTime(identifier, time: time, zone: TimeZone.current).observeOn(MainScheduler.instance).subscribe{ e in
switch e {
case .completed:
success()
Expand Down
96 changes: 48 additions & 48 deletions polar-sdk-android/docs/html/BDBleApiImpl_8java_source.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<div class="ttc" id="namespacepolar_1_1com_1_1sdk_html"><div class="ttname"><a href="namespacepolar_1_1com_1_1sdk.html">polar.com.sdk</a></div></div>
<div class="ttc" id="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApiDefaultImpl_html_ae9faebaa48b7943c86ac54129b2f25a8"><div class="ttname"><a href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApiDefaultImpl.html#ae9faebaa48b7943c86ac54129b2f25a8">polar.com.sdk.api.PolarBleApiDefaultImpl.defaultImplementation</a></div><div class="ttdeci">static PolarBleApi defaultImplementation(final Context context, int features)</div><div class="ttdef"><b>Definition:</b> <a href="PolarBleApiDefaultImpl_8java_source.html#l00020">PolarBleApiDefaultImpl.java:20</a></div></div>
<div class="ttc" id="namespacepolar_1_1com_1_1sdk_1_1impl_html"><div class="ttname"><a href="namespacepolar_1_1com_1_1sdk_1_1impl.html">polar.com.sdk.impl</a></div><div class="ttdef"><b>Definition:</b> <a href="BDBleApiImpl_8java_source.html#l00002">BDBleApiImpl.java:2</a></div></div>
<div class="ttc" id="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApi_html"><div class="ttname"><a href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApi.html">polar.com.sdk.api.PolarBleApi</a></div><div class="ttdef"><b>Definition:</b> <a href="PolarBleApi_8java_source.html#l00030">PolarBleApi.java:30</a></div></div>
<div class="ttc" id="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApi_html"><div class="ttname"><a href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApi.html">polar.com.sdk.api.PolarBleApi</a></div><div class="ttdef"><b>Definition:</b> <a href="PolarBleApi_8java_source.html#l00031">PolarBleApi.java:31</a></div></div>
<div class="ttc" id="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApiDefaultImpl_html_a8ced2a3644832ffd8f3f07bc043bd8ec"><div class="ttname"><a href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApiDefaultImpl.html#a8ced2a3644832ffd8f3f07bc043bd8ec">polar.com.sdk.api.PolarBleApiDefaultImpl.versionInfo</a></div><div class="ttdeci">static String versionInfo()</div><div class="ttdef"><b>Definition:</b> <a href="PolarBleApiDefaultImpl_8java_source.html#l00027">PolarBleApiDefaultImpl.java:27</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
Expand Down
42 changes: 21 additions & 21 deletions polar-sdk-android/docs/html/PolarBleApi_8java_source.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
<tr class="separator:ac92b34d91563bb7a208818dd4358b260"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32484f5b3bacdde45573298a4e1d12a5"><td class="memItemLeft" align="right" valign="top">abstract void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApi.html#a32484f5b3bacdde45573298a4e1d12a5">setAutomaticReconnection</a> (boolean enable)</td></tr>
<tr class="separator:a32484f5b3bacdde45573298a4e1d12a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29176c44198372ae4215d9de9a89c5b7"><td class="memItemLeft" align="right" valign="top">abstract Completable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApi.html#a29176c44198372ae4215d9de9a89c5b7">setLocalTime</a> (@NonNull final String identifier, @NonNull final Date time)</td></tr>
<tr class="separator:a29176c44198372ae4215d9de9a89c5b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8923ad69235615e62262a25115a01b9"><td class="memItemLeft" align="right" valign="top">abstract Completable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApi.html#ac8923ad69235615e62262a25115a01b9">setLocalTime</a> (@NonNull final String identifier, @NonNull Calendar calendar)</td></tr>
<tr class="separator:ac8923ad69235615e62262a25115a01b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08884e4115932e7917d190daf15ddff1"><td class="memItemLeft" align="right" valign="top">abstract Single&lt; <a class="el" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarSensorSetting.html">PolarSensorSetting</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApi.html#a08884e4115932e7917d190daf15ddff1">requestAccSettings</a> (@NonNull final String identifier)</td></tr>
<tr class="separator:a08884e4115932e7917d190daf15ddff1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3027dbef46fdc8d3bc15348b494d6bc"><td class="memItemLeft" align="right" valign="top">abstract Single&lt; <a class="el" href="classpolar_1_1com_1_1sdk_1_1api_1_1model_1_1PolarSensorSetting.html">PolarSensorSetting</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApi.html#ab3027dbef46fdc8d3bc15348b494d6bc">requestEcgSettings</a> (@NonNull final String identifier)</td></tr>
Expand Down Expand Up @@ -182,7 +182,7 @@
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Main class of the API. </p>

<p class="definition">Definition at line <a class="el" href="PolarBleApi_8java_source.html#l00030">30</a> of file <a class="el" href="PolarBleApi_8java_source.html">PolarBleApi.java</a>.</p>
<p class="definition">Definition at line <a class="el" href="PolarBleApi_8java_source.html#l00031">31</a> of file <a class="el" href="PolarBleApi_8java_source.html">PolarBleApi.java</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="afa663962cfcfa76ea7140315074ba39f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa663962cfcfa76ea7140315074ba39f">&#9670;&nbsp;</a></span>PolarBleApi()</h2>
Expand Down Expand Up @@ -214,7 +214,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#afa663962cfcfa76ea7140315
</dd>
</dl>

<p class="definition">Definition at line <a class="el" href="PolarBleApi_8java_source.html#l00100">100</a> of file <a class="el" href="PolarBleApi_8java_source.html">PolarBleApi.java</a>.</p>
<p class="definition">Definition at line <a class="el" href="PolarBleApi_8java_source.html#l00101">101</a> of file <a class="el" href="PolarBleApi_8java_source.html">PolarBleApi.java</a>.</p>

</div>
</div>
Expand Down Expand Up @@ -907,8 +907,8 @@ <h2 class="memtitle"><span class="permalink"><a href="#a32484f5b3bacdde45573298a

</div>
</div>
<a id="a29176c44198372ae4215d9de9a89c5b7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29176c44198372ae4215d9de9a89c5b7">&#9670;&nbsp;</a></span>setLocalTime()</h2>
<a id="ac8923ad69235615e62262a25115a01b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac8923ad69235615e62262a25115a01b9">&#9670;&nbsp;</a></span>setLocalTime()</h2>

<div class="memitem">
<div class="memproto">
Expand All @@ -925,8 +925,8 @@ <h2 class="memtitle"><span class="permalink"><a href="#a29176c44198372ae4215d9de
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">@NonNull final Date&#160;</td>
<td class="paramname"><em>time</em>&#160;</td>
<td class="paramtype">@NonNull Calendar&#160;</td>
<td class="paramname"><em>calendar</em>&#160;</td>
</tr>
<tr>
<td></td>
Expand All @@ -943,7 +943,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#a29176c44198372ae4215d9de
<p>set time to device affects on sensor data stream(s) timestamps requires feature <a class="el" href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApi.html#ae9b1c6052d3c686487e906ae463a2ff7">PolarBleApi::FEATURE_POLAR_FILE_TRANSFER</a> </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">identifier</td><td>polar device id </td></tr>
<tr><td class="paramname">time</td><td>time to set </td></tr>
<tr><td class="paramname">calendar</td><td>time to set </td></tr>
</table>
</dd>
</dl>
Expand Down Expand Up @@ -1351,7 +1351,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#af2c376f5d1d43c02e7e39d28
</div><div class="memdoc">
<p>all features mask </p>

<p class="definition">Definition at line <a class="el" href="PolarBleApi_8java_source.html#l00092">92</a> of file <a class="el" href="PolarBleApi_8java_source.html">PolarBleApi.java</a>.</p>
<p class="definition">Definition at line <a class="el" href="PolarBleApi_8java_source.html#l00093">93</a> of file <a class="el" href="PolarBleApi_8java_source.html">PolarBleApi.java</a>.</p>

</div>
</div>
Expand All @@ -1376,7 +1376,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#a6a13b5d8c944d7321e17662b
</div><div class="memdoc">
<p>bas feature to receive battery level info. </p>

<p class="definition">Definition at line <a class="el" href="PolarBleApi_8java_source.html#l00080">80</a> of file <a class="el" href="PolarBleApi_8java_source.html">PolarBleApi.java</a>.</p>
<p class="definition">Definition at line <a class="el" href="PolarBleApi_8java_source.html#l00081">81</a> of file <a class="el" href="PolarBleApi_8java_source.html">PolarBleApi.java</a>.</p>

</div>
</div>
Expand All @@ -1401,7 +1401,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#aff5649c4b21e8bba4c046390
</div><div class="memdoc">
<p>dis feature to receive sw information. </p>

<p class="definition">Definition at line <a class="el" href="PolarBleApi_8java_source.html#l00076">76</a> of file <a class="el" href="PolarBleApi_8java_source.html">PolarBleApi.java</a>.</p>
<p class="definition">Definition at line <a class="el" href="PolarBleApi_8java_source.html#l00077">77</a> of file <a class="el" href="PolarBleApi_8java_source.html">PolarBleApi.java</a>.</p>

</div>
</div>
Expand All @@ -1426,7 +1426,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#a834709ca3f418d44d2588faf
</div><div class="memdoc">
<p>hr feature to receive hr and rr data. </p>

<p class="definition">Definition at line <a class="el" href="PolarBleApi_8java_source.html#l00072">72</a> of file <a class="el" href="PolarBleApi_8java_source.html">PolarBleApi.java</a>.</p>
<p class="definition">Definition at line <a class="el" href="PolarBleApi_8java_source.html#l00073">73</a> of file <a class="el" href="PolarBleApi_8java_source.html">PolarBleApi.java</a>.</p>

</div>
</div>
Expand All @@ -1451,7 +1451,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#ae9b1c6052d3c686487e906ae
</div><div class="memdoc">
<p>polar file transfer feature to read exercises from device </p>

<p class="definition">Definition at line <a class="el" href="PolarBleApi_8java_source.html#l00088">88</a> of file <a class="el" href="PolarBleApi_8java_source.html">PolarBleApi.java</a>.</p>
<p class="definition">Definition at line <a class="el" href="PolarBleApi_8java_source.html#l00089">89</a> of file <a class="el" href="PolarBleApi_8java_source.html">PolarBleApi.java</a>.</p>

</div>
</div>
Expand All @@ -1476,7 +1476,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#a56b81b1ebb53df94c5e95ec5
</div><div class="memdoc">
<p>polar sensor streaming for ecg, acc, ppg, ppi, etc... </p>

<p class="definition">Definition at line <a class="el" href="PolarBleApi_8java_source.html#l00084">84</a> of file <a class="el" href="PolarBleApi_8java_source.html">PolarBleApi.java</a>.</p>
<p class="definition">Definition at line <a class="el" href="PolarBleApi_8java_source.html#l00085">85</a> of file <a class="el" href="PolarBleApi_8java_source.html">PolarBleApi.java</a>.</p>

</div>
</div>
Expand All @@ -1500,7 +1500,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#a6b3b45f899b318df179c9779
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="PolarBleApi_8java_source.html#l00094">94</a> of file <a class="el" href="PolarBleApi_8java_source.html">PolarBleApi.java</a>.</p>
<p class="definition">Definition at line <a class="el" href="PolarBleApi_8java_source.html#l00095">95</a> of file <a class="el" href="PolarBleApi_8java_source.html">PolarBleApi.java</a>.</p>

</div>
</div>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a859047

Please sign in to comment.