| <h1>nubt app</h1> 
 <button type=button>状态</button>
 <button type=button>开启</button>
 <button type=button>关闭</button>
 
 <button type=button>开始搜索</button>
 
 <button type=button>配对</button>
 
 <button type=button>write</button>
 
 
 <button type=button>connect</button>
 <button type=button>disconnect</button>
 
 
 </div>
 
 
 
 
 
 var gotUuids = function(device) {
 
 var onConnection = function() {
 
 
 var onConnectionLost = function() {
 
 onFail();
 }
 
 window.bluetooth.startConnectionManager(
 console.log, onConnectionLost);
 }
 
 window.bluetooth.connect(onConnection, onFail,                 {
 address:"BF:03:E0:91:90:04",
 uuid:"00001101-0000-1000-8000-00805F9B34FB",
 }
 );
 }
 
 window.bluetooth.getUuids(gotUuids, onFail,"BF:03:E0:91:90:04" );
 }
 
 
 
 
 |