Skip to content

Commit

Permalink
Deploying to gh-pages from @ 769d023 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt committed Jan 30, 2024
1 parent 5c2316f commit 082c23b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/com.juul.kable/-filter/-manufacturer-data/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<div class="breadcrumbs"><a href="../../../index.html">core</a><span class="delimiter">/</span><a href="../../index.html">com.juul.kable</a><span class="delimiter">/</span><a href="../index.html">Filter</a><span class="delimiter">/</span><span class="current">ManufacturerData</span></div>
<div class="cover ">
<h1 class="cover"><span>Manufacturer</span><wbr><span><span>Data</span></span></h1>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":core:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">class </span><a href="index.html">ManufacturerData</a><span class="token punctuation">(</span><span class="parameters "><span class="parameter "><span class="token keyword">val </span>id<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">, </span></span><span class="parameter "><span class="token keyword">val </span>data<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><span class="token punctuation">, </span></span><span class="parameter "><span class="token keyword">val </span>dataMask<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><span class="token operator">?</span><span class="token operator"> = </span>null</span></span><span class="token punctuation">)</span> : <a href="../index.html">Filter</a></div><p class="paragraph">Provides support for filtering against advertisement manufacturer data.</p><p class="paragraph">If only portions of the manufacturer <a href="data.html">data</a> needs to match, then <a href="data-mask.html">dataMask</a> can be used to identify the relevant bits.</p><p class="paragraph">Some examples to demonstrate the <a href="data-mask.html">dataMask</a> functionality:</p><table><thead><tr><th><a href="data-mask.html">dataMask</a> value</th><th>Bit representation</th><th><a href="data.html">data</a> only needs to match...</th></tr></thead><tbody><tr><td><code class="org.jetbrains.dokka.pages.commenttable@ca97d5f lang-kotlin">byteArrayOf(0x0F, 0x00)</code></td><td>0000 1111 0000 0000</td><td>bits 0-3 of the first byte of advertisement manufacturer data.</td></tr><tr><td><code class="org.jetbrains.dokka.pages.commenttable@ca97d5f lang-kotlin">byteArrayOf(0x00, 0xFF)</code></td><td>0000 0000 1111 1111</td><td>the 2nd byte of advertisement manufacturer data.</td></tr><tr><td><code class="org.jetbrains.dokka.pages.commenttable@ca97d5f lang-kotlin">byteArrayOf(0xF0)</code></td><td>1111 0000</td><td>bits 4-7 of the first byte of advertisement manufacturer data.</td></tr></tbody></table><table><thead><tr><th>Platform</th><th>Supported</th><th>Details</th></tr></thead><tbody><tr><td>Android</td><td>Yes</td><td>Supported natively</td></tr><tr><td>Apple</td><td>Yes</td><td>Support provided by Kable via flow filter</td></tr><tr><td>JavaScript</td><td>Yes</td><td>Supported natively</td></tr></tbody></table><p class="paragraph">JavaScript support was added in Chrome 92 according to: https://developer.chrome.com/articles/bluetooth/#manufacturer-data-filter</p></div></div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":core:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">class </span><a href="index.html">ManufacturerData</a><span class="token punctuation">(</span><span class="parameters "><span class="parameter "><span class="token keyword">val </span>id<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">, </span></span><span class="parameter "><span class="token keyword">val </span>data<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><span class="token punctuation">, </span></span><span class="parameter "><span class="token keyword">val </span>dataMask<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><span class="token operator">?</span><span class="token operator"> = </span>null</span></span><span class="token punctuation">)</span> : <a href="../index.html">Filter</a></div><p class="paragraph">Provides support for filtering against advertisement manufacturer data.</p><p class="paragraph">If only portions of the manufacturer <a href="data.html">data</a> needs to match, then <a href="data-mask.html">dataMask</a> can be used to identify the relevant bits.</p><p class="paragraph">Some examples to demonstrate the <a href="data-mask.html">dataMask</a> functionality:</p><table><thead><tr><th><a href="data-mask.html">dataMask</a> value</th><th>Bit representation</th><th><a href="data.html">data</a> only needs to match...</th></tr></thead><tbody><tr><td><code class="org.jetbrains.dokka.pages.commenttable@5e250db1 lang-kotlin">byteArrayOf(0x0F, 0x00)</code></td><td>0000 1111 0000 0000</td><td>bits 0-3 of the first byte of advertisement manufacturer data.</td></tr><tr><td><code class="org.jetbrains.dokka.pages.commenttable@5e250db1 lang-kotlin">byteArrayOf(0x00, 0xFF)</code></td><td>0000 0000 1111 1111</td><td>the 2nd byte of advertisement manufacturer data.</td></tr><tr><td><code class="org.jetbrains.dokka.pages.commenttable@5e250db1 lang-kotlin">byteArrayOf(0xF0)</code></td><td>1111 0000</td><td>bits 4-7 of the first byte of advertisement manufacturer data.</td></tr></tbody></table><table><thead><tr><th>Platform</th><th>Supported</th><th>Details</th></tr></thead><tbody><tr><td>Android</td><td>Yes</td><td>Supported natively</td></tr><tr><td>Apple</td><td>Yes</td><td>Support provided by Kable via flow filter</td></tr><tr><td>JavaScript</td><td>Yes</td><td>Supported natively</td></tr></tbody></table><p class="paragraph">JavaScript support was added in Chrome 92 according to: https://developer.chrome.com/articles/bluetooth/#manufacturer-data-filter</p></div></div>
</div>
<div class="tabbedcontent">
<div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="CONSTRUCTOR,TYPE,PROPERTY,FUNCTION">Members</button></div>
Expand Down

0 comments on commit 082c23b

Please sign in to comment.