<?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>Tx power control in real time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42476/tx-power-control-in-real-time</link><description>Hi, 
 I want to change the tx power of message after connected, not broadcast message 
 How can I do? 
 Can I get sample code? 
 BR 
 Paul</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Jan 2019 03:18:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42476/tx-power-control-in-real-time" /><item><title>RE: Tx power control in real time</title><link>https://devzone.nordicsemi.com/thread/165620?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 03:18:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ed6297f-fbe4-4c64-9ec5-f0063e2b3cce</guid><dc:creator>natersoz</dc:creator><description>&lt;p&gt;Nice!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tx power control in real time</title><link>https://devzone.nordicsemi.com/thread/165604?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 00:11:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9110d7e-4ea9-49e6-84be-1bc285640d1a</guid><dc:creator>paul0208</dc:creator><description>&lt;p&gt;Hi, natersoz,&lt;/p&gt;
&lt;p&gt;I used this function with null handler and got the success to control tx power.&lt;/p&gt;
&lt;p&gt;Thank you for help.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tx power control in real time</title><link>https://devzone.nordicsemi.com/thread/165528?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2019 15:10:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dd93559-59f3-4fcf-8bd2-2a20489511c0</guid><dc:creator>natersoz</dc:creator><description>&lt;p&gt;The doxygen comments in the header file are your guide: See ble_gap.h:&lt;/p&gt;
&lt;p&gt;* @param[in] handle The handle parameter is interpreted depending on role:&lt;br /&gt; * - If role is @ref BLE_GAP_TX_POWER_ROLE_CONN, this value is the specific connection handle.&lt;br /&gt; &lt;strong&gt;* - If role is @ref BLE_GAP_TX_POWER_ROLE_ADV, the advertising set identified with the advertising handle,&lt;/strong&gt;&lt;br /&gt; * will use the specified transmit power, and include it in the advertising packet headers if&lt;br /&gt; * @ref ble_gap_adv_properties_t::include_tx_power set.&lt;br /&gt; * - For all other roles handle is ignored.&lt;/p&gt;
&lt;p&gt;Also, see the constraints on power level: -30 dBm is not an option.&lt;/p&gt;
&lt;p&gt;I have not yet used this option, so you&amp;#39;re just going to have to experiment with it.&lt;/p&gt;
&lt;p&gt;It is on my todo list, but higher priorities are keeping me from it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tx power control in real time</title><link>https://devzone.nordicsemi.com/thread/165407?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2019 11:07:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0abadf43-6237-450e-9acd-034c82e01570</guid><dc:creator>paul0208</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;sd_ble_gap_tx_power_set function&amp;#39;s prototype is as follow:&lt;/p&gt;
&lt;p&gt;sd_ble_gap_tx_power_set(uint8_t role, uint16_t handle, int8_t tx_power);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can I call this function like this with null handler?&lt;/p&gt;
&lt;p&gt;sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, 0, -30);&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tx power control in real time</title><link>https://devzone.nordicsemi.com/thread/165335?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2019 05:09:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63639480-85eb-4145-bb67-a4820e8b139a</guid><dc:creator>natersoz</dc:creator><description>&lt;p&gt;Take a look at sd_ble_gap_tx_power_set() in the softdevice header file ble_gap.h&lt;/p&gt;
&lt;p&gt;You should be able to change the power level upon connection from here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>