As the title said, RUI3 api.lorawan.txp.get() does not reflect the real TX power level when using ADR.
Using a power meter from Nordic I can see the peak current decreased after ADR goes to DR5. Which indicate ADR (should be) reducing TX power. However, api.lorawan.txp.get() still return 0, which indicate MaxEIRP. The picture below show the current consumption of the sensor.
Thanks for the replay, however, while trying the API I found that even with ADR enabled, calling api.lorawan.txp.set(0) right before queuing the packet can set the TX power (override ADR’s setting) even with ADR enable.
Is there any API to access the setting used by ADR?
The testing is as follow:
Set Tx power = 0
Queue packet, result: Packet send with Txpwr = 0
Queue a new packet. result: Packet send with Txpwr = ADR’s setting