<?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>sd_ble_gap_tx_power_set() failed with errCode 0x3004</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92206/sd_ble_gap_tx_power_set-failed-with-errcode-0x3004</link><description>What is meaning of error code 0x3004? 
 
 The following is source code of calling sd_ble_gap_tx_power_set(). 
 int _gapTxPowerSet(const int8_t txPwr) { ret_code_t errCode; errCode = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, 0, txPwr); if (errCode</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Sep 2022 11:22:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92206/sd_ble_gap_tx_power_set-failed-with-errcode-0x3004" /><item><title>RE: sd_ble_gap_tx_power_set() failed with errCode 0x3004</title><link>https://devzone.nordicsemi.com/thread/387475?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2022 11:22:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c3dccdd-6adf-4c4c-99a5-1d3b548c6276</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your reply!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_tx_power_set() failed with errCode 0x3004</title><link>https://devzone.nordicsemi.com/thread/387473?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2022 11:20:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c127a71-a484-493d-8bbe-e935a03998d9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;0x3004 here is&amp;nbsp;BLE_ERROR_INVALID_ADV_HANDLE, so this means that you have provided an invalid handle value to&amp;nbsp;sd_ble_gap_tx_power_set(). You call this function twice, both for a connection, and for the advertising role. For a connection, you need to pass the connection handle of an active connection. And for advertising, you need to pass the advertising set handle that you got from the call to&amp;nbsp;sd_ble_gap_adv_set_configure(). From the code you have posted it does not seem like you have any of these yet, and in that case this cannot be set (it is premature).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_tx_power_set() failed with errCode 0x3004</title><link>https://devzone.nordicsemi.com/thread/387378?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2022 01:48:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65d3c9dc-adcc-4d20-8b6d-228bce6692ef</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3441.gap.c"&gt;devzone.nordicsemi.com/.../3441.gap.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>