Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't change transmission power without debug? #124

Open
thekurtovic opened this issue May 31, 2023 · 1 comment
Open

Can't change transmission power without debug? #124

thekurtovic opened this issue May 31, 2023 · 1 comment

Comments

@thekurtovic
Copy link

thekurtovic commented May 31, 2023

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

@h2zero
Copy link
Owner

h2zero commented Jun 24, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants