Skip to content

Commit

Permalink
sdk's updated, docs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Erkki Silvola committed Apr 15, 2019
1 parent a265ca0 commit d7a43e5
Show file tree
Hide file tree
Showing 62 changed files with 873 additions and 608 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ public void onClick(View view) {
new Consumer<PolarDeviceInfo>() {
@Override
public void accept(PolarDeviceInfo polarDeviceInfo) throws Exception {
Log.d(TAG, "polar device found id: " + polarDeviceInfo.deviceId + " rssi: " + polarDeviceInfo.rssi + " name: " + polarDeviceInfo.name + " isConnectable: " + polarDeviceInfo.isConnectable);
Log.d(TAG, "polar device found id: " + polarDeviceInfo.deviceId + " address: " + polarDeviceInfo.address + " rssi: " + polarDeviceInfo.rssi + " name: " + polarDeviceInfo.name + " isConnectable: " + polarDeviceInfo.isConnectable);
}
},
new Consumer<Throwable>() {
Expand Down
4 changes: 2 additions & 2 deletions examples/example-ios/polarBleSdkTestApp/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class ViewController: UIViewController,
case .error(let err):
NSLog("search error: \(err)")
case .next(let item):
NSLog("polar device found: \(item.name) connectable: \(item.connectable)")
NSLog("polar device found: \(item.name) connectable: \(item.connectable) address: \(item.address.uuidString)")
}
}
} else {
Expand Down Expand Up @@ -289,7 +289,7 @@ class ViewController: UIViewController,

// PolarBleApiDeviceHrObserver
func hrValueReceived(_ identifier: String, data: PolarHrData) {
NSLog("HR notification: \(data.hr) rrs: \(data.rrs) rrsMs: \(data.rrsMs) c: \(data.contact) s: \(data.contactSupported)")
NSLog("(\(identifier)) HR notification: \(data.hr) rrs: \(data.rrs) rrsMs: \(data.rrsMs) c: \(data.contact) s: \(data.contactSupported)")
}

func hrFeatureReady(_ identifier: String) {
Expand Down
103 changes: 53 additions & 50 deletions polar-sdk-android/docs/html/BDBleApiImpl_8java_source.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<div class="title">PolarBleApiDefaultImpl.java</div> </div>
</div><!--header-->
<div class="contents">
<a href="PolarBleApiDefaultImpl_8java.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// Copyright © 2019 Polar Electro Oy. All rights reserved.</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="keyword">package </span>polar.com.sdk.api;</div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="keyword">import</span> android.content.Context;</div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="keyword">import</span> com.androidcommunications.polar.api.ble.BleRefApiVersion;</div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="keyword">import</span> <a class="code" href="namespacepolar.html">polar</a>.<a class="code" href="namespacepolar_1_1com.html">com</a>.<a class="code" href="namespacepolar_1_1com_1_1sdk.html">sdk</a>.<a class="code" href="namespacepolar_1_1com_1_1sdk_1_1impl.html">impl</a>.<a class="code" href="classpolar_1_1com_1_1sdk_1_1impl_1_1BDBleApiImpl.html">BDBleApiImpl</a>;</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApiDefaultImpl.html"> 13</a></span>&#160;<span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApiDefaultImpl.html">PolarBleApiDefaultImpl</a> {</div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApiDefaultImpl.html#ae9faebaa48b7943c86ac54129b2f25a8"> 20</a></span>&#160; <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApi.html">PolarBleApi</a> <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApiDefaultImpl.html#ae9faebaa48b7943c86ac54129b2f25a8">defaultImplementation</a>(<span class="keyword">final</span> Context context, <span class="keywordtype">int</span> features){</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classpolar_1_1com_1_1sdk_1_1impl_1_1BDBleApiImpl.html">BDBleApiImpl</a>(context,features);</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; }</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApiDefaultImpl.html#a8ced2a3644832ffd8f3f07bc043bd8ec"> 27</a></span>&#160; <span class="keyword">public</span> <span class="keyword">static</span> String <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApiDefaultImpl.html#a8ced2a3644832ffd8f3f07bc043bd8ec">versionInfo</a>(){</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <span class="keywordflow">return</span> <span class="stringliteral">&quot;&quot;</span> + (BleRefApiVersion.major()-12) + <span class="stringliteral">&quot;.1.0&quot;</span>;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; }</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;}</div><div class="ttc" id="classpolar_1_1com_1_1sdk_1_1impl_1_1BDBleApiImpl_html"><div class="ttname"><a href="classpolar_1_1com_1_1sdk_1_1impl_1_1BDBleApiImpl.html">polar.com.sdk.impl.BDBleApiImpl</a></div><div class="ttdef"><b>Definition:</b> <a href="BDBleApiImpl_8java_source.html#l00091">BDBleApiImpl.java:91</a></div></div>
<a href="PolarBleApiDefaultImpl_8java.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// Copyright © 2019 Polar Electro Oy. All rights reserved.</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="keyword">package </span>polar.com.sdk.api;</div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="keyword">import</span> android.content.Context;</div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="keyword">import</span> com.androidcommunications.polar.api.ble.BleRefApiVersion;</div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="keyword">import</span> <a class="code" href="namespacepolar.html">polar</a>.<a class="code" href="namespacepolar_1_1com.html">com</a>.<a class="code" href="namespacepolar_1_1com_1_1sdk.html">sdk</a>.<a class="code" href="namespacepolar_1_1com_1_1sdk_1_1impl.html">impl</a>.<a class="code" href="classpolar_1_1com_1_1sdk_1_1impl_1_1BDBleApiImpl.html">BDBleApiImpl</a>;</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApiDefaultImpl.html"> 13</a></span>&#160;<span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApiDefaultImpl.html">PolarBleApiDefaultImpl</a> {</div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApiDefaultImpl.html#ae9faebaa48b7943c86ac54129b2f25a8"> 20</a></span>&#160; <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApi.html">PolarBleApi</a> <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApiDefaultImpl.html#ae9faebaa48b7943c86ac54129b2f25a8">defaultImplementation</a>(<span class="keyword">final</span> Context context, <span class="keywordtype">int</span> features){</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classpolar_1_1com_1_1sdk_1_1impl_1_1BDBleApiImpl.html">BDBleApiImpl</a>(context,features);</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; }</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApiDefaultImpl.html#a8ced2a3644832ffd8f3f07bc043bd8ec"> 27</a></span>&#160; <span class="keyword">public</span> <span class="keyword">static</span> String <a class="code" href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApiDefaultImpl.html#a8ced2a3644832ffd8f3f07bc043bd8ec">versionInfo</a>(){</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <span class="keywordflow">return</span> <span class="stringliteral">&quot;2.0.0&quot;</span>;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; }</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;}</div><div class="ttc" id="classpolar_1_1com_1_1sdk_1_1impl_1_1BDBleApiImpl_html"><div class="ttname"><a href="classpolar_1_1com_1_1sdk_1_1impl_1_1BDBleApiImpl.html">polar.com.sdk.impl.BDBleApiImpl</a></div><div class="ttdef"><b>Definition:</b> <a href="BDBleApiImpl_8java_source.html#l00091">BDBleApiImpl.java:91</a></div></div>
<div class="ttc" id="namespacepolar_html"><div class="ttname"><a href="namespacepolar.html">polar</a></div></div>
<div class="ttc" id="namespacepolar_1_1com_html"><div class="ttname"><a href="namespacepolar_1_1com.html">polar.com</a></div></div>
<div class="ttc" id="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApiDefaultImpl_html"><div class="ttname"><a href="classpolar_1_1com_1_1sdk_1_1api_1_1PolarBleApiDefaultImpl.html">polar.com.sdk.api.PolarBleApiDefaultImpl</a></div><div class="ttdef"><b>Definition:</b> <a href="PolarBleApiDefaultImpl_8java_source.html#l00013">PolarBleApiDefaultImpl.java:13</a></div></div>
Expand Down
13 changes: 7 additions & 6 deletions polar-sdk-android/docs/html/PolarBleApi_8java_source.html

Large diffs are not rendered by default.

Loading

0 comments on commit d7a43e5

Please sign in to comment.