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

API to set RF TX Power Level #764

Closed
Humancell opened this issue Sep 9, 2015 · 5 comments
Closed

API to set RF TX Power Level #764

Humancell opened this issue Sep 9, 2015 · 5 comments

Comments

@Humancell
Copy link

Humancell commented Sep 9, 2015

I have looked around and can not find an API to set the Wifi RF TX Power Level. According to this post, the SDK esp_iot_sdk_v1.1.0_15_05_22 added this capability.

Is this already exposed someplace, or can this API be exposed? I have not been able to locate it in any documentation here.

http://www.esp8266.com/viewtopic.php?f=13&t=3072&sid=39bf5cb2ff5f17bbc6faf06503064cc3&start=5#p18209

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@avivgr
Copy link

avivgr commented Dec 5, 2015

Any update? i am looking for the same thing. Also wondering what is the default max power in case the set api is not explicitly called?

@chaeplin
Copy link
Contributor

use WiFI.setOutputPower

void ESP8266WiFiGenericClass::setOutputPower(float dBm) {
if(dBm > 20.5) {
dBm = 20.5;
} else if(dBm < 0) {
dBm = 0;
}
uint8_t val = (dBm*4.0f);
system_phy_set_max_tpw(val);
}

@babylonx
Copy link

What happens if you never call setOutputPower? What is the default transmission power set?

@Stefano-Orsolini
Copy link
Contributor

@babylonx
from measurements I can tell that it sets to maximum TX power.
I see 19dBm difference between default and using setOutputPower(0)

@devyte
Copy link
Collaborator

devyte commented Oct 20, 2017

The NONOS SDK api reference for SDK v2.1.0 explains that the function takes values in the range [0-82], which means the argument for our wrapper is in the range [0-20.5].
Closing.

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

6 participants