[GH-ISSUE #1823] Can WiFiManager run on ESP32-P4? #1532

Closed
opened 2026-02-28 01:30:26 +03:00 by kerem · 3 comments
Owner

Originally created by @cniedzi on GitHub (Jun 25, 2025).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1823

Hi,

Is WiFiManager compatible with ESP32-P4?
When I try to compile the project which uses WiFiManager in Arduino IDE, I get the errors:

In file included from d:\Dane\Arduino_Projekty\libraries\WiFiManager/wm_strings_en.h:21,
                 from d:\Dane\Arduino_Projekty\libraries\WiFiManager/WiFiManager.h:141,
                 from D:\Dane\Arduino_Projekty\Internet_Radio\Internet_Radio.ino:33:
d:\Dane\Arduino_Projekty\libraries\WiFiManager/wm_consts_en.h:165:46: error: 'CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER' was not declared in this scope
  165 | const wifi_country_t WM_COUNTRY_US{"US",1,11,CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
d:\Dane\Arduino_Projekty\libraries\WiFiManager/wm_consts_en.h:166:46: error: 'CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER' was not declared in this scope
  166 | const wifi_country_t WM_COUNTRY_CN{"CN",1,13,CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
d:\Dane\Arduino_Projekty\libraries\WiFiManager/wm_consts_en.h:167:46: error: 'CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER' was not declared in this scope
  167 | const wifi_country_t WM_COUNTRY_JP{"JP",1,14,CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};
Originally created by @cniedzi on GitHub (Jun 25, 2025). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1823 Hi, Is WiFiManager compatible with ESP32-P4? When I try to compile the project which uses WiFiManager in Arduino IDE, I get the errors: ``` In file included from d:\Dane\Arduino_Projekty\libraries\WiFiManager/wm_strings_en.h:21, from d:\Dane\Arduino_Projekty\libraries\WiFiManager/WiFiManager.h:141, from D:\Dane\Arduino_Projekty\Internet_Radio\Internet_Radio.ino:33: d:\Dane\Arduino_Projekty\libraries\WiFiManager/wm_consts_en.h:165:46: error: 'CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER' was not declared in this scope 165 | const wifi_country_t WM_COUNTRY_US{"US",1,11,CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER,WIFI_COUNTRY_POLICY_AUTO}; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ d:\Dane\Arduino_Projekty\libraries\WiFiManager/wm_consts_en.h:166:46: error: 'CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER' was not declared in this scope 166 | const wifi_country_t WM_COUNTRY_CN{"CN",1,13,CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER,WIFI_COUNTRY_POLICY_AUTO}; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ d:\Dane\Arduino_Projekty\libraries\WiFiManager/wm_consts_en.h:167:46: error: 'CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER' was not declared in this scope 167 | const wifi_country_t WM_COUNTRY_JP{"JP",1,14,CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER,WIFI_COUNTRY_POLICY_AUTO}; ```
kerem closed this issue 2026-02-28 01:30:26 +03:00
Author
Owner

@cniedzi commented on GitHub (Jul 19, 2025):

it works with P4

<!-- gh-comment-id:3092241021 --> @cniedzi commented on GitHub (Jul 19, 2025): it works with P4
Author
Owner

@tablatronix commented on GitHub (Jul 19, 2025):

No idea I don't have any of the new dev boards. Espressif hasn't reached out in a while.

<!-- gh-comment-id:3092525922 --> @tablatronix commented on GitHub (Jul 19, 2025): No idea I don't have any of the new dev boards. Espressif hasn't reached out in a while.
Author
Owner

@cniedzi commented on GitHub (Jul 19, 2025):

The only thing is to define CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER and set it to it's 20dB default value. It isn't defined in ESP32-P4 core for some reason.

<!-- gh-comment-id:3092542759 --> @cniedzi commented on GitHub (Jul 19, 2025): The only thing is to define CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER and set it to it's 20dB default value. It isn't defined in ESP32-P4 core for some reason.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1532
No description provided.