<?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 can I know the event is peri or central?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20649/how-can-i-know-the-event-is-peri-or-central</link><description>Hi. I&amp;#39;m using nRF51822, SDK12.2.0, S130 v2.0.1. 
 I&amp;#39;m using nRF chip as Multi-connection Central and 1 Peripheral as well. 
 My event function is 
 static void on_ble_evt(ble_evt_t * p_ble_evt)
{ 
 ret_code_t err_code;

// For readability.
const</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Mar 2017 02:41:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20649/how-can-i-know-the-event-is-peri-or-central" /><item><title>RE: How can I know the event is peri or central?</title><link>https://devzone.nordicsemi.com/thread/80516?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2017 02:41:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48d1a180-c473-4a3f-8d21-dad2deed1340</guid><dc:creator>roger.k</dc:creator><description>&lt;p&gt;I got the solution myself. Using &amp;quot;p_ble_evt-&amp;gt;evt.gap_evt.params.connected.role&amp;quot; is the answer. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>