<?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>Need help: Scan, Display names of nearby devices and Connect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29294/need-help-scan-display-names-of-nearby-devices-and-connect</link><description>Hello, 
 I am working on example
nRF5_SDK_14.2.0_17b948a\nRF5_SDK_14.2.0_17b948a\examples\ble_central\ble_app_uart_c 
pca10040\s132\arm5_no_packs/ble_app_uart_c_pca10040_s132. 
 I have two different peripheral 1 is sending sensor data as notification</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Jan 2018 10:07:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29294/need-help-scan-display-names-of-nearby-devices-and-connect" /><item><title>RE: Need help: Scan, Display names of nearby devices and Connect</title><link>https://devzone.nordicsemi.com/thread/116521?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2018 10:07:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08bed2a9-c392-41b6-83c5-d77b918579e7</guid><dc:creator>Abhinav </dc:creator><description>&lt;p&gt;Thanks, it is Done.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help: Scan, Display names of nearby devices and Connect</title><link>https://devzone.nordicsemi.com/thread/116520?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2018 10:05:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8b11688-076a-4b50-8bb7-cd0ccaeb4f53</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You can find the advertising data in p_adv_report.data[]&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help: Scan, Display names of nearby devices and Connect</title><link>https://devzone.nordicsemi.com/thread/116522?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2018 08:44:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25ae8d9e-cf0c-402a-a01e-8be6a009f083</guid><dc:creator>Abhinav </dc:creator><description>&lt;p&gt;Hi Petter,&lt;/p&gt;
&lt;p&gt;Display name is done, Now I want to print Raw advertising data(Full hex string including all parameter) coming from peripheral.&lt;/p&gt;
&lt;p&gt;Can u help me in that, where is that array or struct from i can take full raw data.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help: Scan, Display names of nearby devices and Connect</title><link>https://devzone.nordicsemi.com/thread/116519?ContentTypeID=1</link><pubDate>Tue, 09 Jan 2018 14:03:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10ae28f4-5158-47bf-9da9-20bbdb9618b0</guid><dc:creator>Abhinav </dc:creator><description>&lt;p&gt;Hi Petter, Thanks for quick reply.&lt;/p&gt;
&lt;p&gt;I have gone thru your comments and searching how to extract adv name from adv.
In this section I am searching:-&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;case BLE_GAP_EVT_ADV_REPORT:
{
ble_gap_evt_adv_report_t const * p_adv_report = &amp;amp;p_gap_evt-&amp;gt;params.adv_report;
if (is_uuid_present(&amp;amp;m_nus_uuid, p_adv_report))&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help: Scan, Display names of nearby devices and Connect</title><link>https://devzone.nordicsemi.com/thread/116518?ContentTypeID=1</link><pubDate>Tue, 09 Jan 2018 11:46:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2d68eda-7370-4e7b-9e06-37a1412f94c7</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Second alternative is simplest to implement.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m assuming you by display mean send over uart to a terminal.&lt;/p&gt;
&lt;p&gt;In ble_app_uart_c you should start my modifying the handling of BLE_GAP_EVT_ADV_REPORT in ble_evt_handler(). Here you can see that it is checking if the UUID is present in the advertisement (is_uuid_present()) you should instead extract the advertising name from the advertisement and print it. Then you need some way to select which peer to connect to, for example by using buttons or UART. Then you call sd_ble_gap_connect() with the peer address that maps to the selected advertising name.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>