<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>read device name</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12811/read-device-name</link><description>Hi, I try to access Generic Access to get device name.
So, I modified &amp;quot;ble_bas_c.c - ble_bas_c_init()&amp;quot; like this. 
 bas_uuid.type = BLE_UUID_GAP_CHARACTERISTIC_DEVICE_NAME;
bas_uuid.uuid = BLE_UUID_TYPE_BLE;

mp_ble_bas_c = p_ble_bas_c;

mp_ble_bas_c</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Mar 2016 12:41:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12811/read-device-name" /><item><title>RE: read device name</title><link>https://devzone.nordicsemi.com/thread/48690?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2016 12:41:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b3c19bd-ea7c-483f-9205-c64d58edfb91</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I have updated the answer to answer your question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read device name</title><link>https://devzone.nordicsemi.com/thread/48689?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2016 13:39:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a60e278d-413e-4bf5-8d21-87e35b9cfb7a</guid><dc:creator>HakJae</dc:creator><description>&lt;p&gt;Thank you for your answer.
At Scanner side, how to access &amp;quot;Generic Access&amp;quot; ? I want to access and read Value. For example, Device Name, Appearance and so on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read device name</title><link>https://devzone.nordicsemi.com/thread/48688?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2016 12:14:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37667347-dc95-4012-bdce-da751d104793</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;The device name should be set using &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v2.0.0%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&amp;amp;cp=1_3_0_1_0_2_1_2_14&amp;amp;anchor=gae779f7eed346027dc4cbaf438352e5db"&gt;sd_ble_gap_device_name_set(..)&lt;/a&gt;. After setting the device name with that function, you can retrieve the device name using sd_ble_gap_device_name_get(..).&lt;/p&gt;
&lt;p&gt;In our SDK examples, the device name is set in gap_params_init().&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 30.03.16&lt;/strong&gt;:
In order to get the device name, appearance, etc when in a connection, you will need to implement a client module that takes care of the handles for the device name characteristic, appearance characteristic, etc.
The attached example shows how to extract the device name when in a connection. The example is  based on ble_app_uart_c, and will request the device name after receiving &amp;quot;name&amp;quot; over UART (and data_array does only contain &amp;quot;name&amp;quot;). In the example, ble_gap_c.c/h implements a limited GAP client module that finds and takes care of the device name characteristic handle.&lt;/p&gt;
&lt;p&gt;Note 1: that the example has not been tested extensively.&lt;/p&gt;
&lt;p&gt;Note 2: the example is based on SDK 11, and should be used with S130/S132 v 2.0.0&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_uart_5F00_c_5F00_extract_5F00_peer_5F00_gap_5F00_params.zip"&gt;ble_app_uart_c_extract_peer_gap_params.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>