mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #1306] Change "CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO" #1120
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1120
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @whogarden on GitHub (Oct 29, 2021).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1306
Basic Infos
Hardware
ESP-WROOM-32 4MB (Dev board)
Description
Arduino IDE 1.8.13
Board selected : ESP32 Dev Module
Partition Scheme: "Default 4MB with spiffs(1.2MB APP/1.5MB SPIFFS)"
Sketch : ..\libraries\WiFiManager\examples\Basic\Basic.ino
Library from https://github.com/tzapu/WiFiManager version=2.0.4-beta
Compilation error with Arduino core for the ESP32 release v2.0.1RC1
Error :
..\libraries\WiFiManager/strings_en.h:374:46: error: 'CONFIG_ESP32_PHY_MAX_TX_POWER' was not declared in this scope
const wifi_country_t WM_COUNTRY_US{"US",1,11,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
with Arduino core for the ESP32 release v2.0.1RC1
The define 'CONFIG_ESP32_PHY_MAX_TX_POWER' is renamed
Please see issue #5821
Sketch
Debug Messages:
In file included from E:\Documents\me\Labo\Arduino\Croquis\libraries\WiFiManager-master/WiFiManager.h:114,
from C:\Users\me\AppData\Local\Temp\arduino_modified_sketch_866864\Basic.ino:1:
E:\Documents\me\Labo\Arduino\Croquis\libraries\WiFiManager-master/strings_en.h:374:46: error: 'CONFIG_ESP32_PHY_MAX_TX_POWER' was not declared in this scope
const wifi_country_t WM_COUNTRY_US{"US",1,11,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
E:\Documents\me\Labo\Arduino\Croquis\libraries\WiFiManager-master/strings_en.h:374:46: note: suggested alternative: 'CONFIG_ESP_PHY_MAX_TX_POWER'
const wifi_country_t WM_COUNTRY_US{"US",1,11,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_ESP_PHY_MAX_TX_POWER
E:\Documents\me\Labo\Arduino\Croquis\libraries\WiFiManager-master/strings_en.h:375:46: error: 'CONFIG_ESP32_PHY_MAX_TX_POWER' was not declared in this scope
const wifi_country_t WM_COUNTRY_CN{"CN",1,13,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
E:\Documents\me\Labo\Arduino\Croquis\libraries\WiFiManager-master/strings_en.h:375:46: note: suggested alternative: 'CONFIG_ESP_PHY_MAX_TX_POWER'
const wifi_country_t WM_COUNTRY_CN{"CN",1,13,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_ESP_PHY_MAX_TX_POWER
E:\Documents\me\Labo\Arduino\Croquis\libraries\WiFiManager-master/strings_en.h:376:46: error: 'CONFIG_ESP32_PHY_MAX_TX_POWER' was not declared in this scope
const wifi_country_t WM_COUNTRY_JP{"JP",1,14,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
E:\Documents\me\Labo\Arduino\Croquis\libraries\WiFiManager-master/strings_en.h:376:46: note: suggested alternative: 'CONFIG_ESP_PHY_MAX_TX_POWER'
const wifi_country_t WM_COUNTRY_JP{"JP",1,14,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_ESP_PHY_MAX_TX_POWER
exit status 1
Erreur de compilation pour la carte ESP32 Dev Module
@JasXSL commented on GitHub (Oct 30, 2021):
To clarify the above:
This is the original issue https://github.com/espressif/arduino-esp32/issues/5821
CONFIG_ESP32_PHY_MAX_TX_POWERwas renamed toCONFIG_ESP_PHY_MAX_WIFI_TX_POWERin the latest ESP core.@tablatronix commented on GitHub (Oct 30, 2021):
Yeah just found this also building for the S2
@touchgadget commented on GitHub (Oct 30, 2021):
There is a backwards compatibility #define for CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER in sdkconfig.h. It has the same value as CONFIG_ESP32_PHY_MAX_TX_POWER and CONFIG_ESP_PHY_MAX_WIFI_TX_POWER. The advantage is this works for arduino-esp32 1.0.6, 2.0.0, and 2.0.1-RC1. There is no backwards compat #define for CONFIG_ESP32_PHY_MAX_TX_POWER.
@tablatronix commented on GitHub (Oct 30, 2021):
Thanks for looking into it, I had to just do something to fix the event names that also all changed using a ver check
@whogarden commented on GitHub (Nov 4, 2021):
Please, can you increase the version number in library.properties.
Thank you.
@tablatronix commented on GitHub (Nov 4, 2021):
Sure I will cut a new beta in a bit