<?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>Arduino Primo get MAC address and RSSI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27944/arduino-primo-get-mac-address-and-rssi</link><description>I am using the following to extract the Device_Name from an advertised packet received on an Arduino Primo:
peer.getFieldInAdvPck(BLE_GAP_AD_TYPE_COMPLETE_LOCAL_NAME, advertisedName, len);
How am I able to extract the MAC and RSSI?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Dec 2017 11:15:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27944/arduino-primo-get-mac-address-and-rssi" /><item><title>RE: Arduino Primo get MAC address and RSSI</title><link>https://devzone.nordicsemi.com/thread/110286?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2017 11:15:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6960d007-99f0-4e8b-9e37-3f3efc7ddc32</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Ah, I forgot about that..&lt;br /&gt;
Good to hear you figured it out :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arduino Primo get MAC address and RSSI</title><link>https://devzone.nordicsemi.com/thread/110285?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2017 12:25:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93f58810-30f1-4807-94f8-b915871c62f0</guid><dc:creator>Declan</dc:creator><description>&lt;p&gt;Many thanks.
I just needed to change:
char &lt;em&gt;address = peer.address();
to
const char&lt;/em&gt; address = peer.address();&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arduino Primo get MAC address and RSSI</title><link>https://devzone.nordicsemi.com/thread/110284?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2017 11:32:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b868fade-e133-401b-94c3-4ae8b091527a</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;There should be separate functions for reading the RSSI and the BLE address that you can run on the peer object:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;int8_t rssi = peer.rssi();
char *address = peer.address();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Best regards&lt;br /&gt;
Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>