我在4个ESP8266模块上测试了NodeMCU固件,我对模块的WiFi范围有问题(只有8米) .
我试图切换到Arduino ESP8266核心固件和voilà,模块有更好的范围(> 12米) . 我认为NodeMCU没有将ESP8266设置为最大功率 .
我查看了Arduino代码,它包含一个 setOutputPower 方法,用于设置ESP8266的RF功率级别 . 如何在不修改固件的情况下在NodeMCU固件中设置此选项?
setOutputPower
更高的RF功率水平意味着更高的功耗 . 如果您使用电池运行设备,则需要 balancer 选项 .
NodeMCU提供 wifi.setphymode() 来控制它 . documentation为您提供了一个很好的概述pyh模式与典型功耗的关系 .
wifi.setphymode()
Update 2017-11-19
有's a PR in the making that' ll可让您控制SDK中的 system_phy_set_max_tpw :https://github.com/nodemcu/nodemcu-firmware/pull/2171
system_phy_set_max_tpw
1 回答
更高的RF功率水平意味着更高的功耗 . 如果您使用电池运行设备,则需要 balancer 选项 .
NodeMCU提供
wifi.setphymode()
来控制它 . documentation为您提供了一个很好的概述pyh模式与典型功耗的关系 .Update 2017-11-19
有's a PR in the making that' ll可让您控制SDK中的
system_phy_set_max_tpw
:https://github.com/nodemcu/nodemcu-firmware/pull/2171