<?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>Send TX Power in Advertising Packet</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60574/send-tx-power-in-advertising-packet</link><description>I want to send Tx power in advertisement packet. 
 Currently I am using following code. 
 
 int8_t txpower_level; 
 
 
 
 
 
 static ble_advertising_init_t init = 
 { 
 . advdata . p_manuf_specific_data = &amp;amp; manufacturing_data, 
 . advdata . name_type</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Apr 2020 10:09:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60574/send-tx-power-in-advertising-packet" /><item><title>RE: Send TX Power in Advertising Packet</title><link>https://devzone.nordicsemi.com/thread/246750?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 10:09:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0c9ca22-8bce-4780-8d6d-3902ea30bfee</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Check out this thread, which I think discuss the same:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/55296/how-to-update-advertised-tx-power"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/55296/how-to-update-advertised-tx-power&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send TX Power in Advertising Packet</title><link>https://devzone.nordicsemi.com/thread/246317?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 15:15:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2cdc647-264c-4b93-8dce-454b1a2ba475</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/60574/send-tx-power-in-advertising-packet/246239"]However it make sense to call it before you start advertisement.[/quote]
&lt;p&gt;Is there a way by which I can update the advt. packet to transmit the power level without starting and stopping the advertisement?&lt;/p&gt;
&lt;p&gt;I mean in my application, I change the transmit power as needed but everytime&amp;nbsp; restarting the advertisement is not feasible.&lt;/p&gt;
&lt;p&gt;How can I update .advdata.p_tx_power_level to show the change in power in advt. packet?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send TX Power in Advertising Packet</title><link>https://devzone.nordicsemi.com/thread/246239?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 11:44:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36b4fc81-00b7-4cbe-8764-b44e71434fd5</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is not direct dependency between when you&amp;nbsp;set&lt;span&gt;&amp;nbsp;.&lt;/span&gt;&lt;span&gt;advdata&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;p_tx_power_level and call&amp;nbsp;sd_ble_gap_tx_power_set(). It is in theory possible to dynamically change the output power at any time by calling&amp;nbsp;sd_ble_gap_tx_power_set(). However it make sense to call it before you start advertisement.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>