<?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>Server Name extraction from received advertising data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67740/server-name-extraction-from-received-advertising-data</link><description>I am trying to get the board advertiser name from the advertising data received by another scanner board. I am using softdevice S140 version 7.2.0. 
 The server board name is: &amp;quot;Nordic_Server&amp;quot;. This is 13 characters. The client board is scanning and printing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 01 Nov 2020 05:09:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67740/server-name-extraction-from-received-advertising-data" /><item><title>RE: Server Name extraction from received advertising data</title><link>https://devzone.nordicsemi.com/thread/277921?ContentTypeID=1</link><pubDate>Sun, 01 Nov 2020 05:09:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e261427a-d76a-48ad-8f59-c202f8c118a5</guid><dc:creator>Ahmed2</dc:creator><description>&lt;p&gt;Plenty of Thanks. This solved the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Server Name extraction from received advertising data</title><link>https://devzone.nordicsemi.com/thread/277645?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2020 14:43:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54115be2-5aa0-4e37-95e0-dbb30786c5d0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;quot;data-&amp;gt;len&amp;quot; value corresponds to the payload size of the received advertistement packet, which is including more than just the device name. As a result, the &amp;quot;device_name[data-&amp;gt;len] = 0;&amp;quot; line will not correctly terminate text string in your case. For this it will be better to use &lt;span&gt;&lt;a title="ble_advdata_search" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__ble__sdk__lib__advdata.html?cp=7_1_6_2_7_28#ga5c200cd3523cc98073832aa5e8d954f0"&gt;ble_advdata_search&lt;/a&gt;&lt;/span&gt;() instead of ble_advdata_parse() as it will return the actual length of the device name if found.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>