Hey, I would love some guidance on this:
1. I have one NRF52840 advertising constantly at 8dbm, this device is connected to power so it's hard coded to the maximum transfer power.
2. I have another battery powered NRF52840 that will occasionally scan for the device above. I want this device to be able to set its tx power to the minimum necessary to have a good link, based on the measured rssi of the advertising device, as to save battery.
I'm already scanning and logging the rssi values in BLE_GAP_EVT_ADV_REPORT, and can call sd_ble_gap_tx_power_set to set the power level. I would just love some guidance on what power level to set for what rssi range, hopefully there's some physics math involved here that I can't seem to find in google that I can mostly follow?