mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #1628] Compilation Error - 'esp_wifi_set_country_code' was not declared in this scope #1387
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#1387
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 @wagenbm on GitHub (Jun 18, 2023).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1628
Basic Infos
WiFimanager Branch/Release: Master
IDE
Arduino IDE v2.1.0
Board Selection in IDE: FireBeetle ESP32-E
Installed library for FireBeetle: DFRobot ESP32 Boards
Hardware
Hardware: ESP32-E Firebeetle
Description
Problem description
I am not able to compile my program when using the Wifimanager. I am always getting the following error:
c:\ESP32\libraries\WiFiManager\WiFiManager.cpp: In member function 'bool WiFiManager::WiFiSetCountry()':
c:\ESP32\libraries\WiFiManager\WiFiManager.cpp:3552:11: error: 'esp_wifi_set_country_code' was not declared in this scope
err = esp_wifi_set_country_code(_wificountry.c_str(), true);
^~~~~~~~~~~~~~~~~~~~~~~~~
c:\ESP32\libraries\WiFiManager\WiFiManager.cpp:3552:11: note: suggested alternative: 'esp_wifi_set_country'
err = esp_wifi_set_country_code(_wificountry.c_str(), true);
^~~~~~~~~~~~~~~~~~~~~~~~~
esp_wifi_set_country
exit status 1
I tried with downgrading the version and found out, that the problem happens as of version 2.0.12beta.
I figured out, that the problem disappears, when changing the board selection in Arduino IDE. As I wanted to try it out with a different Board, I changed in the IDE the Board selection to 'ESP32 Dev Module'. With this selection, there is no compilation error, also the latest version works fine. Is the FireBeetle probably not supported?
Sketch
@Sukeczech commented on GitHub (Nov 6, 2024):
the problem still persists even on the latest version, how to solve it?
@tablatronix commented on GitHub (Nov 8, 2024):
I assume the wrong libraries are being included, or its pinned to an older version of the SDK, see if there is an updated board def for that board, or remove and reinstall it, if its outdated then you might have to just use another board def
@Sukeczech commented on GitHub (Nov 8, 2024):
When I put the older version it works. But from 2.0.12beta up id did not.