nRF52840 transmit power BLE

I’m getting up to speed on BLE for the Argons and Borons. Is it possible to set the transmit power for BLE transmissions?. I believe the default is 8dBm. That might be the max for the Nordic chip. I have two different circumstances — one where I need to go as low as possible to conserve power and the other where I have grid power and need to punch through potential obstacles over 300 feet.

BLE.setTxPower()

Sets the BLE transmit power. The default is 0 dBm.

Valid values are: -20, -16, -12, -8, -4, 0, 4, 8.

-20 is the lowest power, and 8 is the highest power.

Returns 0 on success or a non-zero error code.

// PROTOTYPE
int setTxPower(int8_t txPower) const;

// EXAMPLE
BLE.setTxPower(-12); // Use lower power

Returns 0 on success or a non-zero error code.

This is what you want - it is in the reference documents for Argon!

2 Likes

Thanks armor for the post. Guess I missed it when I scanned through the docs. You don’t by chance know if by setting BLE.setTxPower it also sets the power usage for Mesh?

It doesn’t and all Mesh functionality has now been deprecated.

1 Like