<?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>Accessing specific fields within advertising data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123132/accessing-specific-fields-within-advertising-data</link><description>My AD data is defined with macros as such: 
 
 I need to change the manufacturer data then update the advertising data using 
 
 My question is: How do I get a pointer to mfg_data - is there a helper macro for this?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Jul 2025 16:03:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123132/accessing-specific-fields-within-advertising-data" /><item><title>RE: Accessing specific fields within advertising data</title><link>https://devzone.nordicsemi.com/thread/543235?ContentTypeID=1</link><pubDate>Tue, 22 Jul 2025 16:03:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bce62f3-e17a-42a3-a502-b961544fcce6</guid><dc:creator>Nick_RA</dc:creator><description>&lt;p&gt;Ah, I&amp;#39;m over-thinking it. There&amp;#39;s only 3 elements above, so in my case it&amp;#39;s ad[2].data &amp;amp; ad[2].data_len.&lt;/p&gt;
&lt;p&gt;Yes mfg_data is defined, but its length varies so I also need to update the length (making sure I don&amp;#39;t exceed the length as originally defined).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Accessing specific fields within advertising data</title><link>https://devzone.nordicsemi.com/thread/543175?ContentTypeID=1</link><pubDate>Tue, 22 Jul 2025 12:23:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd5f9222-0673-4507-8da6-8a7373b2369b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The pointer should be stored at &amp;quot;ad[5].data&amp;quot; in your case. But isn&amp;#39;t the mfg_data variable defined in the same scope? Normally I would just update the&amp;nbsp;mfg_data and called&amp;nbsp;bt_le_adv_update_data() to have the updated value reflected in the adv. payload.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>