Display Power Level?

Started by Creotom, December 09, 2018, 12:45:44 PM

Creotom

Is there a simple way to read what the current TX power level is?
I have the RSSI mapped to a gauge on my screen but I'd like to also show what the current transmit power is.
Hopefully it's something as simple as the code below  ;D
But I just can't seem to find it anywhere.

Serial.print(radio.readRSSI())

TomWS

You can't get the transmitted power level in dBm, but, if you're using the RFM69ATC library then you can get the TX power setting:
   Serial.print(radio._transmitLevel);

Creotom


TomWS

With the normal library you could also do a:

Serial.print(radio.readReg(REG_PALEVEL ) & 0x1F);

But I don't care for this as it creates unnecessary traffic to the radio.