esp-nimble-cpp icon indicating copy to clipboard operation
esp-nimble-cpp copied to clipboard

Can't change transmission power without debug?

Open thekurtovic opened this issue 2 years ago • 1 comments

I wanted to make sure my esp32-s3 was using the highest value for transmission power, but for some reason it doesn't seem to change unless I have sdkconfig.h setup with these. CONFIG_NIMBLE_CPP_LOG_LEVEL_DEBUG=y CONFIG_NIMBLE_CPP_LOG_LEVEL=4

Testing with code like this btStarted(); NimBLEDevice::init("test"); int before = NimBLEDevice::getPower(); Serial.printf("ble power before %i\n", before); NimBLEDevice::setPower(ESP_PWR_LVL_P9); int after = NimBLEDevice::getPower(); Serial.printf("ble power after %i\n", after);

Output without debug ble power before 3 ble power after 3

Output with debug ble power before 3 D (3534) NimBLEDevice: >> setPower: 11 (type: 11) D (3534) NimBLEDevice: << setPower ble power after 9

thekurtovic avatar May 31 '23 18:05 thekurtovic

This may be an issue with espressif, this library simply calls the espressif function to set the power level.

h2zero avatar Jun 24 '23 02:06 h2zero