<h2>Table of Contents</h2>
<ul class="toc">
<li>1. <a href="#typedefs-section">Type Definitions</a><ul class="toc">
-<li>1.1. <a href="#BluetoothAddress">BluetoothAddress</a>
+<li>
+ 1.1. <a href="#BluetoothAddress">BluetoothAddress</a>
</li>
-<li>1.2. <a href="#BluetoothUUID">BluetoothUUID</a>
+<li>
+ 1.2. <a href="#BluetoothUUID">BluetoothUUID</a>
</li>
-<li>1.3. <a href="#BluetoothSocketState">BluetoothSocketState</a>
+<li>
+ 1.3. <a href="#BluetoothSocketState">BluetoothSocketState</a>
</li>
-<li>1.4. <a href="#BluetoothProfileType">BluetoothProfileType</a>
+<li>
+ 1.4. <a href="#BluetoothProfileType">BluetoothProfileType</a>
</li>
-<li>1.5. <a href="#BluetoothHealthChannelType">BluetoothHealthChannelType</a>
+<li>
+ 1.5. <a href="#BluetoothHealthChannelType">BluetoothHealthChannelType</a>
</li>
-<li>1.6. <a href="#BluetoothLESolicitationUUID">BluetoothLESolicitationUUID</a>
+<li>
+ 1.6. <a href="#BluetoothLESolicitationUUID">BluetoothLESolicitationUUID</a>
</li>
-<li>1.7. <a href="#BluetoothAdvertisePacketType">BluetoothAdvertisePacketType</a>
+<li>
+ 1.7. <a href="#BluetoothAdvertisePacketType">BluetoothAdvertisePacketType</a>
</li>
-<li>1.8. <a href="#BluetoothAdvertisingState">BluetoothAdvertisingState</a>
+<li>
+ 1.8. <a href="#BluetoothAdvertisingState">BluetoothAdvertisingState</a>
</li>
-<li>1.9. <a href="#BluetoothAdvertisingMode">BluetoothAdvertisingMode</a>
+<li>
+ 1.9. <a href="#BluetoothAdvertisingMode">BluetoothAdvertisingMode</a>
</li>
</ul>
</li>
<tr>
<td><a href="#BluetoothManager">BluetoothManager</a></td>
<td>
-<a href="#BluetoothAdapter">BluetoothAdapter</a> <a href="#BluetoothManager::getDefaultAdapter">getDefaultAdapter</a> ()<br>
- <a href="#BluetoothLEAdapter">BluetoothLEAdapter</a> <a href="#BluetoothManager::getLEAdapter">getLEAdapter</a> ()</td>
+<div>
+<a href="#BluetoothAdapter">BluetoothAdapter</a> <a href="#BluetoothManager::getDefaultAdapter">getDefaultAdapter</a> ()</div>
+<div>
+<a href="#BluetoothLEAdapter">BluetoothLEAdapter</a> <a href="#BluetoothManager::getLEAdapter">getLEAdapter</a> ()</div>
+</td>
</tr>
<tr>
<td><a href="#BluetoothAdapter">BluetoothAdapter</a></td>
-<td>void <a href="#BluetoothAdapter::setName">setName</a> (DOMString name, optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- void <a href="#BluetoothAdapter::setPowered">setPowered</a> (boolean state, optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- void <a href="#BluetoothAdapter::setChangeListener">setChangeListener</a> (<a href="#BluetoothAdapterChangeCallback">BluetoothAdapterChangeCallback</a> listener)<br>
- void <a href="#BluetoothAdapter::unsetChangeListener">unsetChangeListener</a> ()<br>
- void <a href="#BluetoothAdapter::discoverDevices">discoverDevices</a> (<a href="#BluetoothDiscoverDevicesSuccessCallback">BluetoothDiscoverDevicesSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- void <a href="#BluetoothAdapter::stopDiscovery">stopDiscovery</a> (optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- void <a href="#BluetoothAdapter::getKnownDevices">getKnownDevices</a> (<a href="#BluetoothDeviceArraySuccessCallback">BluetoothDeviceArraySuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- void <a href="#BluetoothAdapter::getDevice">getDevice</a> (<a href="#BluetoothAddress">BluetoothAddress</a> address, <a href="#BluetoothDeviceSuccessCallback">BluetoothDeviceSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- void <a href="#BluetoothAdapter::createBonding">createBonding</a> (<a href="#BluetoothAddress">BluetoothAddress</a> address, <a href="#BluetoothDeviceSuccessCallback">BluetoothDeviceSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- void <a href="#BluetoothAdapter::destroyBonding">destroyBonding</a> (<a href="#BluetoothAddress">BluetoothAddress</a> address, optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- void <a href="#BluetoothAdapter::registerRFCOMMServiceByUUID">registerRFCOMMServiceByUUID</a> (<a href="#BluetoothUUID">BluetoothUUID</a> uuid, DOMString name, <a href="#BluetoothServiceSuccessCallback">BluetoothServiceSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- <a href="#BluetoothProfileHandler">BluetoothProfileHandler</a> <a href="#BluetoothAdapter::getBluetoothProfileHandler">getBluetoothProfileHandler</a> (<a href="#BluetoothProfileType">BluetoothProfileType</a> profileType)</td>
+<td>
+<div>void <a href="#BluetoothAdapter::setName">setName</a> (DOMString name, optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+<div class="deprecated">void <a href="#BluetoothAdapter::setPowered">setPowered</a> (boolean state, optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+<div>void <a href="#BluetoothAdapter::setChangeListener">setChangeListener</a> (<a href="#BluetoothAdapterChangeCallback">BluetoothAdapterChangeCallback</a> listener)</div>
+<div>void <a href="#BluetoothAdapter::unsetChangeListener">unsetChangeListener</a> ()</div>
+<div>void <a href="#BluetoothAdapter::discoverDevices">discoverDevices</a> (<a href="#BluetoothDiscoverDevicesSuccessCallback">BluetoothDiscoverDevicesSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+<div>void <a href="#BluetoothAdapter::stopDiscovery">stopDiscovery</a> (optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+<div>void <a href="#BluetoothAdapter::getKnownDevices">getKnownDevices</a> (<a href="#BluetoothDeviceArraySuccessCallback">BluetoothDeviceArraySuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+<div>void <a href="#BluetoothAdapter::getDevice">getDevice</a> (<a href="#BluetoothAddress">BluetoothAddress</a> address, <a href="#BluetoothDeviceSuccessCallback">BluetoothDeviceSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+<div>void <a href="#BluetoothAdapter::createBonding">createBonding</a> (<a href="#BluetoothAddress">BluetoothAddress</a> address, <a href="#BluetoothDeviceSuccessCallback">BluetoothDeviceSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+<div>void <a href="#BluetoothAdapter::destroyBonding">destroyBonding</a> (<a href="#BluetoothAddress">BluetoothAddress</a> address, optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+<div>void <a href="#BluetoothAdapter::registerRFCOMMServiceByUUID">registerRFCOMMServiceByUUID</a> (<a href="#BluetoothUUID">BluetoothUUID</a> uuid, DOMString name, <a href="#BluetoothServiceSuccessCallback">BluetoothServiceSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+<div>
+<a href="#BluetoothProfileHandler">BluetoothProfileHandler</a> <a href="#BluetoothAdapter::getBluetoothProfileHandler">getBluetoothProfileHandler</a> (<a href="#BluetoothProfileType">BluetoothProfileType</a> profileType)</div>
+</td>
</tr>
<tr>
<td><a href="#BluetoothLEAdapter">BluetoothLEAdapter</a></td>
-<td>void <a href="#BluetoothLEAdapter::startScan">startScan</a> (<a href="#BluetoothLEScanCallback">BluetoothLEScanCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- void <a href="#BluetoothLEAdapter::stopScan">stopScan</a> ()<br>
- void <a href="#BluetoothLEAdapter::startAdvertise">startAdvertise</a> (<a href="#BluetoothLEAdvertiseData">BluetoothLEAdvertiseData</a> advertiseData, <a href="#BluetoothAdvertisePacketType">BluetoothAdvertisePacketType</a> packetType, <a href="#BluetoothLEAdvertiseCallback">BluetoothLEAdvertiseCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback, optional <a href="#BluetoothAdvertisingMode">BluetoothAdvertisingMode</a>? mode, optional boolean? connectable)<br>
- void <a href="#BluetoothLEAdapter::stopAdvertise">stopAdvertise</a> ()</td>
+<td>
+<div>void <a href="#BluetoothLEAdapter::startScan">startScan</a> (<a href="#BluetoothLEScanCallback">BluetoothLEScanCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+<div>void <a href="#BluetoothLEAdapter::stopScan">stopScan</a> ()</div>
+<div>void <a href="#BluetoothLEAdapter::startAdvertise">startAdvertise</a> (<a href="#BluetoothLEAdvertiseData">BluetoothLEAdvertiseData</a> advertiseData, <a href="#BluetoothAdvertisePacketType">BluetoothAdvertisePacketType</a> packetType, <a href="#BluetoothLEAdvertiseCallback">BluetoothLEAdvertiseCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback, optional <a href="#BluetoothAdvertisingMode">BluetoothAdvertisingMode</a>? mode, optional boolean? connectable)</div>
+<div>void <a href="#BluetoothLEAdapter::stopAdvertise">stopAdvertise</a> ()</div>
+</td>
</tr>
<tr>
<td><a href="#BluetoothGATTService">BluetoothGATTService</a></td>
</tr>
<tr>
<td><a href="#BluetoothGATTCharacteristic">BluetoothGATTCharacteristic</a></td>
-<td>void <a href="#BluetoothGATTCharacteristic::readValue">readValue</a> (<a href="#ReadValueSuccessCallback">ReadValueSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- void <a href="#BluetoothGATTCharacteristic::writeValue">writeValue</a> (byte[] value, optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- long <a href="#BluetoothGATTCharacteristic::addValueChangeListener">addValueChangeListener</a> (<a href="#ReadValueSuccessCallback">ReadValueSuccessCallback</a> callback)<br>
- void <a href="#BluetoothGATTCharacteristic::removeValueChangeListener">removeValueChangeListener</a> (long watchID)</td>
+<td>
+<div>void <a href="#BluetoothGATTCharacteristic::readValue">readValue</a> (<a href="#ReadValueSuccessCallback">ReadValueSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+<div>void <a href="#BluetoothGATTCharacteristic::writeValue">writeValue</a> (byte[] value, optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+<div>long <a href="#BluetoothGATTCharacteristic::addValueChangeListener">addValueChangeListener</a> (<a href="#ReadValueSuccessCallback">ReadValueSuccessCallback</a> callback)</div>
+<div>void <a href="#BluetoothGATTCharacteristic::removeValueChangeListener">removeValueChangeListener</a> (long watchID)</div>
+</td>
</tr>
<tr>
<td><a href="#BluetoothGATTDescriptor">BluetoothGATTDescriptor</a></td>
-<td>void <a href="#BluetoothGATTDescriptor::readValue">readValue</a> (<a href="#ReadValueSuccessCallback">ReadValueSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- void <a href="#BluetoothGATTDescriptor::writeValue">writeValue</a> (byte[] value, optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</td>
+<td>
+<div>void <a href="#BluetoothGATTDescriptor::readValue">readValue</a> (<a href="#ReadValueSuccessCallback">ReadValueSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+<div>void <a href="#BluetoothGATTDescriptor::writeValue">writeValue</a> (byte[] value, optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+</td>
</tr>
<tr>
<td><a href="#BluetoothLEScanCallback">BluetoothLEScanCallback</a></td>
-<td>void <a href="#BluetoothLEScanCallback::onsuccess">onsuccess</a> (<a href="#BluetoothLEDevice">BluetoothLEDevice</a> device)</td>
+<td><div>void <a href="#BluetoothLEScanCallback::onsuccess">onsuccess</a> (<a href="#BluetoothLEDevice">BluetoothLEDevice</a> device)</div></td>
</tr>
<tr>
<td><a href="#BluetoothLEAdvertiseCallback">BluetoothLEAdvertiseCallback</a></td>
-<td>void <a href="#BluetoothLEAdvertiseCallback::onstate">onstate</a> (<a href="#BluetoothAdvertisingState">BluetoothAdvertisingState</a> state)</td>
+<td><div>void <a href="#BluetoothLEAdvertiseCallback::onstate">onstate</a> (<a href="#BluetoothAdvertisingState">BluetoothAdvertisingState</a> state)</div></td>
</tr>
<tr>
<td><a href="#BluetoothLEConnectChangeCallback">BluetoothLEConnectChangeCallback</a></td>
-<td>void <a href="#BluetoothLEConnectChangeCallback::onconnected">onconnected</a> (<a href="#BluetoothLEDevice">BluetoothLEDevice</a> device)<br>
- void <a href="#BluetoothLEConnectChangeCallback::ondisconnected">ondisconnected</a> (<a href="#BluetoothLEDevice">BluetoothLEDevice</a> device)</td>
+<td>
+<div>void <a href="#BluetoothLEConnectChangeCallback::onconnected">onconnected</a> (<a href="#BluetoothLEDevice">BluetoothLEDevice</a> device)</div>
+<div>void <a href="#BluetoothLEConnectChangeCallback::ondisconnected">ondisconnected</a> (<a href="#BluetoothLEDevice">BluetoothLEDevice</a> device)</div>
+</td>
</tr>
<tr>
<td><a href="#ReadValueSuccessCallback">ReadValueSuccessCallback</a></td>
-<td>void <a href="#ReadValueSuccessCallback::onread">onread</a> (byte[] value)</td>
+<td><div>void <a href="#ReadValueSuccessCallback::onread">onread</a> (byte[] value)</div></td>
</tr>
<tr>
<td><a href="#BluetoothDevice">BluetoothDevice</a></td>
-<td>void <a href="#BluetoothDevice::connectToServiceByUUID">connectToServiceByUUID</a> (<a href="#BluetoothUUID">BluetoothUUID</a> uuid, <a href="#BluetoothSocketSuccessCallback">BluetoothSocketSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</td>
+<td><div>void <a href="#BluetoothDevice::connectToServiceByUUID">connectToServiceByUUID</a> (<a href="#BluetoothUUID">BluetoothUUID</a> uuid, <a href="#BluetoothSocketSuccessCallback">BluetoothSocketSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div></td>
</tr>
<tr>
<td><a href="#BluetoothLEDevice">BluetoothLEDevice</a></td>
-<td>void <a href="#BluetoothLEDevice::connect">connect</a> (optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- void <a href="#BluetoothLEDevice::disconnect">disconnect</a> (optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- <a href="#BluetoothGATTService">BluetoothGATTService</a> <a href="#BluetoothLEDevice::getService">getService</a> (<a href="#BluetoothUUID">BluetoothUUID</a> uuid)<br>
- long <a href="#BluetoothLEDevice::addConnectStateChangeListener">addConnectStateChangeListener</a> (<a href="#BluetoothLEConnectChangeCallback">BluetoothLEConnectChangeCallback</a> listener)<br>
- void <a href="#BluetoothLEDevice::removeConnectStateChangeListener">removeConnectStateChangeListener</a> (long watchID)</td>
+<td>
+<div>void <a href="#BluetoothLEDevice::connect">connect</a> (optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+<div>void <a href="#BluetoothLEDevice::disconnect">disconnect</a> (optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+<div>
+<a href="#BluetoothGATTService">BluetoothGATTService</a> <a href="#BluetoothLEDevice::getService">getService</a> (<a href="#BluetoothUUID">BluetoothUUID</a> uuid)</div>
+<div>
+<a href="#BluetoothUUID">BluetoothUUID</a>[] <a href="#BluetoothLEDevice::getServiceAllUuids">getServiceAllUuids</a> ()</div>
+<div>long <a href="#BluetoothLEDevice::addConnectStateChangeListener">addConnectStateChangeListener</a> (<a href="#BluetoothLEConnectChangeCallback">BluetoothLEConnectChangeCallback</a> listener)</div>
+<div>void <a href="#BluetoothLEDevice::removeConnectStateChangeListener">removeConnectStateChangeListener</a> (long watchID)</div>
+</td>
</tr>
<tr>
<td><a href="#BluetoothSocket">BluetoothSocket</a></td>
-<td>unsigned long <a href="#BluetoothSocket::writeData">writeData</a> (byte[] data)<br>
- byte[] <a href="#BluetoothSocket::readData">readData</a> ()<br>
- void <a href="#BluetoothSocket::close">close</a> ()</td>
+<td>
+<div>unsigned long <a href="#BluetoothSocket::writeData">writeData</a> (byte[] data)</div>
+<div>byte[] <a href="#BluetoothSocket::readData">readData</a> ()</div>
+<div>void <a href="#BluetoothSocket::close">close</a> ()</div>
+</td>
</tr>
<tr>
<td><a href="#BluetoothClass">BluetoothClass</a></td>
-<td>boolean <a href="#BluetoothClass::hasService">hasService</a> (unsigned short service)</td>
+<td><div>boolean <a href="#BluetoothClass::hasService">hasService</a> (unsigned short service)</div></td>
</tr>
<tr>
<td><a href="#BluetoothClassDeviceMajor">BluetoothClassDeviceMajor</a></td>
</tr>
<tr>
<td><a href="#BluetoothServiceHandler">BluetoothServiceHandler</a></td>
-<td>void <a href="#BluetoothServiceHandler::unregister">unregister</a> (optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</td>
+<td><div>void <a href="#BluetoothServiceHandler::unregister">unregister</a> (optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div></td>
</tr>
<tr>
<td><a href="#BluetoothProfileHandler">BluetoothProfileHandler</a></td>
</tr>
<tr>
<td><a href="#BluetoothHealthProfileHandler">BluetoothHealthProfileHandler</a></td>
-<td>void <a href="#BluetoothHealthProfileHandler::registerSinkApplication">registerSinkApplication</a> (unsigned short dataType, DOMString name, <a href="#BluetoothHealthApplicationSuccessCallback">BluetoothHealthApplicationSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)<br>
- void <a href="#BluetoothHealthProfileHandler::connectToSource">connectToSource</a> (<a href="#BluetoothDevice">BluetoothDevice</a> peer, <a href="#BluetoothHealthApplication">BluetoothHealthApplication</a> application, <a href="#BluetoothHealthChannelSuccessCallback">BluetoothHealthChannelSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</td>
+<td>
+<div>void <a href="#BluetoothHealthProfileHandler::registerSinkApplication">registerSinkApplication</a> (unsigned short dataType, DOMString name, <a href="#BluetoothHealthApplicationSuccessCallback">BluetoothHealthApplicationSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+<div>void <a href="#BluetoothHealthProfileHandler::connectToSource">connectToSource</a> (<a href="#BluetoothDevice">BluetoothDevice</a> peer, <a href="#BluetoothHealthApplication">BluetoothHealthApplication</a> application, <a href="#BluetoothHealthChannelSuccessCallback">BluetoothHealthChannelSuccessCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div>
+</td>
</tr>
<tr>
<td><a href="#BluetoothHealthApplication">BluetoothHealthApplication</a></td>
-<td>void <a href="#BluetoothHealthApplication::unregister">unregister</a> (optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</td>
+<td><div>void <a href="#BluetoothHealthApplication::unregister">unregister</a> (optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback)</div></td>
</tr>
<tr>
<td><a href="#BluetoothHealthChannel">BluetoothHealthChannel</a></td>
-<td>void <a href="#BluetoothHealthChannel::close">close</a> ()<br>
- unsigned long <a href="#BluetoothHealthChannel::sendData">sendData</a> (byte[] data)<br>
- void <a href="#BluetoothHealthChannel::setListener">setListener</a> (<a href="#BluetoothHealthChannelChangeCallback">BluetoothHealthChannelChangeCallback</a> listener)<br>
- void <a href="#BluetoothHealthChannel::unsetListener">unsetListener</a> ()</td>
+<td>
+<div>void <a href="#BluetoothHealthChannel::close">close</a> ()</div>
+<div>unsigned long <a href="#BluetoothHealthChannel::sendData">sendData</a> (byte[] data)</div>
+<div>void <a href="#BluetoothHealthChannel::setListener">setListener</a> (<a href="#BluetoothHealthChannelChangeCallback">BluetoothHealthChannelChangeCallback</a> listener)</div>
+<div>void <a href="#BluetoothHealthChannel::unsetListener">unsetListener</a> ()</div>
+</td>
</tr>
<tr>
<td><a href="#BluetoothAdapterChangeCallback">BluetoothAdapterChangeCallback</a></td>
-<td>void <a href="#BluetoothAdapterChangeCallback::onstatechanged">onstatechanged</a> (boolean powered)<br>
- void <a href="#BluetoothAdapterChangeCallback::onnamechanged">onnamechanged</a> (DOMString name)<br>
- void <a href="#BluetoothAdapterChangeCallback::onvisibilitychanged">onvisibilitychanged</a> (boolean visible)</td>
+<td>
+<div>void <a href="#BluetoothAdapterChangeCallback::onstatechanged">onstatechanged</a> (boolean powered)</div>
+<div>void <a href="#BluetoothAdapterChangeCallback::onnamechanged">onnamechanged</a> (DOMString name)</div>
+<div>void <a href="#BluetoothAdapterChangeCallback::onvisibilitychanged">onvisibilitychanged</a> (boolean visible)</div>
+</td>
</tr>
<tr>
<td><a href="#BluetoothDeviceSuccessCallback">BluetoothDeviceSuccessCallback</a></td>
-<td>void <a href="#BluetoothDeviceSuccessCallback::onsuccess">onsuccess</a> (<a href="#BluetoothDevice">BluetoothDevice</a> device)</td>
+<td><div>void <a href="#BluetoothDeviceSuccessCallback::onsuccess">onsuccess</a> (<a href="#BluetoothDevice">BluetoothDevice</a> device)</div></td>
</tr>
<tr>
<td><a href="#BluetoothDeviceArraySuccessCallback">BluetoothDeviceArraySuccessCallback</a></td>
-<td>void <a href="#BluetoothDeviceArraySuccessCallback::onsuccess">onsuccess</a> (<a href="#BluetoothDevice">BluetoothDevice</a>[] devices)</td>
+<td><div>void <a href="#BluetoothDeviceArraySuccessCallback::onsuccess">onsuccess</a> (<a href="#BluetoothDevice">BluetoothDevice</a>[] devices)</div></td>
</tr>
<tr>
<td><a href="#BluetoothDiscoverDevicesSuccessCallback">BluetoothDiscoverDevicesSuccessCallback</a></td>
-<td>void <a href="#BluetoothDiscoverDevicesSuccessCallback::onstarted">onstarted</a> ()<br>
- void <a href="#BluetoothDiscoverDevicesSuccessCallback::ondevicefound">ondevicefound</a> (<a href="#BluetoothDevice">BluetoothDevice</a> device)<br>
- void <a href="#BluetoothDiscoverDevicesSuccessCallback::ondevicedisappeared">ondevicedisappeared</a> (<a href="#BluetoothAddress">BluetoothAddress</a> address)<br>
- void <a href="#BluetoothDiscoverDevicesSuccessCallback::onfinished">onfinished</a> (<a href="#BluetoothDevice">BluetoothDevice</a>[] foundDevices)</td>
+<td>
+<div>void <a href="#BluetoothDiscoverDevicesSuccessCallback::onstarted">onstarted</a> ()</div>
+<div>void <a href="#BluetoothDiscoverDevicesSuccessCallback::ondevicefound">ondevicefound</a> (<a href="#BluetoothDevice">BluetoothDevice</a> device)</div>
+<div>void <a href="#BluetoothDiscoverDevicesSuccessCallback::ondevicedisappeared">ondevicedisappeared</a> (<a href="#BluetoothAddress">BluetoothAddress</a> address)</div>
+<div>void <a href="#BluetoothDiscoverDevicesSuccessCallback::onfinished">onfinished</a> (<a href="#BluetoothDevice">BluetoothDevice</a>[] foundDevices)</div>
+</td>
</tr>
<tr>
<td><a href="#BluetoothSocketSuccessCallback">BluetoothSocketSuccessCallback</a></td>
-<td>void <a href="#BluetoothSocketSuccessCallback::onsuccess">onsuccess</a> (<a href="#BluetoothSocket">BluetoothSocket</a> socket)</td>
+<td><div>void <a href="#BluetoothSocketSuccessCallback::onsuccess">onsuccess</a> (<a href="#BluetoothSocket">BluetoothSocket</a> socket)</div></td>
</tr>
<tr>
<td><a href="#BluetoothServiceSuccessCallback">BluetoothServiceSuccessCallback</a></td>
-<td>void <a href="#BluetoothServiceSuccessCallback::onsuccess">onsuccess</a> (<a href="#BluetoothServiceHandler">BluetoothServiceHandler</a> handler)</td>
+<td><div>void <a href="#BluetoothServiceSuccessCallback::onsuccess">onsuccess</a> (<a href="#BluetoothServiceHandler">BluetoothServiceHandler</a> handler)</div></td>
</tr>
<tr>
<td><a href="#BluetoothHealthApplicationSuccessCallback">BluetoothHealthApplicationSuccessCallback</a></td>
-<td>void <a href="#BluetoothHealthApplicationSuccessCallback::onsuccess">onsuccess</a> (<a href="#BluetoothHealthApplication">BluetoothHealthApplication</a> application)</td>
+<td><div>void <a href="#BluetoothHealthApplicationSuccessCallback::onsuccess">onsuccess</a> (<a href="#BluetoothHealthApplication">BluetoothHealthApplication</a> application)</div></td>
</tr>
<tr>
<td><a href="#BluetoothHealthChannelSuccessCallback">BluetoothHealthChannelSuccessCallback</a></td>
-<td>void <a href="#BluetoothHealthChannelSuccessCallback::onsuccess">onsuccess</a> (<a href="#BluetoothHealthChannel">BluetoothHealthChannel</a> channel)</td>
+<td><div>void <a href="#BluetoothHealthChannelSuccessCallback::onsuccess">onsuccess</a> (<a href="#BluetoothHealthChannel">BluetoothHealthChannel</a> channel)</div></td>
</tr>
<tr>
<td><a href="#BluetoothHealthChannelChangeCallback">BluetoothHealthChannelChangeCallback</a></td>
-<td>void <a href="#BluetoothHealthChannelChangeCallback::onmessage">onmessage</a> (byte[] data)<br>
- void <a href="#BluetoothHealthChannelChangeCallback::onclose">onclose</a> ()</td>
+<td>
+<div>void <a href="#BluetoothHealthChannelChangeCallback::onmessage">onmessage</a> (byte[] data)</div>
+<div>void <a href="#BluetoothHealthChannelChangeCallback::onclose">onclose</a> ()</div>
+</td>
</tr>
</tbody>
</table>
The BluetoothLEServiceData interface is a service specific data container of Bluetooth LE device.
</div>
<pre class="webidl prettyprint"> [Constructor(DOMString uuid, DOMString data)]
- interface BluetoothLEServiceData {
+ interface BluetoothLEServiceData {
attribute <a href="#BluetoothUUID">BluetoothUUID</a> uuid;
attribute DOMString data;
};</pre>
</p>
<div class="constructors">
<h4 id="BluetoothLEServiceData::constructor">Constructors</h4>
-<dl><pre class="webidl prettyprint">BluetoothLEServiceData(DOMString uuid, DOMString data);</pre></dl>
+<dl>
+<pre class="webidl prettyprint">BluetoothLEServiceData(DOMString uuid, DOMString data);</pre>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> // Creates a serviceData.
+ var service = new tizen.BluetoothLEServiceData("c500-11e5", "0x1811");
+ </pre>
+</div>
+</dl>
</div>
<div class="attributes">
<h4>Attributes</h4>
Since: </span>
2.3.1
</p>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> // Creates a serviceData.
+ var service = new tizen.BluetoothLEServiceData("c500-11e5", "0x1811");
+ service.uuid = "f236-41a4";
+ </pre>
+</div>
</li>
<li class="attribute" id="BluetoothLEServiceData::data">
<span class="attrName"><span class="type">DOMString </span><span class="name">data</span></span><div class="brief">
Since: </span>
2.3.1
</p>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> // Creates a serviceData.
+ var service = new tizen.BluetoothLEServiceData("c500-11e5", "0x1811");
+ service.data = "0x1815";
+ </pre>
+</div>
</li>
</ul>
</div>
Since: </span>
2.3.1
</p>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> // Creates a manufacturerData.
+ var manufacture = new tizen.BluetoothLEManufacturerData("127", "0x0057");
+ manufacturer.id = "129";
+ </pre>
+</div>
</li>
<li class="attribute" id="BluetoothLEManufacturerData::data">
<span class="attrName"><span class="type">DOMString </span><span class="name">data</span></span><div class="brief">
Since: </span>
2.3.1
</p>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> // Creates a manufacturerData.
+ var manufacture = new tizen.BluetoothLEManufacturerData("127", "0x0057");
+ manufacturer.data = "0x0059"
+ </pre>
+</div>
</li>
</ul>
</div>
This dictionary is used as an input parameter of the BluetoothLEAdvertiseData constructor.
</p>
</div>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var advertData = { includeName : false, uuids: ["f236-41a4"], solicitationuuids: ["5857-4d3f"],
+ appearance: 192, includeTxPowerLevel: false }
+ </pre>
+</div>
</div>
<div class="interface" id="BluetoothLEAdvertiseData">
<a class="backward-compatibility-anchor" name="::Bluetooth::BluetoothLEAdvertiseData"></a><h3>2.5. BluetoothLEAdvertiseData</h3>
This represents the data to be advertised as well as the scan response data for active scans.
</p>
</div>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var advertData = { includeName : false, uuids: ["f236-41a4"], solicitationuuids: ["5857-4d3f"],
+ appearance: 192, includeTxPowerLevel: false }
+ var advertise = new tizen.BluetoothLEAdvertiseData(advertData);
+ </pre>
+</div>
<div class="constructors">
<h4 id="BluetoothLEAdvertiseData::constructor">Constructors</h4>
<dl><pre class="webidl prettyprint">BluetoothLEAdvertiseData(optional <a href="#BluetoothLEAdvertiseDataInit">BluetoothLEAdvertiseDataInit</a>? init);</pre></dl>
Since: </span>
2.3.1
</p>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var advertise = new tizen.BluetoothLEAdvertiseData();
+ advertise.includeName = true;
+ </pre>
+</div>
</li>
<li class="attribute" id="BluetoothLEAdvertiseData::uuids">
<span class="attrName"><span class="type">BluetoothUUID[]
Since: </span>
2.3.1
</p>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var advertise = new tizen.BluetoothLEAdvertiseData();
+ advertise.uuids = ["180d"];
+ </pre>
+</div>
</li>
<li class="attribute" id="BluetoothLEAdvertiseData::solicitationuuids">
<span class="attrName"><span class="type">BluetoothLESolicitationUUID[]
Since: </span>
2.3.1
</p>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var advertise = new tizen.BluetoothLEAdvertiseData();
+ advertise.solicitationuuids = ["180f"];
+ </pre>
+</div>
</li>
<li class="attribute" id="BluetoothLEAdvertiseData::appearance">
<span class="attrName"><span class="type">unsigned long </span><span class="name">appearance</span><span class="optional"> [nullable]</span></span><div class="brief">
Since: </span>
2.3.1
</p>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var advertise = new tizen.BluetoothLEAdvertiseData();
+ advertise.appearance = 192;
+ </pre>
+</div>
</li>
<li class="attribute" id="BluetoothLEAdvertiseData::includeTxPowerLevel">
<span class="attrName"><span class="type">boolean </span><span class="name">includeTxPowerLevel</span><span class="optional"> [nullable]</span></span><div class="brief">
Since: </span>
2.3.1
</p>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var advertise = new tizen.BluetoothLEAdvertiseData();
+ advertise.includeTxPowerLevel = true;
+ </pre>
+</div>
</li>
<li class="attribute" id="BluetoothLEAdvertiseData::serviceData">
-<span class="attrName"><span class="type">BluetoothLEServiceData[]
- </span><span class="name">serviceData</span><span class="optional"> [nullable]</span></span><div class="brief">
+<span class="attrName"><span class="type">BluetoothLEServiceData </span><span class="name">serviceData</span><span class="optional"> [nullable]</span></span><div class="brief">
The service data for advertise or scan response data.
</div>
<p><span class="version">
Since: </span>
2.3.1
</p>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var advertise = new tizen.BluetoothLEAdvertiseData();
+ var service = new tizen.BluetoothLEServiceData("c500-11e5", "0x1811");
+ advertise.serviceData = service;
+ </pre>
+</div>
</li>
<li class="attribute" id="BluetoothLEAdvertiseData::manufacturerData">
<span class="attrName"><span class="type">BluetoothLEManufacturerData </span><span class="name">manufacturerData</span><span class="optional"> [nullable]</span></span><div class="brief">
Since: </span>
2.3.1
</p>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var advertise = new tizen.BluetoothLEAdvertiseData();
+ var manufacture = new tizen.BluetoothLEManufacturerData("127", "0x0057");
+ advertise.manufacturerData = manufacture;
+ </pre>
+</div>
</li>
</ul>
</div>
Since: </span>
2.3.1
</p>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> console.log(tizen.bluetooth.deviceMajor);
+ </pre>
+</div>
</li>
<li class="attribute" id="BluetoothManager::deviceMinor">
<span class="attrName"><span class="readonly"> readonly
Since: </span>
2.3.1
</p>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> console.log(tizen.bluetooth.deviceMinor);
+ </pre>
+</div>
</li>
<li class="attribute" id="BluetoothManager::deviceService">
<span class="attrName"><span class="readonly"> readonly
Since: </span>
2.3.1
</p>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> console.log(tizen.bluetooth.deviceService);
+ </pre>
+</div>
</li>
</ul>
</div>
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.gap</em> <em>(public level)</em> has been deprecated since 2.4.
-Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
+ <em>http://tizen.org/privilege/bluetooth.gap</em> <em>(public level)</em> has been deprecated since 3.0.
+Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="returntype">
<p><span class="return">Return value:</span></p>
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<p><span class="remark"> Remark : </span>
optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback,
optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
-
-
void registerRFCOMMServiceByUUID(<a href="#BluetoothUUID">BluetoothUUID</a> uuid,
DOMString name,
<a href="#BluetoothServiceSuccessCallback">BluetoothServiceSuccessCallback</a> successCallback,
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<p><span class="remark"> Remark : </span>
</pre>
</div>
</dd>
-<dt class="method" id="BluetoothAdapter::setPowered">
+<dt class="deprecated method" id="BluetoothAdapter::setPowered">
<a class="backward-compatibility-anchor" name="::Bluetooth::BluetoothAdapter::setPowered"></a><code><b><span class="methodName">setPowered</span></b></code>
</dt>
-<dd>
+<dd class="deprecated">
<div class="brief">
Sets the state of a Bluetooth adapter to on or off by sending a request to Bluetooth hardware to change the power state.
For most Bluetooth actions, the Bluetooth adapter must be powered on.
</div>
-<div class="deprecated"><p><font color="red"><i><b>Deprecated.</b>
- Deprecated since 2.3. Instead, let the user turn on/off Bluetooth through the Settings application. see the <a href="https://developer.tizen.org/development/tutorials/web-application/tizen-features/network/bluetooth">Bluetooth Tutorial</a>.</i></font></p></div>
+<p class="deprecated"><b>Deprecated.</b>
+ Deprecated since 2.3. Instead, let the user turn on/off Bluetooth through the Settings application. See <a href="https://developer.tizen.org/development/tutorials/web-application/tizen-features/network/bluetooth"">Managing Bluetooth Tutorial</a>.
+ </p>
<div class="synopsis"><pre class="signature prettyprint">void setPowered(boolean state, optional <a href="tizen.html#SuccessCallback">SuccessCallback</a>? successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback);
</pre></div>
<p><span class="version">
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<p><span class="remark"> Remark : </span>
<p><span class="privilege">
Privilege: </span>
http://tizen.org/privilege/bluetooth
- </p>
+ </p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.gap</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.gap</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
<p><span class="privilege">
Privilege: </span>
http://tizen.org/privilege/bluetooth
- </p>
+ </p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.gap</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.gap</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.gap</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.gap</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.gap</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.gap</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.gap</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.gap</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> function onBondingSuccess(device) {
console.log("Device Name:" + device.name);
console.log("Device Address:" + device.address);
- console.log("Device Service UUIDs:" + device.uuids.join("<br>"));
+ console.log("Device Service UUIDs:" + device.uuids.join("\n"));
}
function onError(e) {
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.gap</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.gap</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.spp</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.spp</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
</li>
</ul>
</div>
+<div class="returntype">
+<p><span class="return">Return value:</span></p>
+ BluetoothProfileHandler Represents the Bluetooth profile handle.
+ </div>
<div class="exceptionlist">
<p><span class="except">Exceptions:</span></p>
<ul class="exception"><li>WebAPIException<ul>
</div>
<pre class="webidl prettyprint"> [NoInterfaceObject] interface BluetoothLEAdapter {
void startScan(<a href="#BluetoothLEScanCallback">BluetoothLEScanCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+
void stopScan() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+
void startAdvertise(<a href="#BluetoothLEAdvertiseData">BluetoothLEAdvertiseData</a> advertiseData, <a href="#BluetoothAdvertisePacketType">BluetoothAdvertisePacketType</a> packetType, <a href="#BluetoothLEAdvertiseCallback">BluetoothLEAdvertiseCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback, optional <a href="#BluetoothAdvertisingMode">BluetoothAdvertisingMode</a>? mode, optional boolean? connectable) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+
void stopAdvertise() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
};</pre>
<p><span class="version">
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
</div>
<div class="example">
<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var adapter = tizen.bluetooth.getLEAdapter();
- adapter.startScan({
- onsuccess: function(device) {
+ adapter.startScan(
+ function onsuccess(device) {
console.log("[Found device] address: " + device.address);
}
- });
+ );
</pre>
</div>
</dd>
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="exceptionlist">
</div>
<div class="example">
<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var adapter = tizen.bluetooth.getLEAdapter();
- adapter.startScan({
- onsuccess: function(device) {
+ adapter.startScan(
+ function onsuccess(device) {
if (device.address == "11:22:33:44:55:66") {
console.log("Found device: " + device.name);
adapter.stopScan();
}
}
- });
+ );
</pre>
</div>
</dd>
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
</div>
<div class="example">
<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var adapter = tizen.bluetooth.getLEAdapter();
- var battery_svc_uuid_16 = "180f"; // the service UUID, 16-bit UUID or 128-bit UUID is supported. (e.g. 180F, 0000180F-0000-1000-8000-00805F9B34FB)
- var heart_rate_svc_uuid_16 = "180d"; // the service solicitation UUID, 16-bit UUID or 128-bit UUID is supported. (e.g. 180F, 0000180F-0000-1000-8000-00805F9B34FB)
+ var battery_svc_uuid_16 = "180f"; // the service UUID, 16-bit UUID is supported. (e.g. 180f)
+ var heart_rate_svc_uuid_16 = "180d"; // the service solicitation UUID, 16-bit UUID is supported. (e.g. 180d)
var advertiseOptions = {
includeName: true, // Whether the device name should be included
includeTxPowerLevel: true, // Whether the transmission power level should be included
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="exceptionlist">
</div>
<div class="example">
<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var adapter = tizen.bluetooth.getLEAdapter();
- var battery_svc_uuid_16 = "180f"; // the service UUID, 16-bit UUID or 128-bit UUID is supported. (e.g. 180F, 0000180F-0000-1000-8000-00805F9B34FB)
- var heart_rate_svc_uuid_16 = "180d"; // the service solicitation UUID, 16-bit UUID or 128-bit UUID is supported. (e.g. 180F, 0000180F-0000-1000-8000-00805F9B34FB)
+ var battery_svc_uuid_16 = "180f"; // the service UUID, 16-bit UUID is supported. (e.g. 180f)
+ var heart_rate_svc_uuid_16 = "180d"; // the service solicitation UUID, 16-bit UUID is supported. (e.g. 180d)
var advertiseOptions = {
includeName: true, // Whether the device name should be included
includeTxPowerLevel: true, // Whether the transmission power level should be included
Since: </span>
2.3.1
</p>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> function onconnected(device) {
+ console.log("Connected to device");
+ var service = device.getService(device.uuids[0]);
+ console.log("Service got");
+ }
+
+ var adapter = tizen.bluetooth.getLEAdapter();
+ adapter.startScan(
+ function onsuccess(device) {
+ console.log("[Found device] address: " + device.address);
+ device.connect(onconnected.bind(null, device), onerror);
+ });
+
+ </pre>
+</div>
<div class="attributes">
<h4>Attributes</h4>
<ul>
Since: </span>
2.3.1
</p>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var service = device.getService(device.uuids[0]);
+ console.log("Service UUID " + service.uuid);
+
+ </pre>
+</div>
</li>
<li class="attribute" id="BluetoothGATTService::services">
<span class="attrName"><span class="readonly"> readonly
Since: </span>
2.3.1
</p>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var service = device.getService(device.uuids[0]);
+ for (var i = 0; i service.services.length; ++i) {
+ console.log("Subservices UUID " + service.services[i].uuid);
+ }
+
+ </pre>
+</div>
</li>
<li class="attribute" id="BluetoothGATTService::characteristics">
<span class="attrName"><span class="readonly"> readonly
Since: </span>
2.3.1
</p>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var service = device.getService(device.uuids[0]);
+ for (var i = 0; i service.characteristics.length; ++i) {
+ console.log("Subservices UUID " + service.characteristics[i].isWritable);
+ }
+
+ </pre>
+</div>
</li>
</ul>
</div>
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
}
var adapter = tizen.bluetooth.getLEAdapter();
- adapter.startScan({
- onsuccess: function(device) {
+ adapter.startScan(
+ function onsuccess(device) {
if (device.address == "11:22:33:44:55:66") {
console.log("Found device: " + device.name);
proccessDevice(device);
}
}
- });
+ );
</pre>
</div>
</dd>
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 2.4.
-Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
+ <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 3.0.
+Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
}
var adapter = tizen.bluetooth.getLEAdapter();
- adapter.startScan({
- onsuccess: function(device) {
+ adapter.startScan(
+ function onsuccess(device) {
if (device.address == "11:22:33:44:55:66") {
console.log("Found device: " + device.name);
proccessDevice(device);
}
}
- });
+ );
</pre>
</div>
</dd>
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
}
var adapter = tizen.bluetooth.getLEAdapter();
- adapter.startScan({
- onsuccess: function(device) {
+ adapter.startScan(
+ function onsuccess(device) {
if (device.address == "11:22:33:44:55:66") {
console.log("Found device: " + device.name);
adapter.stopScan();
proccessDevice(device);
}
}
- });
+ );
</pre>
</div>
</dd>
Since: </span>
2.3.1
</p>
+<p><span class="remark"> Remark : </span>
+ Example of using can be find at <a href="bluetooth.html#BluetoothGATTCharacteristic::addValueChangeListener">addValueChangeListener</a> code example.
+ </p>
<div class="parameters">
<p><span class="param">Parameters:</span></p>
<ul>
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
}
var adapter = tizen.bluetooth.getLEAdapter();
- adapter.startScan({
- onsuccess: function(device) {
+ adapter.startScan(
+ function onsuccess(device) {
if (device.address == "11:22:33:44:55:66") {
console.log("Found device: " + device.name);
proccessDevice(device);
}
}
- });
+ );
</pre>
</div>
</dd>
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
}
var adapter = tizen.bluetooth.getLEAdapter();
- adapter.startScan({
- onsuccess: function(device) {
+ adapter.startScan(
+ function onsuccess(device) {
if (device.address == "11:22:33:44:55:66") {
console.log("Found device: " + device.name);
proccessDevice(device);
}
}
- });
+ );
</pre>
</div>
</dd>
<a class="backward-compatibility-anchor" name="::Bluetooth::BluetoothLEScanCallback"></a><h3>2.12. BluetoothLEScanCallback</h3>
<div class="brief">
Bluetooth scanning process interface that defines the success callback for <em>BluetoothLEAdapter.startScan()</em> </div>
-<pre class="webidl prettyprint"> [Callback, NoInterfaceObject] interface BluetoothLEScanCallback {
+<pre class="webidl prettyprint"> [Callback=FunctionOnly, NoInterfaceObject] interface BluetoothLEScanCallback {
void onsuccess(<a href="#BluetoothLEDevice">BluetoothLEDevice</a> device);
};</pre>
<p><span class="version">
Since: </span>
2.3.1
</p>
+<p><span class="remark"> Remark : </span>
+ Example of using can be find at <a href="bluetooth.html#BluetoothLEAdapter::startScan">startScan</a> code example.
+ </p>
<div class="methods">
<h4>Methods</h4>
<dl>
Since: </span>
2.3.1
</p>
+<p><span class="remark"> Remark : </span>
+ Example of using can be find at <a href="bluetooth.html#BluetoothLEAdapter::startAdvertise">startAdvertise</a> code example.
+ </p>
<div class="methods">
<h4>Methods</h4>
<dl>
Since: </span>
2.3.1
</p>
+<p><span class="remark"> Remark : </span>
+ Example of using can be find at <a href="bluetooth.html#BluetoothLEDevice::addConnectStateChangeListener">addConnectStateChangeListener</a> code example.
+ </p>
<div class="methods">
<h4>Methods</h4>
<dl>
Since: </span>
2.3.1
</p>
+<p><span class="remark"> Remark : </span>
+ Example of using can be find at <a href="#BluetoothGATTCharacteristic::readValue">BluetoothGATTCharacteristic.readValue()</a> and <a href="#BluetoothGATTDescriptor::readValue">BluetoothGATTDescriptor.readValue()</a> code examples.
+ </p>
<div class="methods">
<h4>Methods</h4>
<dl>
var uuids = device.uuids;
var services = "";
for (var i = 0; i < uuids.length; i++) {
- services += uuids[i] + "<br>";
+ services += uuids[i] + "\n";
}
console.log ("Services found: " + services);
if (uuids.indexOf(CHAT_SERVICE_UUID) != -1) {
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.spp</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.spp</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
<a href="#BluetoothGATTService">BluetoothGATTService</a> getService(<a href="#BluetoothUUID">BluetoothUUID</a> uuid) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ <a href="#BluetoothUUID">BluetoothUUID</a>[] getServiceAllUuids() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+
long addConnectStateChangeListener(<a href="#BluetoothLEConnectChangeCallback">BluetoothLEConnectChangeCallback</a> listener) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
void removeConnectStateChangeListener(long watchID);
</p>
<div class="example">
<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var adapter = tizen.bluetooth.getLEAdapter();
- adapter.startScan({
- onsuccess: function(device) {
+ adapter.startScan(
+ function onsuccess(device) {
console.log("Found device: " + device.address);
}
- });
+ );
</pre>
</div>
</li>
</p>
<div class="example">
<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var adapter = tizen.bluetooth.getLEAdapter();
- adapter.startScan({
- onsuccess: function(device) {
+ adapter.startScan(
+ function onsuccess(device) {
console.log("Found device: " + device.name);
}
- });
+ );
</pre>
</div>
</li>
<li class="attribute" id="BluetoothLEDevice::txpowerlevel">
<span class="attrName"><span class="readonly"> readonly
-</span><span class="type">unsigned long </span><span class="name">txpowerlevel</span><span class="optional"> [nullable]</span></span><div class="brief">
+</span><span class="type">long </span><span class="name">txpowerlevel</span><span class="optional"> [nullable]</span></span><div class="brief">
The transmission power level of the Bluetooth LE device from the scan result information.
</div>
<p><span class="version">
</p>
<div class="example">
<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var adapter = tizen.bluetooth.getLEAdapter();
- adapter.startScan({
- onsuccess: function(device) {
+ adapter.startScan(
+ function onsuccess(device) {
console.log("Found device: " + device.txpowerlevel);
}
- });
+ );
</pre>
</div>
</li>
</p>
<div class="example">
<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var adapter = tizen.bluetooth.getLEAdapter();
- adapter.startScan({
- onsuccess: function(device) {
+ adapter.startScan(
+ function onsuccess(device) {
console.log("Found device: " + device.appearance);
}
- });
+ );
</pre>
</div>
</li>
<span class="attrName"><span class="readonly"> readonly
</span><span class="type">BluetoothUUID[]
</span><span class="name">uuids</span><span class="optional"> [nullable]</span></span><div class="brief">
- The list of 128 bit service UUIDs available on this remote device.
+ The list of service UUIDs from scan result.
</div>
<p><span class="version">
Since: </span>
</p>
<div class="example">
<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var adapter = tizen.bluetooth.getLEAdapter();
- adapter.startScan({
- onsuccess: function(device) {
+ adapter.startScan(
+ function onsuccess(device) {
var uuids = device.uuids;
var services = "";
for (var i = 0; i < uuids.length; i++) {
}
console.log ("Service found: " + services);
}
- });
+ );
</pre>
</div>
</li>
</p>
<div class="example">
<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var adapter = tizen.bluetooth.getLEAdapter();
- adapter.startScan({
- onsuccess: function(device) {
+ adapter.startScan(
+ function onsuccess(device) {
var uuids = device.solicitationuuids;
var services = "";
for (var i = 0; i < uuids.length; i++) {
}
console.log ("Service solicitations found: " + services);
}
- });
+ );
</pre>
</div>
</li>
</p>
<div class="example">
<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var adapter = tizen.bluetooth.getLEAdapter();
- adapter.startScan({
- onsuccess: function(device) {
+ adapter.startScan(
+ function onsuccess(device) {
var serviceData = device.serviceData;
var data = "";
for (var i = 0; i < serviceData.length; i++) {
}
console.log ("Service data found: " + data);
}
- });
+ );
</pre>
</div>
</li>
</p>
<div class="example">
<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var adapter = tizen.bluetooth.getLEAdapter();
- adapter.startScan({
- onsuccess: function(device) {
+ adapter.startScan(
+ function onsuccess(device) {
var manufacturerData = device.manufacturerData;
console.log ("Manufacture id: " + manufacturerData.id);
console.log ("Manufacture data: " + manufacturerData.data);
}
- });
+ );
</pre>
</div>
</li>
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.spp</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.spp</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
}
var adapter = tizen.bluetooth.getLEAdapter();
- adapter.startScan({
- onsuccess: function(device) {
+ adapter.startScan(
+ function onsuccess(device) {
if (device.address == "11:22:33:44:55:66") {
console.log("Found device: " + device.name);
device.connect(onconnected, onerror);
}
}
- });
+ );
</pre>
</div>
</dd>
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
}
var adapter = tizen.bluetooth.getLEAdapter();
- adapter.startScan({
- onsuccess: onDeviceFound
- }, onerror);
+ adapter.startScan(onDeviceFound, onerror);
</pre>
</div>
</dd>
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.admin</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
</div>
<div class="example">
<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> function onconnected(device) {
- console.log("Connected to device");
- var service = device.getService(device.uuids[0]);
- console.log("Service got");
+ console.log("Connected to device");
+ var service = device.getService(device.uuids[0]);
+ console.log("Service got");
}
function onerror(e) {
}
var adapter = tizen.bluetooth.getLEAdapter();
- adapter.startScan({
- onsuccess: onDeviceFound
- }, onerror);
+ adapter.startScan(onDeviceFound, onerror);
+ </pre>
+</div>
+</dd>
+<dt class="method" id="BluetoothLEDevice::getServiceAllUuids">
+<a class="backward-compatibility-anchor" name="::Bluetooth::BluetoothLEDevice::getServiceAllUuids"></a><code><b><span class="methodName">getServiceAllUuids</span></b></code>
+</dt>
+<dd>
+<div class="brief">
+ Retrieves list of all service UUIDs from connected GATT server.
+ </div>
+<div class="synopsis"><pre class="signature prettyprint"><a href="#BluetoothUUID">BluetoothUUID</a>[] getServiceAllUuids();
+ </pre></div>
+<p><span class="version">
+ Since: </span>
+ 3.0
+ </p>
+<p><span class="privilegelevel">
+ Privilege level: </span>
+ public
+ </p>
+<p><span class="privilege">
+ Privilege: </span>
+ http://tizen.org/privilege/bluetooth
+ </p>
+<div class="returntype">
+<p><span class="return">Return value:</span></p>
+ BluetoothUUID[] The array of all service UUIDs that belong to the connected GATT server.
+ </div>
+<div class="exceptionlist">
+<p><span class="except">Exceptions:</span></p>
+ <ul class="exception"><li>WebAPIException<ul>
+<li class="list"><p>
+ with error type InvalidValuesError: If GATT server is not available.
+ </p></li>
+<li class="list"><p>
+ with error type NotSupportedError: If the feature is not supported.
+ </p></li>
+</ul>
+</li></ul>
+ </div>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> // below variable should represent valid address of discoverable bluetooth low energy device
+ var remoteAddress = "11:22:33:44:55:66";
+
+ function onconnected(device) {
+ console.log("Connected to device");
+ var services = device.getServiceAllUuids();
+ console.log("Services length " + services.length);
+ }
+
+ function onerror(e) {
+ console.log("Error occured: " + e.message);
+ }
+
+ function onDeviceFound(device) {
+ if (device.address == remoteAddress) {
+ device.connect(onconnected.bind(null, device), onerror);
+ }
+ }
+
+ var adapter = tizen.bluetooth.getLEAdapter();
+ adapter.startScan(onDeviceFound, onerror);
+ </pre>
+</div>
+<div class="output">
+<span class="title"><p>Output example:</p></span><pre> Connected to device
+ Services length 2
</pre>
</div>
</dd>
}
var adapter = tizen.bluetooth.getLEAdapter();
- adapter.startScan({
- onsuccess: onDeviceFound
- }, onerror);
+ adapter.startScan(onDeviceFound, onerror);
</pre>
</div>
</dd>
var adapter = tizen.bluetooth.getLEAdapter();
var listenerID = null;
- adapter.startScan({
- onsuccess: onDeviceFound
- }, onerror);
+ adapter.startScan(onDeviceFound, onerror);
</pre>
</div>
</dd>
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.spp</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.spp</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.spp</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.spp</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="returntype">
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.spp</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.spp</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="exceptionlist">
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.gap</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.gap</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
</li>
</ul>
</div>
+<div class="returntype">
+<p><span class="return">Return value:</span></p>
+ boolean <em>true</em>, if given service exists in the <em>services</em>.
+ </div>
<div class="exceptionlist">
<p><span class="except">Exceptions:</span></p>
<ul class="exception"><li>WebAPIException<ul>
<li class="attribute" id="BluetoothServiceHandler::uuid">
<span class="attrName"><span class="readonly"> readonly
</span><span class="type">BluetoothUUID </span><span class="name">uuid</span></span><div class="brief">
- The UUID of the service.
+ The UUID of the service. See <a href="#BluetoothServiceHandler::onconnect">example</a>.
</div>
<p><span class="version">
Since: </span>
<li class="attribute" id="BluetoothServiceHandler::name">
<span class="attrName"><span class="readonly"> readonly
</span><span class="type">DOMString </span><span class="name">name</span></span><div class="brief">
- The name of the service.
+ The name of the service. See <a href="#BluetoothServiceHandler::onconnect">example</a>.
</div>
<p><span class="version">
Since: </span>
<li class="attribute" id="BluetoothServiceHandler::isConnected">
<span class="attrName"><span class="readonly"> readonly
</span><span class="type">boolean </span><span class="name">isConnected</span></span><div class="brief">
- The flag indicating whether any remote devices is using this service.
+ The flag indicating whether any remote devices is using this service. See <a href="#BluetoothServiceHandler::onconnect">example</a>.
</div>
<p><span class="version">
Since: </span>
</p></li></ul>
</li></ul>
</div>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var adapter = tizen.bluetooth.getDefaultAdapter();
+
+ function chatServiceSuccessCb(handler) {
+ console.log("Chat service " + handler.name + " with UUID " + handler.uuid + " is successfully registered!");
+ console.log("There is " + (handler.isConnected ? "a" : "no") + " device using this service");
+
+ handler.onconnect = function(socket) {
+ console.log("Client is connected: " + socket.peer.name + "," + socket.peer.address);
+ socket.onmessage = function() {
+ var data = socket.readData();
+ // Handle message code goes here
+ //....
+ };
+
+ // Expected close
+ socket.onclose = function() {
+ console.log('The socket is closed.');
+ };
+ };
+ }
+
+ function errorCb(e) {
+ console.log( "Could not register service record, Error: " + e.message);
+ }
+
+ var CHAT_SERVICE_UUID = "5BCE9431-6C75-32AB-AFE0-2EC108A30860";
+ adapter.registerRFCOMMServiceByUUID(CHAT_SERVICE_UUID, "Chat service", chatServiceSuccessCb, errorCb);
+
+ </pre>
+</div>
</li>
</ul>
</div>
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.spp</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.spp</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
Since: </span>
2.3.1
</p>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var adapter = tizen.bluetooth.getDefaultAdapter();
+ var healthCapability = tizen.systeminfo.getCapability("http://tizen.org/feature/network.bluetooth.health");
+
+ if (healthCapability) {
+ var healthProfileHandler = adapter.getBluetoothProfileHandler("HEALTH");
+ console.log("Bluetooth profile type is " + healthProfileHandler.profileType);
+ } else {
+ console.log("Bluetooth Health Profile is not supported on this device.");
+ }
+ </pre>
+</div>
</li></ul>
</div>
</div>
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.health</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.health</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.health</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.health</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
function healthConnectSuccess(channel) {
console.log("Health device is connected");
+ var status = "Name of remote device: " + channel.peer.name +
+ "channel type of device profile: " + channel.channelType +
+ "health application name: " + channel.appication.name;
+ console.log(status);
}
function healthConnectError(e) {
</div>
<div class="description">
<p>
-For example, pulse oximeter is 4100 and blood pressure monitor is 4103.
+For example, pulse oximeter is 4100 and blood pressure monitor is 4103. See <a href="#BluetoothHealthApplication::onconnect">example</a>.
</p>
</div>
<p><span class="version">
<li class="attribute" id="BluetoothHealthApplication::name">
<span class="attrName"><span class="readonly"> readonly
</span><span class="type">DOMString </span><span class="name">name</span></span><div class="brief">
- The friendly name associated with sink application.
+ The friendly name associated with sink application. See <a href="#BluetoothHealthApplication::onconnect">example</a>.
</div>
<p><span class="version">
Since: </span>
</p></li></ul>
</li></ul>
</div>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var adapter = tizen.bluetooth.getDefaultAdapter();
+ var healthProfileHandler = adapter.getBluetoothProfileHandler("HEALTH");
+
+ function healthRegisterSuccess(app) {
+ console.log("Registered application: " + app.name);
+ console.log("Data type used for communication is " + app.dataType);
+
+ app.onconnect = function(channel) {
+ console.log("Health device is connected");
+ }
+ }
+
+ function healthRegisterError(e) {
+ console.log("Failed to register application: " + e.message);
+ };
+
+ healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegisterSuccess, healthRegisterError);
+ </pre>
+</div>
</li>
</ul>
</div>
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.health</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.health</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
<li class="attribute" id="BluetoothHealthChannel::peer">
<span class="attrName"><span class="readonly"> readonly
</span><span class="type">BluetoothDevice </span><span class="name">peer</span></span><div class="brief">
- The remote device to which this channel is connected.
+ The remote device to which this channel is connected. See <a href="#BluetoothHealthChannel::isConnected">example</a>.
</div>
<p><span class="version">
Since: </span>
<li class="attribute" id="BluetoothHealthChannel::channelType">
<span class="attrName"><span class="readonly"> readonly
</span><span class="type">BluetoothHealthChannelType </span><span class="name">channelType</span></span><div class="brief">
- The type of this channel.
+ The type of this channel. See <a href="#BluetoothHealthChannel::isConnected">example</a>.
</div>
<p><span class="version">
Since: </span>
<li class="attribute" id="BluetoothHealthChannel::application">
<span class="attrName"><span class="readonly"> readonly
</span><span class="type">BluetoothHealthApplication </span><span class="name">application</span></span><div class="brief">
- The health application which is used to communicate with the remote device.
+ The health application which is used to communicate with the remote device. See <a href="#BluetoothHealthChannel::isConnected">example</a>.
</div>
<p><span class="version">
Since: </span>
Since: </span>
2.3.1
</p>
+<div class="example">
+<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var adapter = tizen.bluetooth.getDefaultAdapter();
+ var healthProfileHandler = adapter.getBluetoothProfileHandler("HEALTH");
+
+ function healthRegisterSuccess(app) {
+ app.onconnect = function(channel) {
+ console.log("Health device " + (channel.isConnected ? "is" : "is not") + " connected to " + channel.peer.name + " remote device");
+ console.log("Channel type is " + channel.channelType + " and health application name used for communication is " + channel.application.name);
+ }
+ }
+
+ function healthRegisterError(e) {
+ console.log("Failed to register application: " + e.message);
+ };
+
+ healthProfileHandler.registerSinkApplication(4100, "testSinkApp", healthRegisterSuccess, healthRegisterError);
+ </pre>
+</div>
</li>
</ul>
</div>
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.health</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.health</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="exceptionlist">
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.health</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.health</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
<span class="example"><p>Code example:</p></span><pre name="code" class="examplecode prettyprint"> var adapter = tizen.bluetooth.getDefaultAdapter();
var healthProfileHandler = adapter.getBluetoothProfileHandler("HEALTH");
+ // Data to send
+ var textmsg = "Test";
+ var dataToSend = new Array();
+ for (var i = 0; i < textmsg.length; i++) {
+ dataToSend[i] = textmsg.charCodeAt(i);
+ }
+
function healthRegisterSuccess(app) {
console.log("Registered application: " + app.name);
app.onconnect = function(channel) {
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.health</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.health</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="parameters">
http://tizen.org/privilege/bluetooth
</p>
<p class="warning"><b>Warning:</b>
- <em>http://tizen.org/privilege/bluetooth.health</em> <em>(public level)</em> has been deprecated since 2.4.
+ <em>http://tizen.org/privilege/bluetooth.health</em> <em>(public level)</em> has been deprecated since 3.0.
Instead, use <em>http://tizen.org/privilege/bluetooth</em>.
</p>
<div class="exceptionlist">
Since: </span>
2.3.1
</p>
+<p><span class="remark"> Remark : </span>
+ Example of using can be find at <a href="bluetooth.html#BluetoothAdapter::setChangeListener">setChangeListener</a> code example.
+ </p>
<div class="methods">
<h4>Methods</h4>
<dl>
Since: </span>
2.3.1
</p>
+<p><span class="remark"> Remark : </span>
+ Example of using can be find at <a href="bluetooth.html#BluetoothAdapter::getDevice">getDevice</a> and <a href="bluetooth.html#BluetoothAdapter::createBonding">createBonding</a> code examples.
+ </p>
<div class="methods">
<h4>Methods</h4>
<dl>
Since: </span>
2.3.1
</p>
+<p><span class="remark"> Remark : </span>
+ Example of using can be find at <a href="bluetooth.html#BluetoothAdapter::getKnownDevices">getKnownDevices</a> code example.
+ </p>
<div class="methods">
<h4>Methods</h4>
<dl>
Since: </span>
2.3.1
</p>
+<p><span class="remark"> Remark : </span>
+ Example of using can be find at <a href="bluetooth.html#BluetoothAdapter::discoverDevices">discoverDevices</a> code example.
+ </p>
<div class="methods">
<h4>Methods</h4>
<dl>
Since: </span>
2.3.1
</p>
+<p><span class="remark"> Remark : </span>
+ Example of using can be find at <a href="bluetooth.html#BluetoothDevice::connectToServiceByUUID">connectToServiceByUUID</a> code example.
+ </p>
<div class="methods">
<h4>Methods</h4>
<dl>
Since: </span>
2.3.1
</p>
+<p><span class="remark"> Remark : </span>
+ Example of using can be find at <a href="bluetooth.html#BluetoothAdapter::registerRFCOMMServiceByUUID">registerRFCOMMServiceByUUID</a> code example.
+ </p>
<div class="methods">
<h4>Methods</h4>
<dl>
Since: </span>
2.3.1
</p>
+<p><span class="remark"> Remark : </span>
+ Example of using can be find at <a href="bluetooth.html#BluetoothHealthProfileHandler::registerSinkApplication">registerSinkApplication</a> code example.
+ </p>
<div class="methods">
<h4>Methods</h4>
<dl>
Since: </span>
2.3.1
</p>
+<p><span class="remark"> Remark : </span>
+ Example of using can be find at <a href="bluetooth.html#BluetoothHealthProfileHandler::connectToSource">connectToSource</a> code example.
+ </p>
<div class="methods">
<h4>Methods</h4>
<dl>
Since: </span>
2.3.1
</p>
+<p><span class="remark"> Remark : </span>
+ Example of using can be find at <a href="bluetooth.html#BluetoothHealthChannel::setListener">setListener</a> code example.
+ </p>
<div class="methods">
<h4>Methods</h4>
<dl>
[NoInterfaceObject] interface BluetoothLEAdapter {
void startScan(<a href="#BluetoothLEScanCallback">BluetoothLEScanCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+
void stopScan() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+
void startAdvertise(<a href="#BluetoothLEAdvertiseData">BluetoothLEAdvertiseData</a> advertiseData, <a href="#BluetoothAdvertisePacketType">BluetoothAdvertisePacketType</a> packetType, <a href="#BluetoothLEAdvertiseCallback">BluetoothLEAdvertiseCallback</a> successCallback, optional <a href="tizen.html#ErrorCallback">ErrorCallback</a>? errorCallback, optional <a href="#BluetoothAdvertisingMode">BluetoothAdvertisingMode</a>? mode, optional boolean? connectable) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+
void stopAdvertise() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
};
[NoInterfaceObject] interface BluetoothLEDevice {
readonly attribute <a href="#BluetoothAddress">BluetoothAddress</a> address;
readonly attribute DOMString? name;
- readonly attribute unsigned long? txpowerlevel;
+ readonly attribute long? txpowerlevel;
readonly attribute unsigned long? appearance;
readonly attribute <a href="#BluetoothUUID">BluetoothUUID</a>[]? uuids;
readonly attribute <a href="#BluetoothLESolicitationUUID">BluetoothLESolicitationUUID</a>[]? solicitationuuids;
<a href="#BluetoothGATTService">BluetoothGATTService</a> getService(<a href="#BluetoothUUID">BluetoothUUID</a> uuid) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+ <a href="#BluetoothUUID">BluetoothUUID</a>[] getServiceAllUuids() raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
+
long addConnectStateChangeListener(<a href="#BluetoothLEConnectChangeCallback">BluetoothLEConnectChangeCallback</a> listener) raises(<a href="tizen.html#WebAPIException">WebAPIException</a>);
void removeConnectStateChangeListener(long watchID);