RUI3 (RAK Unified Interface 3) - RAK4631
RAKBleSettings::txPower

Public Member Functions

bool set (int8_t txpwr)
 
int8_t get ()
 

Detailed Description

Description

Member Function Documentation

◆ set()

bool set ( int8_t  txpwr)
Description
Set the current transmit power level for the module's radio
Syntax
api.ble.settings.txPower.set(txpwr)
Parameters
txpwrThe TX power level (dBm), which can be one of the following values (from lowest to higher transmit power):
0~8 , -4,-8,-12,-16,-20,-40
Returns
bool
Return values
TRUEfor success
FALSEfor failure
Examples:
BLE_Configuration/src/app.cpp.

◆ get()

int8_t get ( )
Description
Get the current transmit power level (in dBm)
Syntax
api.ble.settings.txPower.get()
Returns
the current transmit power
Examples:
BLE_Configuration/src/app.cpp.