Page 1 of 1

Hardcoding BLE TX Power

Posted: Mon Feb 10, 2020 6:43 pm
by forum_user
I'm interested in hardcoding the maximum supported TX power value for BLE scans for hardware testing. According to a recent post, +9db is the max supported value via the esp-idf API: ... -493992705

It seems this has been briefly discussed previously and is a planned feature: ... -503046267 ... -540526800

I don't need to modify it on the fly, so hardcoding this prior to firmware compilation is fine. Could anyone give me some basic guidance on how to achieve this?

Re: Hardcoding BLE TX Power

Posted: Sat Feb 15, 2020 5:11 am
by jimmo
I think you should be able to add the call to esp_ble_tx_power_set in ports/esp32/nimble.c / mp_bluetooth_nimble_port_preinit()