You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ad...@apache.org on 2016/08/10 00:10:41 UTC

[3/6] incubator-mynewt-site git commit: Additions to ble app documentation by ccollins476ad. This closes #110.

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ble_hs/init/functions/ble_hs_synced/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ble_hs/init/functions/ble_hs_synced/index.html b/develop/network/ble/ble_hs/init/functions/ble_hs_synced/index.html
new file mode 100644
index 0000000..bb4ad95
--- /dev/null
+++ b/develop/network/ble/ble_hs/init/functions/ble_hs_synced/index.html
@@ -0,0 +1,612 @@
+<!DOCTYPE html>
+<html lang="en">
+    <head>
+        <meta charset="utf-8">
+        <meta http-equiv="X-UA-Compatible" content="IE=edge">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        
+        
+        <link rel="canonical" href="http://mynewt.apache.org/network/ble/ble_hs/init/functions/ble_hs_synced/">
+        <link rel="shortcut icon" href="../../../../../../img/favicon.ico">
+
+	<title>ble_hs_synced - Apache Mynewt</title>
+
+        <link href="../../../../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
+        <link href="../../../../../../css/font-awesome-4.0.3.css" rel="stylesheet">
+        <link rel="stylesheet" href="../../../../../../css/highlight.css">
+        <link href="../../../../../../css/base.css" rel="stylesheet">
+        <link href="../../../../../../css/custom.css" rel="stylesheet">
+        <link href="../../../../../../css/v2.css" rel="stylesheet">
+        <link href='https://fonts.googleapis.com/css?family=Roboto:400,500,700,900,300,100' rel='stylesheet' type='text/css'>
+        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
+        <link href="../../../../../../extra.css" rel="stylesheet">
+
+        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
+        <!--[if lt IE 9]>
+            <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+            <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
+        <![endif]-->
+
+        
+            <script>
+                (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+                (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+                m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+                })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+                ga('create', 'UA-72162311-1', 'auto');
+                ga('send', 'pageview');
+            </script>
+        
+    </head>
+
+
+    <body class="ble_hs_synced">
+
+
+        
+
+
+
+
+
+
+<nav id="navbar" class="navbar navbar-inverse navbar-fixed-top" role="navigation">
+    <div class="container">
+        <!-- Collapsed navigation -->
+        <div class="navbar-header">
+            <!-- Expander button -->
+            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+                <span class="sr-only">Toggle navigation</span>
+                <span class="icon-bar"></span>
+                <span class="icon-bar"></span>
+                <span class="icon-bar"></span>
+            </button>
+
+        </div>
+
+        <!-- Expanded navigation -->
+        <div class="navbar-collapse collapse">
+            <!-- Main navigation -->
+            <ul class="nav navbar-nav navbar-right">
+                <li 
+  class=""
+>
+                    <a href="/">Home</a>
+                </li>
+                <li 
+  class="important"
+>
+                    <a href="/quick-start/">Quick Start</a>
+                </li>
+                <li 
+  class=""
+>
+                    <a href="/about/">About</a>
+                </li>
+                <li 
+  class="active"
+>
+                    <a href="/latest/os/introduction">Documentation</a>
+                </li>
+                <li 
+  class=""
+>
+                    <a href="/download/">Download</a>
+                </li>
+                <li 
+  class=""
+>
+                    <a href="/community/">Community</a>
+                </li>
+                <li 
+  class=""
+>
+                    <a href="/events/">Events</a>
+                </li>
+            </ul>
+
+            <!-- Search, Navigation and Repo links -->
+            <ul class="nav navbar-nav navbar-right">
+                
+            </ul>
+        </div>
+    </div>
+</nav>
+
+        
+
+        <div class="container">
+            
+                <div class="row">
+                    <div class="col-md-3 v2-sidebar"><div id="docSidebar" class="hidden-print" role="complementary">
+    <div class="top">
+        <img class="hidden-xs hidden-sm logo-small" src="/img/logo.svg" alt="MyNewt" title="MyNewt">
+        <div role="search">
+            <form id="rtd-search-form" class="wy-form" action="../../../../../../search.html" method="get">
+                <div class="form-group">
+                    <input type="text" name="q" class="form-control" placeholder="Search documentation" />
+                </div>
+            </form>
+        </div>
+    </div>
+    <ul class="toc-nav">
+      <li class="doc-version">
+<select class="form-control" onchange="if (this.value) window.location.href=this.value">
+    
+    <option
+      value="/develop/os/introduction"
+      selected="selected"
+    >
+      Version: develop
+    </option>
+    
+    <option
+      value="/v0_9_0/os/introduction"
+      
+    >
+      Version: 0.9.0 (latest)
+    </option>
+    
+</select>
+</li>
+      
+        
+      
+        
+      
+        
+      
+        
+      
+        
+      
+        
+      
+        
+          
+  
+  
+    <li ><a href="../../../../../../os/introduction/">Mynewt Documentation</a>
+  
+  
+    <ul>
+          
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../../../../../os/get_started/get_started/">Basic Setup</a>
+  
+  
+    </li>
+
+              
+          
+              
+                
+    <li >
+      <a href="../../../../../../os/get_started/vocabulary/">Concepts</a>
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../../../../../os/tutorials/tutorials/">Tutorials</a>
+  
+  
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../../../../../os/os_user_guide/">OS User Guide</a>
+  
+  
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li><a href="
+  ../../../../ble_intro/
+">BLE User Guide</a>
+  
+  
+    <ul>
+          
+              
+                
+    <li >
+      <a href="../../../../ble_intro/">NimBLE Introduction</a>
+    </li>
+
+              
+          
+              
+                
+    <li >
+      <a href="../../../../ble_sec/">NimBLE Security</a>
+    </li>
+
+              
+          
+              
+                
+    <li >
+      <a href="../../../../nimble_setup/">Set up application</a>
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../../../ini_stack/ble_ini_intro/">Initialize stack</a>
+  
+  
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../../ble_hs/">NimBLE Host API</a>
+  
+  
+    <ul>
+          
+              
+          
+              
+                
+    <li >
+      <a href="../../../ble_hs_return_codes/">Return codes</a>
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../init/">Init and config</a>
+  
+  
+    <ul>
+          
+              
+          
+              
+                
+  
+  
+    <li><a href="
+  ../../definitions/init_defs/
+">Definitions</a>
+  
+  
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li><a href="
+  ../ble_hs_start/
+">Functions</a>
+  
+  
+    <ul>
+          
+              
+                
+    <li >
+      <a href="../ble_hs_start/">ble_hs_start</a>
+    </li>
+
+              
+          
+              
+                
+    <li >
+      <a href="../ble_hs_init/">ble_hs_init</a>
+    </li>
+
+              
+          
+              
+                
+    <li class="active">
+      <a href="./">ble_hs_synced</a>
+    </li>
+
+              
+          
+    </ul>
+  
+    </li>
+
+              
+          
+    </ul>
+  
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../../ble_gap/ble_gap/">GAP</a>
+  
+  
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../../ble_gattc/ble_gattc/">GATT client</a>
+  
+  
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../../ble_gatts/ble_gatts/">GATT server</a>
+  
+  
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../../ble_hs_id/ble_hs_id/">Identity</a>
+  
+  
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../../ble_att/ble_att/">ATT</a>
+  
+  
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../../other/other/">Other</a>
+  
+  
+    </li>
+
+              
+          
+    </ul>
+  
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../../../bletiny/bletiny_api/">bletiny app Usage API</a>
+  
+  
+    </li>
+
+              
+          
+    </ul>
+  
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../../../../../newt/newt_intro/">Newt Tool Guide</a>
+  
+  
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../../../../../newtmgr/overview/">Newt Manager Guide</a>
+  
+  
+    </li>
+
+              
+          
+    </ul>
+  
+    </li>
+
+        
+      
+        
+          
+  
+  
+    <li><a href="
+  ../../../../../../faq/how_to_edit_docs/
+">Appendix</a>
+  
+  
+    </li>
+
+        
+      
+    </ul>
+</div></div>
+
+                    <div class="show-sidebar-container">
+                        <button class="show-sidebar">Docs Menu</button>
+                    </div>
+
+                    <div class="col-md-9" role="main">
+                        <div class="row doc-header">
+                            <div class="col-sm-12">
+                                <div role="navigation" aria-label="breadcrumbs navigation">
+  <ul class="wy-breadcrumbs pull-right">
+    <li><a href="/develop/os/introduction">Docs</a></li>
+    
+    
+        
+          <li>&raquo; <a href="../../init/">Init and config</a></li>
+        
+      
+        
+          <li>&raquo; <a href="../ble_hs_start/">Functions</a></li>
+        
+      
+      
+        <li>&raquo; ble_hs_synced</li>
+      
+    
+    
+  </ul>
+</div>
+                            </div>
+                        </div>
+                        
+                            <h2 id="ble95hs95synced"><font color="#F2853F" style="font-size:24pt">ble_hs_synced</font></h2>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #A90D91">int</span>
+<span style="color: #000000">ble_hs_synced</span>(<span style="color: #A90D91">void</span>)
+</pre></div>
+
+
+<h3 id="description">Description</h3>
+<p>Indicates whether the host has synchronized with the controller. Synchronization must occur before any host procedures can be performed.</p>
+<h3 id="parameters">Parameters</h3>
+<p>None</p>
+<h3 id="returned-values">Returned values</h3>
+<table>
+<thead>
+<tr>
+<th><em>Value</em></th>
+<th><em>Condition</em></th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>1</td>
+<td>The host and controller are in sync.</td>
+</tr>
+<tr>
+<td>0</td>
+<td>The host and controller our out of sync.</td>
+</tr>
+</tbody>
+</table>
+                        
+                        <div class="row">
+                            
+
+
+
+<ul class="nav nav-pills" style="margin-bottom: 10px">
+    <li>
+    
+    <a href=../ble_hs_init/>
+        <span class="fa fa-arrow-left"></span>
+        Previous: ble_hs_init
+    </a>
+    
+    </li>
+    <li class="pull-right">
+    
+    <a href=../../../ble_gap/ble_gap/>
+        Next: GAP
+        <span class="fa fa-arrow-right"></span>
+    </a>
+    
+    </li>
+</ul>
+                        </div>
+                        <div class="row">
+                            <footer>
+    <div class="row">
+        <div class="col-md-12">
+            
+                <p class="copyright">Copyright &copy; 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p>
+            
+        </div>
+    </div>
+    <div class="copyright-logos">
+        <div class="row">
+            <div class="col-xs-6 text-right">
+                <img src="/img/apache-feather.png" alt="Apache" title="Apache">
+            </div>
+            <div class="col-xs-6 text-left">
+                <img src="/img/apache-logo.png" alt="Apache Incubator" title="Apache Incubator">
+            </div>
+        </div>
+    </div>
+    <div class="row">
+        <div class="col-md-12">
+            <small class="footnote">
+                MyNewt is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
+            </small>
+        </div>
+    </div>
+</footer>
+                        </div>
+                    </div>
+                </div>
+            
+            
+        </div>
+
+        <script src="../../../../../../js/jquery-1.10.2.min.js"></script>
+        <script src="../../../../../../js/bootstrap-3.0.3.min.js"></script>
+        <script src="../../../../../../js/highlight.pack.js"></script>
+        <script src="../../../../../../js/base.js"></script>
+        <script src="../../../../../../js/custom.js"></script>
+
+    </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ble_hs/init/init/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ble_hs/init/init/index.html b/develop/network/ble/ble_hs/init/init/index.html
index 84282e6..5ae5c9b 100644
--- a/develop/network/ble/ble_hs/init/init/index.html
+++ b/develop/network/ble/ble_hs/init/init/index.html
@@ -309,7 +309,7 @@
   
   
     <li><a href="
-  ../functions/ble_hs_init/
+  ../functions/ble_hs_start/
 ">Functions</a>
   
   
@@ -399,7 +399,7 @@
                 
   
   
-    <li ><a href="../../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../../../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>
@@ -511,6 +511,10 @@
 <td><a href="../functions/ble_hs_start/">ble_hs_start</a></td>
 <td>Synchronizes the host with the controller by sending a sequence of HCI commands.</td>
 </tr>
+<tr>
+<td><a href="../functions/ble_hs_synced/">ble_hs_synced</a></td>
+<td>Indicates whether the host has synchronized with the controller.</td>
+</tr>
 </tbody>
 </table>
                         

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ble_hs/other/functions/ble_eddystone_set_adv_data_uid/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ble_hs/other/functions/ble_eddystone_set_adv_data_uid/index.html b/develop/network/ble/ble_hs/other/functions/ble_eddystone_set_adv_data_uid/index.html
index 5685466..2cec7d3 100644
--- a/develop/network/ble/ble_hs/other/functions/ble_eddystone_set_adv_data_uid/index.html
+++ b/develop/network/ble/ble_hs/other/functions/ble_eddystone_set_adv_data_uid/index.html
@@ -454,7 +454,7 @@
                 
   
   
-    <li ><a href="../../../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../../../../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ble_hs/other/functions/ble_eddystone_set_adv_data_url/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ble_hs/other/functions/ble_eddystone_set_adv_data_url/index.html b/develop/network/ble/ble_hs/other/functions/ble_eddystone_set_adv_data_url/index.html
index d8b06bc..377b515 100644
--- a/develop/network/ble/ble_hs/other/functions/ble_eddystone_set_adv_data_url/index.html
+++ b/develop/network/ble/ble_hs/other/functions/ble_eddystone_set_adv_data_url/index.html
@@ -454,7 +454,7 @@
                 
   
   
-    <li ><a href="../../../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../../../../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ble_hs/other/functions/ble_hs_mbuf_att_pkt/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ble_hs/other/functions/ble_hs_mbuf_att_pkt/index.html b/develop/network/ble/ble_hs/other/functions/ble_hs_mbuf_att_pkt/index.html
index 80decf6..3d0021e 100644
--- a/develop/network/ble/ble_hs/other/functions/ble_hs_mbuf_att_pkt/index.html
+++ b/develop/network/ble/ble_hs/other/functions/ble_hs_mbuf_att_pkt/index.html
@@ -454,7 +454,7 @@
                 
   
   
-    <li ><a href="../../../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../../../../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ble_hs/other/functions/ble_hs_mbuf_from_flat/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ble_hs/other/functions/ble_hs_mbuf_from_flat/index.html b/develop/network/ble/ble_hs/other/functions/ble_hs_mbuf_from_flat/index.html
index 26b92f5..490189e 100644
--- a/develop/network/ble/ble_hs/other/functions/ble_hs_mbuf_from_flat/index.html
+++ b/develop/network/ble/ble_hs/other/functions/ble_hs_mbuf_from_flat/index.html
@@ -454,7 +454,7 @@
                 
   
   
-    <li ><a href="../../../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../../../../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ble_hs/other/functions/ble_hs_mbuf_to_flat/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ble_hs/other/functions/ble_hs_mbuf_to_flat/index.html b/develop/network/ble/ble_hs/other/functions/ble_hs_mbuf_to_flat/index.html
index 88b8a49..5bede03 100644
--- a/develop/network/ble/ble_hs/other/functions/ble_hs_mbuf_to_flat/index.html
+++ b/develop/network/ble/ble_hs/other/functions/ble_hs_mbuf_to_flat/index.html
@@ -454,7 +454,7 @@
                 
   
   
-    <li ><a href="../../../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../../../../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ble_hs/other/functions/ble_ibeacon_set_adv_data/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ble_hs/other/functions/ble_ibeacon_set_adv_data/index.html b/develop/network/ble/ble_hs/other/functions/ble_ibeacon_set_adv_data/index.html
index b0001d2..522085e 100644
--- a/develop/network/ble/ble_hs/other/functions/ble_ibeacon_set_adv_data/index.html
+++ b/develop/network/ble/ble_hs/other/functions/ble_ibeacon_set_adv_data/index.html
@@ -454,7 +454,7 @@
                 
   
   
-    <li ><a href="../../../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../../../../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ble_hs/other/functions/ble_uuid_128_to_16/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ble_hs/other/functions/ble_uuid_128_to_16/index.html b/develop/network/ble/ble_hs/other/functions/ble_uuid_128_to_16/index.html
index 0cb8864..634e830 100644
--- a/develop/network/ble/ble_hs/other/functions/ble_uuid_128_to_16/index.html
+++ b/develop/network/ble/ble_hs/other/functions/ble_uuid_128_to_16/index.html
@@ -454,7 +454,7 @@
                 
   
   
-    <li ><a href="../../../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../../../../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ble_hs/other/functions/ble_uuid_16_to_128/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ble_hs/other/functions/ble_uuid_16_to_128/index.html b/develop/network/ble/ble_hs/other/functions/ble_uuid_16_to_128/index.html
index f933689..e0df06b 100644
--- a/develop/network/ble/ble_hs/other/functions/ble_uuid_16_to_128/index.html
+++ b/develop/network/ble/ble_hs/other/functions/ble_uuid_16_to_128/index.html
@@ -454,7 +454,7 @@
                 
   
   
-    <li ><a href="../../../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../../../../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>
@@ -607,7 +607,7 @@
     </li>
     <li class="pull-right">
     
-    <a href=../../../../bletiny_api/>
+    <a href=../../../../bletiny/bletiny_api/>
         Next: bletiny app Usage API
         <span class="fa fa-arrow-right"></span>
     </a>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ble_hs/other/other/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ble_hs/other/other/index.html b/develop/network/ble/ble_hs/other/other/index.html
index 3a81448..24c654d 100644
--- a/develop/network/ble/ble_hs/other/other/index.html
+++ b/develop/network/ble/ble_hs/other/other/index.html
@@ -386,7 +386,7 @@
                 
   
   
-    <li ><a href="../../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../../../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ble_intro/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ble_intro/index.html b/develop/network/ble/ble_intro/index.html
index 0c75259..ddef72e 100644
--- a/develop/network/ble/ble_intro/index.html
+++ b/develop/network/ble/ble_intro/index.html
@@ -276,7 +276,7 @@
                 
   
   
-    <li ><a href="../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ble_sec/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ble_sec/index.html b/develop/network/ble/ble_sec/index.html
index ebafbaf..70f8133 100644
--- a/develop/network/ble/ble_sec/index.html
+++ b/develop/network/ble/ble_sec/index.html
@@ -276,7 +276,7 @@
                 
   
   
-    <li ><a href="../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/bletiny/bletiny_GAP/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/bletiny/bletiny_GAP/index.html b/develop/network/ble/bletiny/bletiny_GAP/index.html
index b5582fc..7e34733 100644
--- a/develop/network/ble/bletiny/bletiny_GAP/index.html
+++ b/develop/network/ble/bletiny/bletiny_GAP/index.html
@@ -276,7 +276,7 @@
                 
   
   
-    <li ><a href="../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../bletiny_api/">bletiny app Usage API</a>
   
   
     <ul>
@@ -380,7 +380,7 @@
         
       
         
-          <li>&raquo; <a href="../../bletiny_api/">bletiny app Usage API</a></li>
+          <li>&raquo; <a href="../bletiny_api/">bletiny app Usage API</a></li>
         
       
       
@@ -469,7 +469,7 @@
 <tr>
 <td></td>
 <td>Name Discovery procedure</td>
-<td>UNSUPPORTED</td>
+<td><code>b scan dur=x</code> <br> <code>b scan cancel</code> <br> <code>b conn peer_addr_type=x peer_addr=x</code> <br> <code>b read uuid=0x2a00</code></td>
 </tr>
 <tr>
 <td>3</td>
@@ -479,32 +479,27 @@
 <tr>
 <td></td>
 <td>Directed connectable mode</td>
-<td><code>b adv conn=dir disc=x addr_type=x addr=x</code></td>
+<td><code>b adv conn=dir [own_addr_type=x] [disc=x] [dur=x]</code></td>
 </tr>
 <tr>
 <td></td>
 <td>Undirected connectable mode</td>
-<td><code>b adv conn=und disc=x</code></td>
+<td><code>b adv conn=und [own_addr_type=x] [disc=x] [dur=x]</code></td>
 </tr>
 <tr>
 <td></td>
 <td>Auto connection establishment procedure</td>
-<td><code>b wl addr_type=x addr=x</code></td>
-</tr>
-<tr>
-<td></td>
-<td>Auto connection establishment procedure</td>
-<td><code>b conn addr_type=wl</code></td>
+<td><code>b wl addr_type=x addr=x [addr_type=y addr=y] [...]</code> <br> <code>b conn addr_type=wl</code></td>
 </tr>
 <tr>
 <td></td>
 <td>General connection establishment procedure</td>
-<td>AVAILABLE SOON</td>
+<td><code>b scan dur=x</code> <br> <code>b scan cancel</code> <br> <code>b conn peer_addr_type=x peer_addr=x</code></td>
 </tr>
 <tr>
 <td></td>
 <td>Selective connection establishment procedure</td>
-<td>AVAILABLE SOON</td>
+<td><code>b wl addr_type=x addr=x [addr_type=y addr=y] [...]</code> <br> <code>b scan filt=use_wl dur=x</code> <br> <code>b scan cancel</code> <br> <code>b conn peer_addr_type=x peer_addr=x [own_addr_type=x]</code></td>
 </tr>
 <tr>
 <td></td>
@@ -524,39 +519,96 @@
 <tr>
 <td>4</td>
 <td>Non-Bondable mode</td>
-<td>AVAILABLE SOON</td>
+<td><code>b set sm_data bonding=0</code> [*]</td>
 </tr>
 <tr>
 <td></td>
 <td>Bondable mode</td>
-<td>AVAILABLE SOON</td>
+<td><code>b set sm_data bonding=1</code> [*]</td>
 </tr>
 <tr>
 <td></td>
 <td>Bonding procedure</td>
-<td>AVAILABLE SOON</td>
+<td><code>b sec start conn=x</code> [*]</td>
 </tr>
 </tbody>
 </table>
+<p><strong>[*]</strong> Security is disabled by default in bletiny.  To use the bonding modes and procedures, add the <code>-DNIMBLE_OPT_SM=1</code> cflag to your target.</p>
 <p><br></p>
+<h3 id="address-types">Address Types</h3>
+<table>
+<thead>
+<tr>
+<th><em>bletiny string</em></th>
+<th><em>Description</em></th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>public</td>
+<td>Public address.</td>
+</tr>
+<tr>
+<td>random</td>
+<td>Random static address.</td>
+</tr>
+<tr>
+<td>rpa_pub</td>
+<td>Resolvable private address, public identity.</td>
+</tr>
+<tr>
+<td>rpa_rnd</td>
+<td>Resolvable private address, random static identity.</td>
+</tr>
+<tr>
+<td>wl</td>
+<td>Use white list; ignore peer_addr parameter.</td>
+</tr>
+</tbody>
+</table>
 <h3 id="connection-parameters">Connection Parameters</h3>
 <p>The Connection parameter definitions can be found in Section 7.8.12 of the BLUETOOTH SPECIFICATION Version 4.2 [Vol 2, Part E].</p>
 <table>
 <thead>
 <tr>
-<th><strong>Name</strong></th>
-<th><strong>Description</strong></th>
-<th><strong>nimBLE parameter</strong></th>
+<th><em>Name</em></th>
+<th><em>Description</em></th>
+<th><em>bletiny string</em></th>
 </tr>
 </thead>
 <tbody>
 <tr>
-<td>Minimum connection interval</td>
+<td>LE_Scan_Interval</td>
+<td>Recommendation from the Host on how long the Controller should scan</td>
+<td>scan_itvl</td>
+</tr>
+<tr>
+<td>LE_Scan_Window</td>
+<td>Recommendation from the Host on how frequently the Controller should scan</td>
+<td>scan_window</td>
+</tr>
+<tr>
+<td>Peer_Address_Type</td>
+<td>Whether the peer is using a public or random address (see Address types table).</td>
+<td>peer_addr_type</td>
+</tr>
+<tr>
+<td>Peer_Address</td>
+<td>The 6-byte device address of the peer; ignored if white list is used</td>
+<td>peer_addr</td>
+</tr>
+<tr>
+<td>Own_Address_Type</td>
+<td>The type of address to use when initiating the connection (see Address types table)</td>
+<td>own_addr_type</td>
+</tr>
+<tr>
+<td>Conn_Interval_Min</td>
 <td>Defines minimum allowed connection interval</td>
 <td>itvl_min</td>
 </tr>
 <tr>
-<td>Maximum connection interval</td>
+<td>Conn_Interval_Max</td>
 <td>Defines maximum allowed connection interval</td>
 <td>itvl_max</td>
 </tr>
@@ -571,16 +623,6 @@
 <td>timeout</td>
 </tr>
 <tr>
-<td>LE_Scan_Interval</td>
-<td>Recommendation from the Host on how long the Controller should scan</td>
-<td>scan_itvl</td>
-</tr>
-<tr>
-<td>LE_Scan_Window</td>
-<td>Recommendation from the Host on how frequently the Controller should scan</td>
-<td>scan_window</td>
-</tr>
-<tr>
 <td>Minimum_CE_Length</td>
 <td>Informative parameter providing the Controller with the expected minimum length of the connection event</td>
 <td>min_ce_len</td>
@@ -590,9 +632,124 @@
 <td>Informative parameter providing the Controller with the expected maximum length of the connection event</td>
 <td>max_ce_len</td>
 </tr>
+<tr>
+<td>Duration</td>
+<td>Number of milliseconds before aborting the connect attempt</td>
+<td>dur</td>
+</tr>
+</tbody>
+</table>
+<h3 id="advertisment-parameters">Advertisment Parameters</h3>
+<table>
+<thead>
+<tr>
+<th><em>bletiny string</em></th>
+<th><em>Description</em></th>
+<th><em>Notes</em></th>
+<th><em>Default</em></th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>conn</td>
+<td>Connectable mode</td>
+<td>See Connectable Modes table.</td>
+<td>und</td>
+</tr>
+<tr>
+<td>disc</td>
+<td>Discoverable mode</td>
+<td>See Discoverable Modes table.</td>
+<td>gen</td>
+</tr>
+<tr>
+<td>own_addr_type</td>
+<td>The type of address to advertise with</td>
+<td>See Address Types table.</td>
+<td>public</td>
+</tr>
+<tr>
+<td>peer_addr_type</td>
+<td>The peer's address type</td>
+<td>Only used for directed advertising; see Address Types table.</td>
+<td>public</td>
+</tr>
+<tr>
+<td>peer_addr</td>
+<td>The peer's address</td>
+<td>Only used for directed advertising</td>
+<td>N/A</td>
+</tr>
+<tr>
+<td>chan_map</td>
+<td></td>
+<td></td>
+<td>0</td>
+</tr>
+<tr>
+<td>filt</td>
+<td>The filter policy</td>
+<td>See Advertisement Filter Policies table.</td>
+<td>none</td>
+</tr>
+<tr>
+<td>itvl_min</td>
+<td></td>
+<td>units=0.625ms</td>
+<td>non: 100ms; und/dir: 30ms</td>
+</tr>
+<tr>
+<td>itvl_max</td>
+<td></td>
+<td>units=0.625ms</td>
+<td>non: 150ms; und/dir: 60ms</td>
+</tr>
+<tr>
+<td>hd</td>
+<td>Whether to use high-duty-cycle</td>
+<td>0/1</td>
+<td>0</td>
+</tr>
+<tr>
+<td>dur</td>
+<td></td>
+<td>Milliseconds</td>
+<td>Forever</td>
+</tr>
+</tbody>
+</table>
+<h3 id="advertisement-filter-policies">Advertisement Filter Policies</h3>
+<table>
+<thead>
+<tr>
+<th><em>bletiny string</em></th>
+<th><em>Description</em></th>
+<th><em>Notes</em></th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>none</td>
+<td>No filtering. No whitelist used.</td>
+<td>Default</td>
+</tr>
+<tr>
+<td>scan</td>
+<td>Process all connection requests but only scans from white list.</td>
+<td></td>
+</tr>
+<tr>
+<td>conn</td>
+<td>Process all scan request but only connection requests from white list.</td>
+<td></td>
+</tr>
+<tr>
+<td>both</td>
+<td>Ignore all scan and connection requests unless in white list.</td>
+<td></td>
+</tr>
 </tbody>
 </table>
-<h3 id="advertisement-data-fields">Advertisement data fields</h3>
                         
                         <div class="row">
                             
@@ -602,7 +759,7 @@
 <ul class="nav nav-pills" style="margin-bottom: 10px">
     <li>
     
-    <a href=../../bletiny_api/>
+    <a href=../bletiny_api/>
         <span class="fa fa-arrow-left"></span>
         Previous: bletiny app Usage API
     </a>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/bletiny/bletiny_GATT/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/bletiny/bletiny_GATT/index.html b/develop/network/ble/bletiny/bletiny_GATT/index.html
index 2230a4d..3fe431a 100644
--- a/develop/network/ble/bletiny/bletiny_GATT/index.html
+++ b/develop/network/ble/bletiny/bletiny_GATT/index.html
@@ -276,7 +276,7 @@
                 
   
   
-    <li ><a href="../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../bletiny_api/">bletiny app Usage API</a>
   
   
     <ul>
@@ -380,7 +380,7 @@
         
       
         
-          <li>&raquo; <a href="../../bletiny_api/">bletiny app Usage API</a></li>
+          <li>&raquo; <a href="../bletiny_api/">bletiny app Usage API</a></li>
         
       
       
@@ -506,13 +506,13 @@
 <td>8</td>
 <td>Notification of a Characteristic Value</td>
 <td>Notifications</td>
-<td>Write CLIENT CONFIGURATION characteristic</td>
+<td>Write <em>0x01:0x00</em> to CLIENT CONFIGURATION characteristic</td>
 </tr>
 <tr>
 <td>9</td>
 <td>Indication of a Characteristic Value</td>
 <td>Indications</td>
-<td>Write CLIENT CONFIGURATION characteristic</td>
+<td>Write <em>0x02:0x00</em> to CLIENT CONFIGURATION characteristic</td>
 </tr>
 <tr>
 <td>10</td>
@@ -541,23 +541,19 @@
 </tbody>
 </table>
 <p><br></p>
-<h3 id="using-nimble-commands">Using nimBLE commands</h3>
-<p>Assuming you have discovered and established a BLE connection with at least one peer device (as explained earlier in <a href="../../bletiny_api/">API for bletiny app</a>, you can find out what characteristics and services are available over these connections. Here is a recap.</p>
+<h3 id="using-nimble-commands">Using NimBLE commands</h3>
+<p>Assuming you have discovered and established a BLE connection with at least one peer device (as explained earlier in <a href="../bletiny_api/">API for bletiny app</a>, you can find out what characteristics and services are available over these connections. Here is a recap.</p>
+<p>To show established connections:</p>
 <div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">b show conn
 </pre></div>
 
 
-<p>To show discovered services</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">b show svc
-</pre></div>
-
-
-<p>To show discovered characteristics</p>
+<p>To show discovered services, characteristics, and descriptors:</p>
 <div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">b show chr
 </pre></div>
 
 
-<p>To show connection RSSI</p>
+<p>To show connection RSSI:</p>
 <div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">b show rssi conn=x
 </pre></div>
                         

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/bletiny/bletiny_advdata/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/bletiny/bletiny_advdata/index.html b/develop/network/ble/bletiny/bletiny_advdata/index.html
index fc7d184..dfac63d 100644
--- a/develop/network/ble/bletiny/bletiny_advdata/index.html
+++ b/develop/network/ble/bletiny/bletiny_advdata/index.html
@@ -276,7 +276,7 @@
                 
   
   
-    <li ><a href="../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../bletiny_api/">bletiny app Usage API</a>
   
   
     <ul>
@@ -380,7 +380,7 @@
         
       
         
-          <li>&raquo; <a href="../../bletiny_api/">bletiny app Usage API</a></li>
+          <li>&raquo; <a href="../bletiny_api/">bletiny app Usage API</a></li>
         
       
       
@@ -403,103 +403,135 @@
 <th><strong>Name</strong></th>
 <th><strong>Definition</strong></th>
 <th><strong>Details</strong></th>
+<th><strong>bletiny Notes</strong></th>
 </tr>
 </thead>
 <tbody>
 <tr>
+<td>flags</td>
+<td>Indicates basic information about the advertiser.</td>
+<td>Flags used over the LE physical channel are: <br> * Limited Discoverable Mode <br> * General Discoverable Mode <br> * BR/EDR Not Supported <br> * Simultaneous LE and BR/EDR to Same Device Capable (Controller) <br> * Simultaneous LE and BR/EDR to Same Device Capable (Host)</td>
+<td>NimBLE will auto-calculate if set to 0.</td>
+</tr>
+<tr>
 <td>uuids16</td>
 <td>16-bit Bluetooth Service UUIDs</td>
 <td>Indicates the Service UUID list is incomplete i.e. more 16-bit Service UUIDs available. 16 bit UUIDs shall only be used if they are assigned by the Bluetooth SIG.</td>
+<td>Set repeatedly for multiple service UUIDs.</td>
 </tr>
 <tr>
 <td>uuids16_is_complete</td>
 <td>16-bit Bluetooth Service UUIDs</td>
 <td>Indicates the Service UUID list is complete. 16 bit UUIDs shall only be used if they are assigned by the Bluetooth SIG.</td>
+<td></td>
 </tr>
 <tr>
 <td>uuids32</td>
 <td>32-bit Bluetooth Service UUIDs</td>
 <td>Indicates the Service UUID list is incomplete i.e. more 32-bit Service UUIDs available. 32 bit UUIDs shall only be used if they are assigned by the Bluetooth SIG.</td>
+<td>Set repeatedly for multiple service UUIDs.</td>
 </tr>
 <tr>
 <td>uuids32_is_complete</td>
 <td>32-bit Bluetooth Service UUIDs</td>
 <td>Indicates the Service UUID list is complete. 32 bit UUIDs shall only be used if they are assigned by the Bluetooth SIG.</td>
+<td></td>
 </tr>
 <tr>
 <td>uuids128</td>
 <td>Global 128-bit Service UUIDs</td>
 <td>More 128-bit Service UUIDs available.</td>
+<td>Set repeatedly for multiple service UUIDs.</td>
 </tr>
 <tr>
 <td>uuids128_is_complete</td>
 <td>Global 128-bit Service UUIDs</td>
 <td>Complete list of 128-bit Service UUIDs</td>
+<td></td>
 </tr>
 <tr>
 <td>tx_pwr_lvl</td>
 <td>TX Power Level</td>
 <td>Indicates the transmitted power level of the packet containing the data type. The TX Power Level data type may be used to calculate path loss on a received packet using the following equation: <br> <br> pathloss = Tx Power Level \u2013 RSSI <br> <br> where \u201cRSSI\u201d is the received signal strength, in dBm, of the packet received.</td>
+<td>NimBLE will auto-calculate if set to -128.</td>
 </tr>
 <tr>
 <td>device_class</td>
 <td>Class of device</td>
 <td>Size: 3 octets</td>
+<td></td>
 </tr>
 <tr>
 <td>slave_itvl_range</td>
 <td>Slave Connection Interval Range</td>
 <td>Contains the Peripheral\u2019s preferred connection interval range, for all logical connections. Size: 4 Octets . The first 2 octets defines the minimum value for the connection interval in the following manner: <br> <br> connIntervalmin = Conn_Interval_Min * 1.25 ms <br> <br> Conn_Interval_Min range: 0x0006 to 0x0C80 <br> Value of 0xFFFF indicates no specific minimum. <br> <br> The other 2 octets defines the maximum value for the connection interval in the following manner: <br> <br> connIntervalmax = Conn_Interval_Max * 1.25 ms <br> Conn_Interval_Max range: 0x0006 to 0x0C80 <br> Conn_Interval_Max shall be equal to or greater than the Conn_Interval_Min. <br> Value of 0xFFFF indicates no specific maximum.</td>
+<td></td>
 </tr>
 <tr>
 <td>svc_data_uuid16</td>
 <td>Service Data - 16 bit UUID</td>
 <td>Size: 2 or more octets <br> The first 2 octets contain the 16 bit Service UUID followed by additional service data</td>
+<td></td>
 </tr>
 <tr>
 <td>public_tgt_addr</td>
 <td>Public Target Address</td>
 <td>Defines the address of one or more intended recipients of an advertisement when one or more devices were bonded using a public address. This data type shall exist only once. It may be sent in either the Advertising or Scan Response data, but not both.</td>
+<td></td>
 </tr>
 <tr>
 <td>appearance</td>
 <td>Appearance</td>
 <td>Defines the external appearance of the device. The Appearance data type shall exist only once. It may be sent in either the Advertising or Scan Response data, but not both.</td>
+<td></td>
 </tr>
 <tr>
 <td>adv_itvl</td>
 <td>Advertising Interval</td>
 <td>Contains the advInterval value as defined in the Core specification, Volume 6, Part B, Section 4.4.2.2.</td>
+<td></td>
 </tr>
 <tr>
 <td>le_addr</td>
 <td>LE Bluetooth Device Address</td>
 <td>Defines the device address of the local device and the address type on the LE transport.</td>
+<td></td>
 </tr>
 <tr>
 <td>le_role</td>
 <td>LE Role</td>
 <td>Defines the LE role capabilities of the device. <br> 0x00 Only Peripheral Role supported <br> 0x01 Only Central Role supported <br> 0x02 Peripheral and Central Role supported, Peripheral Role preferred for connection establishment <br> 0x03 Peripheral and Central Role supported, Central Role preferred for connection establishment <br> 0x04 \u2013 0xFF Reserved for future use</td>
+<td></td>
 </tr>
 <tr>
 <td>svc_data_uuid32</td>
 <td>Service Data - 32 bit UUID</td>
 <td>Size: 4 or more octets <br> The first 4 octets contain the 32 bit Service UUID followed by additional service data</td>
+<td></td>
 </tr>
 <tr>
 <td>svc_data_uuid128</td>
 <td>Service Data - 128 bit UUID</td>
 <td>Size: 16 or more octets <br> The first 16 octets contain the 128 bit Service UUID followed by additional service data</td>
+<td></td>
 </tr>
 <tr>
 <td>uri</td>
 <td>Uniform Resource Identifier (URI)</td>
 <td>Scheme name string and URI as a UTF-8 string</td>
+<td></td>
 </tr>
 <tr>
 <td>mfg_data</td>
 <td>Manufacturer Specific data</td>
 <td>Size: 2 or more octets <br> The first 2 octets contain the Company Identifier Code followed by additional manufacturer specific data</td>
+<td></td>
+</tr>
+<tr>
+<td>eddystone_url</td>
+<td></td>
+<td></td>
+<td></td>
 </tr>
 </tbody>
 </table>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/bletiny/bletiny_api/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/bletiny/bletiny_api/index.html b/develop/network/ble/bletiny/bletiny_api/index.html
new file mode 100644
index 0000000..e407c85
--- /dev/null
+++ b/develop/network/ble/bletiny/bletiny_api/index.html
@@ -0,0 +1,548 @@
+<!DOCTYPE html>
+<html lang="en">
+    <head>
+        <meta charset="utf-8">
+        <meta http-equiv="X-UA-Compatible" content="IE=edge">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        
+        
+        <link rel="canonical" href="http://mynewt.apache.org/network/ble/bletiny/bletiny_api/">
+        <link rel="shortcut icon" href="../../../../img/favicon.ico">
+
+	<title>toc - Apache Mynewt</title>
+
+        <link href="../../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
+        <link href="../../../../css/font-awesome-4.0.3.css" rel="stylesheet">
+        <link rel="stylesheet" href="../../../../css/highlight.css">
+        <link href="../../../../css/base.css" rel="stylesheet">
+        <link href="../../../../css/custom.css" rel="stylesheet">
+        <link href="../../../../css/v2.css" rel="stylesheet">
+        <link href='https://fonts.googleapis.com/css?family=Roboto:400,500,700,900,300,100' rel='stylesheet' type='text/css'>
+        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
+        <link href="../../../../extra.css" rel="stylesheet">
+
+        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
+        <!--[if lt IE 9]>
+            <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+            <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
+        <![endif]-->
+
+        
+            <script>
+                (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+                (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+                m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+                })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+                ga('create', 'UA-72162311-1', 'auto');
+                ga('send', 'pageview');
+            </script>
+        
+    </head>
+
+
+    <body class="toc">
+
+
+        
+
+
+
+
+
+
+<nav id="navbar" class="navbar navbar-inverse navbar-fixed-top" role="navigation">
+    <div class="container">
+        <!-- Collapsed navigation -->
+        <div class="navbar-header">
+            <!-- Expander button -->
+            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+                <span class="sr-only">Toggle navigation</span>
+                <span class="icon-bar"></span>
+                <span class="icon-bar"></span>
+                <span class="icon-bar"></span>
+            </button>
+
+        </div>
+
+        <!-- Expanded navigation -->
+        <div class="navbar-collapse collapse">
+            <!-- Main navigation -->
+            <ul class="nav navbar-nav navbar-right">
+                <li 
+  class=""
+>
+                    <a href="/">Home</a>
+                </li>
+                <li 
+  class="important"
+>
+                    <a href="/quick-start/">Quick Start</a>
+                </li>
+                <li 
+  class=""
+>
+                    <a href="/about/">About</a>
+                </li>
+                <li 
+  class="active"
+>
+                    <a href="/latest/os/introduction">Documentation</a>
+                </li>
+                <li 
+  class=""
+>
+                    <a href="/download/">Download</a>
+                </li>
+                <li 
+  class=""
+>
+                    <a href="/community/">Community</a>
+                </li>
+                <li 
+  class=""
+>
+                    <a href="/events/">Events</a>
+                </li>
+            </ul>
+
+            <!-- Search, Navigation and Repo links -->
+            <ul class="nav navbar-nav navbar-right">
+                
+            </ul>
+        </div>
+    </div>
+</nav>
+
+        
+
+        <div class="container">
+            
+                <div class="row">
+                    <div class="col-md-3 v2-sidebar"><div id="docSidebar" class="hidden-print" role="complementary">
+    <div class="top">
+        <img class="hidden-xs hidden-sm logo-small" src="/img/logo.svg" alt="MyNewt" title="MyNewt">
+        <div role="search">
+            <form id="rtd-search-form" class="wy-form" action="../../../../search.html" method="get">
+                <div class="form-group">
+                    <input type="text" name="q" class="form-control" placeholder="Search documentation" />
+                </div>
+            </form>
+        </div>
+    </div>
+    <ul class="toc-nav">
+      <li class="doc-version">
+<select class="form-control" onchange="if (this.value) window.location.href=this.value">
+    
+    <option
+      value="/develop/os/introduction"
+      selected="selected"
+    >
+      Version: develop
+    </option>
+    
+    <option
+      value="/v0_9_0/os/introduction"
+      
+    >
+      Version: 0.9.0 (latest)
+    </option>
+    
+</select>
+</li>
+      
+        
+      
+        
+      
+        
+      
+        
+      
+        
+      
+        
+      
+        
+          
+  
+  
+    <li ><a href="../../../../os/introduction/">Mynewt Documentation</a>
+  
+  
+    <ul>
+          
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../../../os/get_started/get_started/">Basic Setup</a>
+  
+  
+    </li>
+
+              
+          
+              
+                
+    <li >
+      <a href="../../../../os/get_started/vocabulary/">Concepts</a>
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../../../os/tutorials/tutorials/">Tutorials</a>
+  
+  
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../../../os/os_user_guide/">OS User Guide</a>
+  
+  
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li><a href="
+  ../../ble_intro/
+">BLE User Guide</a>
+  
+  
+    <ul>
+          
+              
+                
+    <li >
+      <a href="../../ble_intro/">NimBLE Introduction</a>
+    </li>
+
+              
+          
+              
+                
+    <li >
+      <a href="../../ble_sec/">NimBLE Security</a>
+    </li>
+
+              
+          
+              
+                
+    <li >
+      <a href="../../nimble_setup/">Set up application</a>
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../ini_stack/ble_ini_intro/">Initialize stack</a>
+  
+  
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../ble_hs/ble_hs/">NimBLE Host API</a>
+  
+  
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li class="active"><a href="./">bletiny app Usage API</a>
+  
+  
+    <ul>
+          
+              
+          
+              
+                
+    <li >
+      <a href="../bletiny_GAP/">GAP in bletiny</a>
+    </li>
+
+              
+          
+              
+                
+    <li >
+      <a href="../bletiny_GATT/">GATT in bletiny</a>
+    </li>
+
+              
+          
+              
+                
+    <li >
+      <a href="../bletiny_advdata/">Advertisement Data Fields</a>
+    </li>
+
+              
+          
+    </ul>
+  
+    </li>
+
+              
+          
+    </ul>
+  
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../../../newt/newt_intro/">Newt Tool Guide</a>
+  
+  
+    </li>
+
+              
+          
+              
+                
+  
+  
+    <li ><a href="../../../../newtmgr/overview/">Newt Manager Guide</a>
+  
+  
+    </li>
+
+              
+          
+    </ul>
+  
+    </li>
+
+        
+      
+        
+          
+  
+  
+    <li><a href="
+  ../../../../faq/how_to_edit_docs/
+">Appendix</a>
+  
+  
+    </li>
+
+        
+      
+    </ul>
+</div></div>
+
+                    <div class="show-sidebar-container">
+                        <button class="show-sidebar">Docs Menu</button>
+                    </div>
+
+                    <div class="col-md-9" role="main">
+                        <div class="row doc-header">
+                            <div class="col-sm-12">
+                                <div role="navigation" aria-label="breadcrumbs navigation">
+  <ul class="wy-breadcrumbs pull-right">
+    <li><a href="/develop/os/introduction">Docs</a></li>
+    
+    
+        
+          <li>&raquo; <a href="../../ble_intro/">BLE User Guide</a></li>
+        
+      
+        
+          <li>&raquo; bletiny app Usage API</li>
+        
+      
+      
+    
+    
+  </ul>
+</div>
+                            </div>
+                        </div>
+                        
+                            <h2 id="api-for-bletiny-app">API for bletiny app</h2>
+<p>"bletiny" is one of the sample applications that come with Mynewt. It is a simple shell application which provides a basic interface to the host-side of the BLE stack. "bletiny" includes all the possible roles (Central/Peripheral) and they may be run simultaneously. You can run bletiny on a board and issue commands that make it behave as a central or a peripheral with different peers. </p>
+<p>Highlighted below are some of the ways you can use the API to establish connections and discover services and characteristics from peer devices. For descriptions of the full API, go to the next sections on <a href="../bletiny_GAP/">GAP in bletiny</a> and <a href="../bletiny_GATT/">GATT in bletiny</a>.</p>
+<p>All bletiny commands are prefixed with <code>b</code>.  This prefix distinguished bletiny commands from other shell commands that are implemented by other Mynewt packages.</p>
+<p><br></p>
+<h3 id="set-device-address">Set device address.</h3>
+<p>On startup, bletiny has the following identity address configuration:</p>
+<ul>
+<li>Public address: <code>0a:0b:0c:0d:0e:0f</code></li>
+<li>Random address: None</li>
+</ul>
+<p>The below <code>set</code> commands can be used to change the address configuration:</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">b set addr_type=public addr=&lt;device-address&gt;
+b set addr_type=random addr=&lt;device-address&gt;
+</pre></div>
+
+
+<p>For example:</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">b set addr_type=public addr=01:02:03:04:05:06
+b set addr_type=random addr=c1:aa:bb:cc:dd:ee
+</pre></div>
+
+
+<p>The address configuration can be viewed with the <code>b show addr</code> command, as follows:</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">b show addr
+public_id_addr=01:02:03:04:05:06 random_id_addr=c1:aa:bb:cc:dd:ee
+</pre></div>
+
+
+<p><br></p>
+<h3 id="initiate-a-direct-connection-to-a-device">Initiate a direct connection to a device</h3>
+<p>In this case, your board is acting as a central and initiating a connection with another BLE device. The example assumes you know the address of the peer, either by scanning for available peers or because you have set up the peer yourself.</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="background-color: #ffffcc">b conn own_addr_type=public peer_addr_type=public peer_addr=d4:f5:13:53:d2:43
+</span>connection established; handle=1 our_ota_addr_type=0 our_ota_addr=0a:0b:0c:0d:0e:0f out_id_addr_type=0 our_id_addr=0a:0b:0c:0d:0e:0f peer_addr_type=0 peer_addr=43:d2:53:13:f5:d4 conn_itvl=40 conn_latency=0 supervision_timeout=256 encrypted=0 authenticated=0 bonded=0
+</pre></div>
+
+
+<p>The <code>handle=1</code> in the output indicates that it is connection-1.</p>
+<p><br></p>
+<h3 id="configure-advertisements-to-include-device-name">Configure advertisements to include device name</h3>
+<p>In this case, your board is acting as a peripheral. </p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">b set adv_data name=&lt;your-device-name&gt;
+</pre></div>
+
+
+<p><br></p>
+<h3 id="begin-sending-undirected-general-advertisements">Begin sending undirected general advertisements</h3>
+<p>In this case, your board is acting as a peripheral. </p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">b adv conn=und disc=gen
+</pre></div>
+
+
+<p><br></p>
+<h3 id="show-established-connections">Show established connections.</h3>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">b show conn
+</pre></div>
+
+
+<p><br></p>
+<h3 id="discover-and-display-peers-services-characteristics-and-descriptors">Discover and display peer's services, characteristics, and descriptors.</h3>
+<p>This is how you discover and then display the services of the peer you established earlier across connection-1.</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="background-color: #ffffcc">b disc full conn=1
+</span><span style="background-color: #ffffcc">b show chr
+</span>[ts=132425ssb, mod=64 level=2] CONNECTION: handle=1 addr=d4:f5:13:53:d2:43
+[ts=132428ssb, mod=64 level=2]     start=1 end=5 uuid=0x1800
+[ts=132433ssb, mod=64 level=2]     start=6 end=16 uuid=0x1808
+[ts=132437ssb, mod=64 level=2]     start=17 end=31 uuid=0x180a
+[ts=132441ssb, mod=64 level=2]     start=32 end=65535 uuid=00000000-0000-1000-1000000000000000
+</pre></div>
+
+
+<p><br></p>
+<h3 id="read-an-attribute-belonging-to-the-peer">Read an attribute belonging to the peer</h3>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">b read conn=1 attr=21
+</pre></div>
+
+
+<p><br></p>
+<h3 id="write-to-an-attribute-belonging-to-the-peer">Write to an attribute belonging to the peer</h3>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">b write conn=1 attr=3 value=0x01:0x02:0x03
+</pre></div>
+
+
+<p><br></p>
+<h3 id="perform-a-passive-scan">Perform a passive scan</h3>
+<p>This is how you tell your board to listen to all advertisements around it. The duration is specified in ms.</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">b scan dur=1000 type=passive filt=no_wl
+</pre></div>
+                        
+                        <div class="row">
+                            
+
+
+
+<ul class="nav nav-pills" style="margin-bottom: 10px">
+    <li>
+    
+    <a href=../../ble_hs/other/functions/ble_uuid_16_to_128/>
+        <span class="fa fa-arrow-left"></span>
+        Previous: ble_uuid_16_to_128
+    </a>
+    
+    </li>
+    <li class="pull-right">
+    
+    <a href=../bletiny_GAP/>
+        Next: GAP in bletiny
+        <span class="fa fa-arrow-right"></span>
+    </a>
+    
+    </li>
+</ul>
+                        </div>
+                        <div class="row">
+                            <footer>
+    <div class="row">
+        <div class="col-md-12">
+            
+                <p class="copyright">Copyright &copy; 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p>
+            
+        </div>
+    </div>
+    <div class="copyright-logos">
+        <div class="row">
+            <div class="col-xs-6 text-right">
+                <img src="/img/apache-feather.png" alt="Apache" title="Apache">
+            </div>
+            <div class="col-xs-6 text-left">
+                <img src="/img/apache-logo.png" alt="Apache Incubator" title="Apache Incubator">
+            </div>
+        </div>
+    </div>
+    <div class="row">
+        <div class="col-md-12">
+            <small class="footnote">
+                MyNewt is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
+            </small>
+        </div>
+    </div>
+</footer>
+                        </div>
+                    </div>
+                </div>
+            
+            
+        </div>
+
+        <script src="../../../../js/jquery-1.10.2.min.js"></script>
+        <script src="../../../../js/bootstrap-3.0.3.min.js"></script>
+        <script src="../../../../js/highlight.pack.js"></script>
+        <script src="../../../../js/base.js"></script>
+        <script src="../../../../js/custom.js"></script>
+
+    </body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/bletiny_api/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/bletiny_api/index.html b/develop/network/ble/bletiny_api/index.html
deleted file mode 100644
index c196661..0000000
--- a/develop/network/ble/bletiny_api/index.html
+++ /dev/null
@@ -1,569 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-    <head>
-        <meta charset="utf-8">
-        <meta http-equiv="X-UA-Compatible" content="IE=edge">
-        <meta name="viewport" content="width=device-width, initial-scale=1.0">
-        
-        
-        <link rel="canonical" href="http://mynewt.apache.org/network/ble/bletiny_api/">
-        <link rel="shortcut icon" href="../../../img/favicon.ico">
-
-	<title>toc - Apache Mynewt</title>
-
-        <link href="../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
-        <link href="../../../css/font-awesome-4.0.3.css" rel="stylesheet">
-        <link rel="stylesheet" href="../../../css/highlight.css">
-        <link href="../../../css/base.css" rel="stylesheet">
-        <link href="../../../css/custom.css" rel="stylesheet">
-        <link href="../../../css/v2.css" rel="stylesheet">
-        <link href='https://fonts.googleapis.com/css?family=Roboto:400,500,700,900,300,100' rel='stylesheet' type='text/css'>
-        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
-        <link href="../../../extra.css" rel="stylesheet">
-
-        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
-        <!--[if lt IE 9]>
-            <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
-            <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
-        <![endif]-->
-
-        
-            <script>
-                (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-                (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
-                m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
-                })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-
-                ga('create', 'UA-72162311-1', 'auto');
-                ga('send', 'pageview');
-            </script>
-        
-    </head>
-
-
-    <body class="toc">
-
-
-        
-
-
-
-
-
-
-<nav id="navbar" class="navbar navbar-inverse navbar-fixed-top" role="navigation">
-    <div class="container">
-        <!-- Collapsed navigation -->
-        <div class="navbar-header">
-            <!-- Expander button -->
-            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
-                <span class="sr-only">Toggle navigation</span>
-                <span class="icon-bar"></span>
-                <span class="icon-bar"></span>
-                <span class="icon-bar"></span>
-            </button>
-
-        </div>
-
-        <!-- Expanded navigation -->
-        <div class="navbar-collapse collapse">
-            <!-- Main navigation -->
-            <ul class="nav navbar-nav navbar-right">
-                <li 
-  class=""
->
-                    <a href="/">Home</a>
-                </li>
-                <li 
-  class="important"
->
-                    <a href="/quick-start/">Quick Start</a>
-                </li>
-                <li 
-  class=""
->
-                    <a href="/about/">About</a>
-                </li>
-                <li 
-  class="active"
->
-                    <a href="/latest/os/introduction">Documentation</a>
-                </li>
-                <li 
-  class=""
->
-                    <a href="/download/">Download</a>
-                </li>
-                <li 
-  class=""
->
-                    <a href="/community/">Community</a>
-                </li>
-                <li 
-  class=""
->
-                    <a href="/events/">Events</a>
-                </li>
-            </ul>
-
-            <!-- Search, Navigation and Repo links -->
-            <ul class="nav navbar-nav navbar-right">
-                
-            </ul>
-        </div>
-    </div>
-</nav>
-
-        
-
-        <div class="container">
-            
-                <div class="row">
-                    <div class="col-md-3 v2-sidebar"><div id="docSidebar" class="hidden-print" role="complementary">
-    <div class="top">
-        <img class="hidden-xs hidden-sm logo-small" src="/img/logo.svg" alt="MyNewt" title="MyNewt">
-        <div role="search">
-            <form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
-                <div class="form-group">
-                    <input type="text" name="q" class="form-control" placeholder="Search documentation" />
-                </div>
-            </form>
-        </div>
-    </div>
-    <ul class="toc-nav">
-      <li class="doc-version">
-<select class="form-control" onchange="if (this.value) window.location.href=this.value">
-    
-    <option
-      value="/develop/os/introduction"
-      selected="selected"
-    >
-      Version: develop
-    </option>
-    
-    <option
-      value="/v0_9_0/os/introduction"
-      
-    >
-      Version: 0.9.0 (latest)
-    </option>
-    
-</select>
-</li>
-      
-        
-      
-        
-      
-        
-      
-        
-      
-        
-      
-        
-      
-        
-          
-  
-  
-    <li ><a href="../../../os/introduction/">Mynewt Documentation</a>
-  
-  
-    <ul>
-          
-              
-          
-              
-                
-  
-  
-    <li ><a href="../../../os/get_started/get_started/">Basic Setup</a>
-  
-  
-    </li>
-
-              
-          
-              
-                
-    <li >
-      <a href="../../../os/get_started/vocabulary/">Concepts</a>
-    </li>
-
-              
-          
-              
-                
-  
-  
-    <li ><a href="../../../os/tutorials/tutorials/">Tutorials</a>
-  
-  
-    </li>
-
-              
-          
-              
-                
-  
-  
-    <li ><a href="../../../os/os_user_guide/">OS User Guide</a>
-  
-  
-    </li>
-
-              
-          
-              
-                
-  
-  
-    <li><a href="
-  ../ble_intro/
-">BLE User Guide</a>
-  
-  
-    <ul>
-          
-              
-                
-    <li >
-      <a href="../ble_intro/">NimBLE Introduction</a>
-    </li>
-
-              
-          
-              
-                
-    <li >
-      <a href="../ble_sec/">NimBLE Security</a>
-    </li>
-
-              
-          
-              
-                
-    <li >
-      <a href="../nimble_setup/">Set up application</a>
-    </li>
-
-              
-          
-              
-                
-  
-  
-    <li ><a href="../ini_stack/ble_ini_intro/">Initialize stack</a>
-  
-  
-    </li>
-
-              
-          
-              
-                
-  
-  
-    <li ><a href="../ble_hs/ble_hs/">NimBLE Host API</a>
-  
-  
-    </li>
-
-              
-          
-              
-                
-  
-  
-    <li class="active"><a href="./">bletiny app Usage API</a>
-  
-  
-    <ul>
-          
-              
-          
-              
-                
-    <li >
-      <a href="../bletiny/bletiny_GAP/">GAP in bletiny</a>
-    </li>
-
-              
-          
-              
-                
-    <li >
-      <a href="../bletiny/bletiny_GATT/">GATT in bletiny</a>
-    </li>
-
-              
-          
-              
-                
-    <li >
-      <a href="../bletiny/bletiny_advdata/">Advertisement Data Fields</a>
-    </li>
-
-              
-          
-    </ul>
-  
-    </li>
-
-              
-          
-    </ul>
-  
-    </li>
-
-              
-          
-              
-                
-  
-  
-    <li ><a href="../../../newt/newt_intro/">Newt Tool Guide</a>
-  
-  
-    </li>
-
-              
-          
-              
-                
-  
-  
-    <li ><a href="../../../newtmgr/overview/">Newt Manager Guide</a>
-  
-  
-    </li>
-
-              
-          
-    </ul>
-  
-    </li>
-
-        
-      
-        
-          
-  
-  
-    <li><a href="
-  ../../../faq/how_to_edit_docs/
-">Appendix</a>
-  
-  
-    </li>
-
-        
-      
-    </ul>
-</div></div>
-
-                    <div class="show-sidebar-container">
-                        <button class="show-sidebar">Docs Menu</button>
-                    </div>
-
-                    <div class="col-md-9" role="main">
-                        <div class="row doc-header">
-                            <div class="col-sm-12">
-                                <div role="navigation" aria-label="breadcrumbs navigation">
-  <ul class="wy-breadcrumbs pull-right">
-    <li><a href="/develop/os/introduction">Docs</a></li>
-    
-    
-        
-          <li>&raquo; <a href="../ble_intro/">BLE User Guide</a></li>
-        
-      
-        
-          <li>&raquo; bletiny app Usage API</li>
-        
-      
-      
-    
-    
-  </ul>
-</div>
-                            </div>
-                        </div>
-                        
-                            <h2 id="api-for-bletiny-app">API for bletiny app</h2>
-<p>"bletiny" is one of the sample applications that come with Mynewt. It is a simple shell application which provides a basic interface to the host-side of the BLE stack. "bletiny" includes all the possible roles (Central/Peripheral) and they may be run simultaneously. You can run bletiny on a board and issue commands that make it behave as a central or a peripheral with different peers. </p>
-<p>Highlighted below are some of the ways you can use the API to establish connections and discover services and characteristics from peer devices. For descriptions of the full API, go to the next sections on <a href="../bletiny/bletiny_GAP/">GAP in bletiny</a> and <a href="../bletiny/bletiny_GATT/">GATT in bletiny</a>.</p>
-<p><br></p>
-<h3 id="set-device-public-address">Set device public address.</h3>
-<p>Currently the device public address is hardcoded to <code>0a:0b:0c:0d:0e:0f</code> in <code>bletiny</code> app but you can change it by going into its source code and initializing it to the desired value as described in the section on how to <a href="../ini_stack/ble_devadd/">initialize device addr</a>. </p>
-<p><br></p>
-<h3 id="initiate-a-direct-connection-to-a-device">Initiate a direct connection to a device</h3>
-<p>In this case, your board is acting as a central and initiating a connection with another BLE device. The example assumes you know the address of the peer, either by scanning for available peers or because you have set up the peer yourself.</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="background-color: #ffffcc">b conn addr_type=public addr=d4:f5:13:53:d2:43
-</span>[ts=118609ssb, mod=64 level=2] connection complete; status=0 handle=1 peer_addr_type=0 peer_addr=0x43:0xd2:0x53:0x13:0xf5:0xd4 conn_itvl=40 conn_latency=0 supervision_timeout=256
-</pre></div>
-
-
-<p>The <code>handle=1</code> in the output indicates that it is connection-1.</p>
-<p><br></p>
-<h3 id="configure-advertisements-to-include-device-name">Configure advertisements to include device name</h3>
-<p>In this case, your board is acting as a peripheral. </p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">b set adv_data name=&lt;your-device-name&gt;
-</pre></div>
-
-
-<p><br></p>
-<h3 id="begin-sending-undirected-general-advertisements">Begin sending undirected general advertisements</h3>
-<p>In this case, your board is acting as a peripheral. </p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">b adv conn=und disc=gen
-</pre></div>
-
-
-<p><br></p>
-<h3 id="show-established-connections">Show established connections.</h3>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">b show conn
-</pre></div>
-
-
-<p><br></p>
-<h3 id="discover-and-display-peers-services">Discover and display peer's services.</h3>
-<p>This is how you discover and then display the services of the peer you established earlier across connection-1.</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="background-color: #ffffcc">b disc svc conn=1
-</span><span style="background-color: #ffffcc">b show chr
-</span>[ts=132425ssb, mod=64 level=2] CONNECTION: handle=1 addr=d4:f5:13:53:d2:43
-[ts=132428ssb, mod=64 level=2]     start=1 end=5 uuid=0x1800
-[ts=132433ssb, mod=64 level=2]     start=6 end=16 uuid=0x1808
-[ts=132437ssb, mod=64 level=2]     start=17 end=31 uuid=0x180a
-[ts=132441ssb, mod=64 level=2]     start=32 end=65535 uuid=00000000-0000-1000-1000000000000000
-</pre></div>
-
-
-<p><br></p>
-<h3 id="discover-characteristics-for-each-service-on-peer">Discover characteristics for each service on peer</h3>
-<p>The following examples show how to find the characteristics for each service available on the peer device across connection-1. The start and end values depend on the specific services discovered using the previous command <code>b show chr</code>. Continuing with the example above, you can discover the characteristics of the first service and display it using the following commands.</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="background-color: #ffffcc">b disc chr conn=1 start=1 end=5
-</span><span style="background-color: #ffffcc">b show chr
-</span>[ts=163063ssb, mod=64 level=2] CONNECTION: handle=1 addr=d4:f5:13:53:d2:43
-[ts=163067ssb, mod=64 level=2]     start=1 end=5 uuid=0x1800
-[ts=163071ssb, mod=64 level=2]         def_handle=2 val_handle=3 properties=0x02 uuid=0x2a00
-[ts=163078ssb, mod=64 level=2]         def_handle=4 val_handle=5 properties=0x02 uuid=0x2a01
-[ts=163085ssb, mod=64 level=2]     start=6 end=16 uuid=0x1808
-[ts=163089ssb, mod=64 level=2]     start=17 end=31 uuid=0x180a
-[ts=163094ssb, mod=64 level=2]     start=32 end=65535 uuid=00000000-0000-1000-1000000000000000
-</pre></div>
-
-
-<p>You can next discover characteristics for the second service and display. </p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="background-color: #ffffcc">b disc chr conn=1 start=6 end=16
-</span><span style="background-color: #ffffcc">b show chr
-</span>[ts=180631ssb, mod=64 level=2] CONNECTION: handle=1 addr=d4:f5:13:53:d2:43
-[ts=180634ssb, mod=64 level=2]     start=1 end=5 uuid=0x1800
-[ts=180639ssb, mod=64 level=2]         def_handle=2 val_handle=3 properties=0x02 uuid=0x2a00
-[ts=180646ssb, mod=64 level=2]         def_handle=4 val_handle=5 properties=0x02 uuid=0x2a01
-[ts=180653ssb, mod=64 level=2]     start=6 end=16 uuid=0x1808
-[ts=180657ssb, mod=64 level=2]         def_handle=7 val_handle=8 properties=0x10 uuid=0x2a18
-[ts=180664ssb, mod=64 level=2]         def_handle=10 val_handle=11 properties=0x02 uuid=0x2a51
-[ts=180672ssb, mod=64 level=2]         def_handle=12 val_handle=13 properties=0x28 uuid=0x2a52
-[ts=180679ssb, mod=64 level=2]         def_handle=15 val_handle=16 properties=0x02 uuid=0x2a08
-[ts=180686ssb, mod=64 level=2]     start=17 end=31 uuid=0x180a
-[ts=180691ssb, mod=64 level=2]     start=32 end=65535 uuid=00000000-0000-1000-1000000000000000
-</pre></div>
-
-
-<p><br></p>
-<h3 id="discover-descriptors-for-each-characteristic-on-peer">Discover descriptors for each characteristic on peer</h3>
-<p>Just as before, the start and end values depend on the specific characteristics discovered.</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">b disc dsc conn=1 start=1 end=5
-b disc dsc conn=1 start=6 end=16
-b disc dsc conn=1 start=17 end=31
-</pre></div>
-
-
-<p><br></p>
-<h3 id="read-an-attribute-belonging-to-the-peer">Read an attribute belonging to the peer</h3>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">b read conn=1 attr=18 attr=21
-</pre></div>
-
-
-<p><br></p>
-<h3 id="write-to-an-attribute-belonging-to-the-peer">Write to an attribute belonging to the peer</h3>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">b write conn=1 attr=3 value=0x01:0x02:0x03
-</pre></div>
-
-
-<p><br></p>
-<h3 id="perform-a-passive-scan">Perform a passive scan</h3>
-<p>This is how you tell your board to listen to all advertisements around it. The duration is specified in ms.</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">b scan dur=1000 disc=gen type=passive filt=no_wl
-</pre></div>
-
-
-<p><br></p>
-                        
-                        <div class="row">
-                            
-
-
-
-<ul class="nav nav-pills" style="margin-bottom: 10px">
-    <li>
-    
-    <a href=../ble_hs/other/functions/ble_uuid_16_to_128/>
-        <span class="fa fa-arrow-left"></span>
-        Previous: ble_uuid_16_to_128
-    </a>
-    
-    </li>
-    <li class="pull-right">
-    
-    <a href=../bletiny/bletiny_GAP/>
-        Next: GAP in bletiny
-        <span class="fa fa-arrow-right"></span>
-    </a>
-    
-    </li>
-</ul>
-                        </div>
-                        <div class="row">
-                            <footer>
-    <div class="row">
-        <div class="col-md-12">
-            
-                <p class="copyright">Copyright &copy; 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p>
-            
-        </div>
-    </div>
-    <div class="copyright-logos">
-        <div class="row">
-            <div class="col-xs-6 text-right">
-                <img src="/img/apache-feather.png" alt="Apache" title="Apache">
-            </div>
-            <div class="col-xs-6 text-left">
-                <img src="/img/apache-logo.png" alt="Apache Incubator" title="Apache Incubator">
-            </div>
-        </div>
-    </div>
-    <div class="row">
-        <div class="col-md-12">
-            <small class="footnote">
-                MyNewt is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
-            </small>
-        </div>
-    </div>
-</footer>
-                        </div>
-                    </div>
-                </div>
-            
-            
-        </div>
-
-        <script src="../../../js/jquery-1.10.2.min.js"></script>
-        <script src="../../../js/bootstrap-3.0.3.min.js"></script>
-        <script src="../../../js/highlight.pack.js"></script>
-        <script src="../../../js/base.js"></script>
-        <script src="../../../js/custom.js"></script>
-
-    </body>
-</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ini_stack/ble_add_cpu/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ini_stack/ble_add_cpu/index.html b/develop/network/ble/ini_stack/ble_add_cpu/index.html
index 9d9a506..92c0070 100644
--- a/develop/network/ble/ini_stack/ble_add_cpu/index.html
+++ b/develop/network/ble/ini_stack/ble_add_cpu/index.html
@@ -346,7 +346,7 @@
                 
   
   
-    <li ><a href="../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ini_stack/ble_consolepkg/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ini_stack/ble_consolepkg/index.html b/develop/network/ble/ini_stack/ble_consolepkg/index.html
index 46bb72f..d890efe 100644
--- a/develop/network/ble/ini_stack/ble_consolepkg/index.html
+++ b/develop/network/ble/ini_stack/ble_consolepkg/index.html
@@ -346,7 +346,7 @@
                 
   
   
-    <li ><a href="../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ini_stack/ble_controller_ini/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ini_stack/ble_controller_ini/index.html b/develop/network/ble/ini_stack/ble_controller_ini/index.html
index c236d8a..24b7435 100644
--- a/develop/network/ble/ini_stack/ble_controller_ini/index.html
+++ b/develop/network/ble/ini_stack/ble_controller_ini/index.html
@@ -346,7 +346,7 @@
                 
   
   
-    <li ><a href="../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ini_stack/ble_devadd/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ini_stack/ble_devadd/index.html b/develop/network/ble/ini_stack/ble_devadd/index.html
index a8ee5c3..d1caef3 100644
--- a/develop/network/ble/ini_stack/ble_devadd/index.html
+++ b/develop/network/ble/ini_stack/ble_devadd/index.html
@@ -346,7 +346,7 @@
                 
   
   
-    <li ><a href="../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ini_stack/ble_host_ini/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ini_stack/ble_host_ini/index.html b/develop/network/ble/ini_stack/ble_host_ini/index.html
index f8196ba..00f6f61 100644
--- a/develop/network/ble/ini_stack/ble_host_ini/index.html
+++ b/develop/network/ble/ini_stack/ble_host_ini/index.html
@@ -346,7 +346,7 @@
                 
   
   
-    <li ><a href="../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ini_stack/ble_ini_intro/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ini_stack/ble_ini_intro/index.html b/develop/network/ble/ini_stack/ble_ini_intro/index.html
index 9840f44..d710750 100644
--- a/develop/network/ble/ini_stack/ble_ini_intro/index.html
+++ b/develop/network/ble/ini_stack/ble_ini_intro/index.html
@@ -346,7 +346,7 @@
                 
   
   
-    <li ><a href="../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ini_stack/ble_mempool/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ini_stack/ble_mempool/index.html b/develop/network/ble/ini_stack/ble_mempool/index.html
index 94f01df..ed861d8 100644
--- a/develop/network/ble/ini_stack/ble_mempool/index.html
+++ b/develop/network/ble/ini_stack/ble_mempool/index.html
@@ -346,7 +346,7 @@
                 
   
   
-    <li ><a href="../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ini_stack/ble_parent_ini/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ini_stack/ble_parent_ini/index.html b/develop/network/ble/ini_stack/ble_parent_ini/index.html
index 7ebed69..62dd305 100644
--- a/develop/network/ble/ini_stack/ble_parent_ini/index.html
+++ b/develop/network/ble/ini_stack/ble_parent_ini/index.html
@@ -346,7 +346,7 @@
                 
   
   
-    <li ><a href="../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/ini_stack/ble_statpkg/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/ini_stack/ble_statpkg/index.html b/develop/network/ble/ini_stack/ble_statpkg/index.html
index 51c3ad3..c13fc4d 100644
--- a/develop/network/ble/ini_stack/ble_statpkg/index.html
+++ b/develop/network/ble/ini_stack/ble_statpkg/index.html
@@ -346,7 +346,7 @@
                 
   
   
-    <li ><a href="../../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bdf51006/develop/network/ble/nimble_setup/index.html
----------------------------------------------------------------------
diff --git a/develop/network/ble/nimble_setup/index.html b/develop/network/ble/nimble_setup/index.html
index 10623d5..b02c927 100644
--- a/develop/network/ble/nimble_setup/index.html
+++ b/develop/network/ble/nimble_setup/index.html
@@ -276,7 +276,7 @@
                 
   
   
-    <li ><a href="../bletiny_api/">bletiny app Usage API</a>
+    <li ><a href="../bletiny/bletiny_api/">bletiny app Usage API</a>
   
   
     </li>