Transmit power

I see in the MKRWAN.h file there is a function for setting the power, but I can't find any documentation on the arduino reference page.
Can someone explain the argument of this function?

 bool power(_rf_mode mode, uint8_t index)

Is index the dB?

thebakker:
Is index the dB?

Hello, I'm no expert but maybe I can help.
Unfortunately, those commands aren't well documnented in my opinion. I recently experimented some troubles myself...
Checking the code, we can see that the first parameter - mode - defines whether to set the PABOOST mode and index is a value in the [0 -5] range, setting the power, 0 is the max power.

The LoRa commands are at the file you mentioned (MKRWAN.h), and you can see the implementation at the Murata side here and here.

mjunior-fitec:
index is a value in the [0 -5] range, setting the power, 0 is the max power.

I this something you found by testing, or did you find it in a datasheet?

thebakker:
I this something you found by testing, or did you find it in a datasheet?

I found it, reading the code I mentioned to you. As I told you before I don't believe there exists a good documentation of it.

I haven't tried to see the distance between every setting, but the power consumption is equal between all the settings. So there is almost no incentive to change the value to some lower transmit power