Re: Tx power is always advertised as 0dBm on nrf51

2016-06-10 Thread Christopher Collins
Hi Simon, On Thu, Jun 09, 2016 at 02:53:14PM -0700, Simon Ratner wrote: [...] > The above doesn't seem to have an effect on the contents of the advertising > packet; it still advertises 0dBm. The comment in >

Tx power is always advertised as 0dBm on nrf51

2016-06-09 Thread Simon Ratner
Here's some code to get started: /* Set tx power level. */ rc = ble_phy_txpwr_set(tx_pwr_lvl); // tx_pwr_lvl == 4 if (rc != 0) { BLEPRPH_LOG(ERROR, "error setting tx power level; rc=%d\n", rc); return; } else { BLEPRPH_LOG(DEBUG, "tx_pwr_lvl=%d\n", ble_phy_txpwr_get()); //