<?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>how to read and write in ble central and peripheral code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14179/how-to-read-and-write-in-ble-central-and-peripheral-code</link><description>Hi all, 
 I am trying to read and write in ble central and peripheral code with softdevice s130. Here i can able to connect to particular ble device with unique ble device id, here is their any possible to connect to other device without using ble device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 May 2016 10:14:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14179/how-to-read-and-write-in-ble-central-and-peripheral-code" /><item><title>RE: how to read and write in ble central and peripheral code</title><link>https://devzone.nordicsemi.com/thread/54177?ContentTypeID=1</link><pubDate>Tue, 31 May 2016 10:14:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3826695d-0647-4a6b-a6a7-6a15888c6dfa</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure what you mean by &amp;quot;ble device id&amp;quot;. Device address? But you don&amp;#39;t have to use it. Usually a central connects by first starting a scan with sd_ble_gap_scan_start(), it will receive BLE_GAP_EVT_ADV_REPORT events, and the advertising data will be available. This is also illustrated in &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.0/group___b_l_e___g_a_p___s_c_a_n___m_s_c.html?cp=3_6_2_1_0_2_1_3_11"&gt;this&lt;/a&gt; MSC. It can examine the advertising data to determine if it wants to connect to the device or not. It can look for a device name, an UUID, and so on. If it is found, it can connect with sd_ble_gap_connect(). It is illustraded by &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.0/group___b_l_e___g_a_p___c_e_n_t_r_a_l___c_o_n_n___m_s_c.html?cp=3_6_2_1_0_2_1_3_1"&gt;this&lt;/a&gt; MSC.&lt;/p&gt;
&lt;p&gt;If the central performs a write operation, the peripheral will receive a BLE_GATTS_EVT_WRITE event. Please see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.0/group___b_l_e___g_a_t_t_s___w_r_i_t_e___r_e_q___n_o___a_u_t_h___m_s_c.html?cp=3_6_2_1_0_2_4_3_20"&gt;this&lt;/a&gt; MSC for write request, and &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.0/group___b_l_e___g_a_t_t_s___w_r_i_t_e___c_m_d___n_o___a_u_t_h___m_s_c.html?cp=3_6_2_1_0_2_4_3_18"&gt;this&lt;/a&gt; MSC for write command.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>