[Tizen_2.4] Delete the blacklist APIs
authorTaejin Woo <tt.woo@samsung.com>
Wed, 2 Sep 2015 08:03:45 +0000 (17:03 +0900)
committerTaejin Woo <tt.woo@samsung.com>
Wed, 2 Sep 2015 08:15:04 +0000 (17:15 +0900)
Change-Id: I953a129f01f9b593bb66f2f7ca995f6210618a25
Signed-off-by: Taejin Woo <tt.woo@samsung.com>
org.tizen.guides/html/native/porting/api_comparison_n.htm
org.tizen.tutorials/html/native/network/bluetooth_tutorial_n.htm

index 0a3c6cb..a98208f 100644 (file)
@@ -870,7 +870,7 @@ static void app_control(app_control_h app_control, void *data)
 <pre class="prettyprint">
 bt_initialize();
 </pre>
-<p>The Bluetooth adapter can be launched by calling the <span style="font-family: Courier New,Courier,monospace">bt_adapter_enable()</span> function. Getting the name and address of the local device is done in the same way as in the 2.2.1 API. The difference is in getting the list of paired devices. The <span style="font-family: Courier New,Courier,monospace">bt_adapter_foreach_bonded_device()</span> function iterates through all the bonded devices instead of returning the list of paired devices like the <span style="font-family: Courier New,Courier,monospace">GetPairedDeviceListN()</span> function from the 2.2.1 API. The specified callback is called for every paired device. The callback carries the information about a particular bonded device as its first parameter, so it is possible to check the device name by looking at the passed <span style="font-family: Courier New,Courier,monospace">bt_device_info_s</span> structure.</p>
+<p>The Bluetooth adapter can be launched by calling the example application offered to Bluetooth tutorial. Getting the name and address of the local device is done in the same way as in the 2.2.1 API. The difference is in getting the list of paired devices. The <span style="font-family: Courier New,Courier,monospace">bt_adapter_foreach_bonded_device()</span> function iterates through all the bonded devices instead of returning the list of paired devices like the <span style="font-family: Courier New,Courier,monospace">GetPairedDeviceListN()</span> function from the 2.2.1 API. The specified callback is called for every paired device. The callback carries the information about a particular bonded device as its first parameter, so it is possible to check the device name by looking at the passed <span style="font-family: Courier New,Courier,monospace">bt_device_info_s</span> structure.</p>
 <p>The documentation for the Bluetooth OPP (Object Push Profile) client provides functions to initialize the OPP client (<span style="font-family: Courier New,Courier,monospace">bt_opp_client_initialize()</span>), add files to be pushed (<span style="font-family: Courier New,Courier,monospace">bt_opp_client_add_file()</span>), and push them to the OPP server (<span style="font-family: Courier New,Courier,monospace">bt_opp_client_push_files()</span>).</p>
 <pre class="prettyprint">
 char remote_address[18] = &quot;The address of the remote device&quot;;
index 1dbd0a6..1a6eada 100644 (file)
@@ -37,9 +37,8 @@
                        <li>Bluetooth GATT Operations
                                <ul class="toc">
                                        <li><a href="#gatt_client">Gatt Client Role Operation</a></li>
-                                       <li><a href="#gatt_server">Gatt Server Role Operation</a></li>
-                                       <li><a href="#gatt_getter">Gatt Client/Server Getter Operation</a></li>
-                                       <li><a href="#gatt_setter">Gatt Client/Server Setter Operation</a></li>
+                                       <li><a href="#gatt_getter">Gatt Client Getter Operation</a></li>
+                                       <li><a href="#gatt_setter">Gatt Client Setter Operation</a></li>
                                </ul>
                        </li>
                        <li>Object Push Profile (OPP)
                                <ul>
                                        <li><a href="#gatt_client">Gatt Client Role Operations</a>
                                        <p>Create a client to connect to a remote service, get service details, read and set service attributes and set/unset characteristic value changed information callback.</p></li>
-                                       <li><a href="#gatt_server">Gatt Server Role Operations</a>
-                                       <p>Create a Server, add or delete service, characteristics, and descriptors. Modify the attributes value and properties.</p></li>
-                                       <li><a href="#gatt_getter">Gatt Client/Server Common Getter Operations</a>
-                                       <p>Getter APIs which are used commonly for GATT Client and Server related operations.
+                                       <li><a href="#gatt_getter">Gatt Client Common Getter Operations</a>
+                                       <p>Getter APIs which are used commonly for GATT Client related operations.
                                        </p></li>
-                                       <li><a href="#gatt_setter">Gatt Client/Server Common setter operations</a>
+                                       <li><a href="#gatt_setter">Gatt Client Common setter operations</a>
                                        <p>Set the properties and values of the attribute.</p></li>
                                </ul></li>
                                <li>Object Push Profile (OPP)
@@ -1296,206 +1293,8 @@ break;
 </pre></li>
 </ol>
 
-<h2 id="gatt_server" name="gatt_server">GATT Server Role Operations</h2>
-<p>To perform GATT Server operations:</p>
-<p>The GATT Server stores the service and its characteristics, characteristic descriptors.</p>
-<p>The GATT Client reads the services of GATT Server and uses the service and its characteristics according to pre defined functionalities of the service.</p>
-<ol>
-<li>Initialize the server:
-<pre class="prettyprint">
-&nbsp;&nbsp;&nbsp;int ret = 0;
-
-&nbsp;&nbsp;&nbsp;ret = bt_gatt_server_initialize();
-&nbsp;&nbsp;&nbsp;if (ret == BT_ERROR_NONE)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;Success&quot;);
-</pre></li>
-
-<li>Create the server:
-<pre class="prettyprint">
-&nbsp;&nbsp;&nbsp;int ret = 0;
-&nbsp;&nbsp;&nbsp;bt_gatt_server_h server = NULL;
-
-&nbsp;&nbsp;&nbsp;ret = bt_gatt_server_create(&server);
-&nbsp;&nbsp;&nbsp;if (ret != BT_ERROR_NONE) {
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;Failure&quot;);
-</pre></li>
-
-<li>Create the Service:
-<pre class="prettyprint">
-&nbsp;&nbsp;&nbsp;int ret = 0;
-&nbsp;&nbsp;&nbsp;char *service_uuid = "180a"; // Device Infromation Service
-&nbsp;&nbsp;&nbsp;bt_gatt_h service = NULL;
-
-&nbsp;&nbsp;&nbsp;ret = bt_gatt_service_create(service_uuid, BT_GATT_SERVICE_TYPE_PRIMARY, &service);
-&nbsp;&nbsp;&nbsp;if (ret != BT_ERROR_NONE || service == NULL) {
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;Failure&quot;);
-</pre></li>
-
-<li>Register the Service:
-<pre class="prettyprint">
-&nbsp;&nbsp;&nbsp;int ret = 0;
-&nbsp;&nbsp;&nbsp;char *service_uuid = "180a"; // Device Infromation Service
-&nbsp;&nbsp;&nbsp;bt_gatt_h service = NULL;
-&nbsp;&nbsp;&nbsp;bt_gatt_server_h server = NULL;
-
-&nbsp;&nbsp;&nbsp;/* Server initialized */
-&nbsp;&nbsp;&nbsp;/* Server created */
-&nbsp;&nbsp;&nbsp;/* Service added */
-&nbsp;&nbsp;&nbsp;/* Characteristic added */
-&nbsp;&nbsp;&nbsp;/* Descriptor added*/
-&nbsp;&nbsp;&nbsp;ret = bt_gatt_server_register_service(server, service);
-&nbsp;&nbsp;&nbsp;if (ret == BT_ERROR_NONE) {
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;Success&quot;);
-</pre></li>
-
-<li>Create characteristic and add characteristic to service:
-<pre class="prettyprint">
-&nbsp;&nbsp;&nbsp;int ret = 0;
-&nbsp;&nbsp;&nbsp;bt_gatt_h service = NULL;
-&nbsp;&nbsp;&nbsp;bt_gatt_h characteristic = NULL;
-&nbsp;&nbsp;&nbsp;char *service_uuid = "180a"; // Device Infromation Service
-&nbsp;&nbsp;&nbsp;char *char_uuid = NULL;
-&nbsp;&nbsp;&nbsp;char *char_value;
-&nbsp;&nbsp;&nbsp;int permissions = BT_GATT_PERMISSION_READ;
-&nbsp;&nbsp;&nbsp;int properties = BT_GATT_PROPERTY_READ;
-
-&nbsp;&nbsp;&nbsp;/* Server initialized */
-&nbsp;&nbsp;&nbsp;/* Server created */
-&nbsp;&nbsp;&nbsp;/* Service added */
-&nbsp;&nbsp;&nbsp;/* Add characteristic */
-&nbsp;&nbsp;&nbsp;char_uuid = "2a29"; // Manufacturer Name String
-&nbsp;&nbsp;&nbsp;char_value = g_strdup("Company_x");
-&nbsp;&nbsp;&nbsp;ret = bt_gatt_characteristic_create(char_uuid, permissions, properties,
-&nbsp;&nbsp;&nbsp;                                             char_value, strlen(char_value), &characteristic);
-&nbsp;&nbsp;&nbsp;if (ret == BT_ERROR_NONE)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;Success&quot;);
-&nbsp;&nbsp;&nbsp;g_free(char_value);
-
-&nbsp;&nbsp;&nbsp;ret = bt_gatt_service_add_characteristic(service, characteristic);
-&nbsp;&nbsp;&nbsp;if (ret == BT_ERROR_NONE)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;Success&quot;);
-</pre></li>
-
-<li>Create descriptor and add descriptor to characteristic:
-<pre class="prettyprint">
-&nbsp;&nbsp;&nbsp;int ret = 0;
-&nbsp;&nbsp;&nbsp;bt_gatt_h service = NULL;
-&nbsp;&nbsp;&nbsp;bt_gatt_h characteristic = NULL;
-&nbsp;&nbsp;&nbsp;bt_gatt_h descriptor = NULL;
-&nbsp;&nbsp;&nbsp;char *service_uuid = "1809"; // Health Thermometer Service
-&nbsp;&nbsp;&nbsp;char *char_uuid = "2a1c"; // Temperature Measurement
-&nbsp;&nbsp;&nbsp;char *desc_uuid = "2902";  // CCCD
-&nbsp;&nbsp;&nbsp;char char_value[5] = {0, 0x85, 0xff, 0xff, 0xfe}; // Flag + Temperature Measurement Value (Celsius, -1.23)
-&nbsp;&nbsp;&nbsp;char desc_value[2] = {0, 0};
-&nbsp;&nbsp;&nbsp;int permissions = BT_GATT_PERMISSION_READ;
-&nbsp;&nbsp;&nbsp;int properties = BT_GATT_PROPERTY_INDICATE | BT_GATT_PROPERTY_READ; // READ property added for testing
-
-&nbsp;&nbsp;&nbsp;/* Server initialized */
-&nbsp;&nbsp;&nbsp;/* Server created */
-&nbsp;&nbsp;&nbsp;/* Service added */
-&nbsp;&nbsp;&nbsp;/* Characteristic Added */
-&nbsp;&nbsp;&nbsp;/* Add Descriptor */
-&nbsp;&nbsp;&nbsp;permissions = BT_GATT_PERMISSION_READ | BT_GATT_PERMISSION_WRITE;
-&nbsp;&nbsp;&nbsp;ret = bt_gatt_descriptor_create(desc_uuid, permissions, desc_value, sizeof(desc_value), &descriptor);
-&nbsp;&nbsp;&nbsp;if (ret == BT_ERROR_NONE)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;Success&quot;);
-
-&nbsp;&nbsp;&nbsp;ret = bt_gatt_characteristic_add_descriptor(characteristic, descriptor);
-&nbsp;&nbsp;&nbsp;if (ret == BT_ERROR_NONE)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;Success&quot;);
-</pre></li>
-
-<li>Register a callback for connection state changes:
-<pre class="prettyprint">
-int ret = 0;
-// Register for GATT connection callback
-void __bt_gatt_connection_state_changed_cb(int result,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bool connected,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;const char *remote_address,
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;void *user_data)
-{
-&nbsp;&nbsp;&nbsp;if (connected)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;LE connected&quot;);
-&nbsp;&nbsp;&nbsp;else
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;LE disconnected&quot;);
-}
-ret = bt_gatt_set_connection_state_changed_cb(__bt_gatt_connection_state_changed_cb, NULL);
-</pre></li>
-
-<li>Set/Update characteristic Value:
-<pre class="prettyprint">
-&nbsp;&nbsp;&nbsp;int ret = 0;
-&nbsp;&nbsp;&nbsp;char char_value[1] = {1 + (rand()%100)};
-
-&nbsp;&nbsp;&nbsp;/* Server initialized */
-&nbsp;&nbsp;&nbsp;/* Server created */
-&nbsp;&nbsp;&nbsp;/* Service added */
-&nbsp;&nbsp;&nbsp;/* Characteristic added */
-&nbsp;&nbsp;&nbsp;/* Descriptor added*/
-
-&nbsp;&nbsp;&nbsp;if (!server) {
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;Failure&quot;);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;if (!service) {
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;Failure&quot;);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
-&nbsp;&nbsp;&nbsp;}
-
-&nbsp;&nbsp;&nbsp;ret = bt_gatt_set_value(service.chr, char_value, 1);
-&nbsp;&nbsp;&nbsp;if (ret == BT_ERROR_NONE)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;Success&quot;);
-</pre></li>
-
-<li>Example:
-<pre class="prettyprint">
-&nbsp;&nbsp;&nbsp;int ret = 0;
-&nbsp;&nbsp;&nbsp;bt_gatt_h service = NULL;
-&nbsp;&nbsp;&nbsp;bt_gatt_h characteristic = NULL;
-&nbsp;&nbsp;&nbsp;bt_gatt_h descriptor = NULL;
-&nbsp;&nbsp;&nbsp;char *service_uuid = "1809"; // Health Thermometer Service
-&nbsp;&nbsp;&nbsp;char *char_uuid = "2a1c"; // Temperature Measurement
-&nbsp;&nbsp;&nbsp;char *desc_uuid = "2902";  // CCCD
-&nbsp;&nbsp;&nbsp;char char_value[5] = {0, 0x85, 0xff, 0xff, 0xfe}; // Flag + Temperature Measurement Value (Celsius, -1.23)
-&nbsp;&nbsp;&nbsp;char desc_value[2] = {2, 0}; // Indication enabled
-&nbsp;&nbsp;&nbsp;int permissions = BT_GATT_PERMISSION_READ;
-&nbsp;&nbsp;&nbsp;int properties = BT_GATT_PROPERTY_INDICATE | BT_GATT_PROPERTY_READ; // READ property added for testing
-
-&nbsp;&nbsp;&nbsp;/* Initialize Server*/
-&nbsp;&nbsp;&nbsp;ret = bt_gatt_server_initialize();
-&nbsp;&nbsp;&nbsp;if (ret == BT_ERROR_NONE)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;Success&quot;);
-
-&nbsp;&nbsp;&nbsp;/* Create server */
-&nbsp;&nbsp;&nbsp;ret = bt_gatt_server_create(&server);
-&nbsp;&nbsp;&nbsp;if (ret == BT_ERROR_NONE) {
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;Success&quot;);
-
-&nbsp;&nbsp;&nbsp;/* Create Service */
-&nbsp;&nbsp;&nbsp;ret = bt_gatt_service_create(service_uuid, BT_GATT_SERVICE_TYPE_PRIMARY, &service);
-&nbsp;&nbsp;&nbsp;if (ret == BT_ERROR_NONE) {
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;Success&quot;);
-
-&nbsp;&nbsp;&nbsp;/* Add characteristic */
-&nbsp;&nbsp;&nbsp;ret = bt_gatt_characteristic_create(char_uuid, permissions, properties,
-&nbsp;&nbsp;&nbsp;                                             char_value, strlen(char_value), &characteristic);
-&nbsp;&nbsp;&nbsp;if (ret == BT_ERROR_NONE)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;Success&quot;);
-&nbsp;&nbsp;&nbsp;g_free(char_value);
-
-&nbsp;&nbsp;&nbsp;ret = bt_gatt_service_add_characteristic(service, characteristic);
-&nbsp;&nbsp;&nbsp;if (ret == BT_ERROR_NONE)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;Success&quot;);
-
-&nbsp;&nbsp;&nbsp;ret = bt_gatt_characteristic_add_descriptor(characteristic, descriptor);
-&nbsp;&nbsp;&nbsp;if (ret == BT_ERROR_NONE)
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;Success&quot;);
-</pre></li>
-</ol>
-
-<h2 id="gatt_getter" name="gatt_getter">Performing GATT Client/Server Common Getter Operations</h2>
-<p>To perform Getter operations for both GATT Client/Server related information:</p>
+<h2 id="gatt_getter" name="gatt_getter">Performing GATT Client Common Getter Operations</h2>
+<p>To perform Getter operations for both GATT Client related information:</p>
 <ol>
 <li>Gets the type of a service, characteristic or descriptor's GATT handle:
 <pre class="prettyprint">
@@ -1505,7 +1304,6 @@ ret = bt_gatt_set_connection_state_changed_cb(__bt_gatt_connection_state_changed
 &nbsp;&nbsp;&nbsp;bt_gatt_type_e gatt_type;
 
 &nbsp;&nbsp;&nbsp;// Handle is already created either for Service/Characteristic/Descriptor using
-&nbsp;&nbsp;&nbsp;// bt_gatt_service_create()/bt_gatt_characteristic_create()/bt_gatt_descriptor_create() respectively.
 
 &nbsp;&nbsp;&nbsp;ret = bt_gatt_get_type(gatt_handle, &amp;gatt_type);
 &nbsp;&nbsp;&nbsp;if (ret != BT_ERROR_NONE)
@@ -1523,7 +1321,6 @@ ret = bt_gatt_set_connection_state_changed_cb(__bt_gatt_connection_state_changed
 &nbsp;&nbsp;&nbsp;char *uuid = NULL;
 
 &nbsp;&nbsp;&nbsp;// Handle is already created either for Service/Characteristic/Descriptor using
-&nbsp;&nbsp;&nbsp;// bt_gatt_service_create()/bt_gatt_characteristic_create()/bt_gatt_descriptor_create() respectively.
 
 &nbsp;&nbsp;&nbsp;ret = bt_gatt_get_uuid(gatt_handle, &amp;uuid);
 &nbsp;&nbsp;&nbsp;if (ret != BT_ERROR_NONE)
@@ -1542,7 +1339,6 @@ ret = bt_gatt_set_connection_state_changed_cb(__bt_gatt_connection_state_changed
 &nbsp;&nbsp;&nbsp;char *value = NULL;
 
 &nbsp;&nbsp;&nbsp;// Handle is already created either for Characteristic/Descriptor using
-&nbsp;&nbsp;&nbsp;// bt_gatt_characteristic_create()/bt_gatt_descriptor_create() respectively.
 
 &nbsp;&nbsp;&nbsp;ret = bt_gatt_get_value(gatt_handle, &amp;value, &amp;len);
 &nbsp;&nbsp;&nbsp;if (ret != BT_ERROR_NONE)
@@ -1700,7 +1496,7 @@ ret = bt_gatt_set_connection_state_changed_cb(__bt_gatt_connection_state_changed
 &nbsp;&nbsp;&nbsp;bt_gatt_h chr = NULL;
 &nbsp;&nbsp;&nbsp;int properties;
 
-&nbsp;&nbsp;&nbsp;//get the characteristic handle using bt_gatt_characteristic_create() or bt_gatt_service_get_characteristic()
+&nbsp;&nbsp;&nbsp;//get the characteristic handle using bt_gatt_service_get_characteristic()
 
 &nbsp;&nbsp;&nbsp;ret = bt_gatt_characteristic_get_properties(chr, &amp;properties);
 &nbsp;&nbsp;&nbsp;if (ret != BT_ERROR_NONE)
@@ -1798,8 +1594,7 @@ ret = bt_gatt_set_connection_state_changed_cb(__bt_gatt_connection_state_changed
 &nbsp;&nbsp;&nbsp;int ret = 0;
 &nbsp;&nbsp;&nbsp;char char_value[1] = {1 + (rand()%100)};
 
-/* In case of Server, characteristic_handle is created when characteristic is created using bt_gatt_characteristic_create(),
- * In case of Client, the characteristic handle shall be retrived from the client created using gatt_client_create(),
+/* In case of Client, the characteristic handle shall be retrived from the client created using gatt_client_create(),
  * using the  bt_gatt_service_get_characteristic()*/
 
 &nbsp;&nbsp;&nbsp;ret = bt_gatt_set_value(characteristic_handle, char_value, 1);
@@ -1812,8 +1607,7 @@ ret = bt_gatt_set_connection_state_changed_cb(__bt_gatt_connection_state_changed
 &nbsp;&nbsp;&nbsp;int ret = 0;
 &nbsp;&nbsp;&nbsp;int char_value = 60 + (rand()%60);
 
-/* In case of Server, characteristic_handle is created when characteristic is created using bt_gatt_characteristic_create(),
- * In case of Client, the characteristic handle shall be retrived from the client created using gatt_client_create(),
+/* In case of Client, the characteristic handle shall be retrived from the client created using gatt_client_create(),
  * using the  bt_gatt_service_get_characteristic()*/
 
 &nbsp;&nbsp;&nbsp;ret = bt_gatt_set_int_value(characteristic_handle, BT_DATA_TYPE_UINT16, char_value, 1);
@@ -1825,8 +1619,7 @@ ret = bt_gatt_set_connection_state_changed_cb(__bt_gatt_connection_state_changed
 <pre class="prettyprint">
 &nbsp;&nbsp;&nbsp;int ret = 0;
 
-/* In case of Server, characteristic_handle is created when characteristic is created using bt_gatt_characteristic_create(),
- * In case of Client, the characteristic handle shall be retrived from the client created using gatt_client_create(),
+/* In case of Client, the characteristic handle shall be retrived from the client created using gatt_client_create(),
  * using the  bt_gatt_service_get_characteristic()*/
 
 &nbsp;&nbsp;&nbsp; /* Here the char value is, value: 123 exponent -2 */