[GH-ISSUE #1345] ambiguous overload for operator #1154

Open
opened 2026-02-28 01:28:46 +03:00 by kerem · 1 comment
Owner

Originally created by @pplanel on GitHub (Jan 24, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1345

Basic Infos

Hardware

WiFimanager Branch/Release: Master

Esp8266/Esp32:

Hardware: esp01

Core Version: 2.4.0, staging

Description

On building the firmware 2 problems occour related to ambiguous overload for operator.

Opened a PR ( #1344 ) that fixes the problem on my environment, would appreciate guidance to generalize and get to know better the decisions on that scope.
Thanks

Settings in IDE

Module:
toolchain-xtensa@~2.100100.200706
framework-arduinoespressif8266@https://github.com/esp8266/Arduino.git

Additional libraries:

Sketch

#BEGIN
#include <Arduino.h>

void setup() {

}

void loop() {

}
#END

Debug Messages

.pio/libdeps/esp01_1m/WiFiManager/WiFiManager.cpp: In member function 'void WiFiManager::handleInfo()':
.pio/libdeps/esp01_1m/WiFiManager/WiFiManager.cpp:1907:19: error: ambiguous overload for 'operator!=' (operand types are 'String' and 'int')
 1907 |     if(infoids[i] != NULL) page += getInfoData(infoids[i]);
----
.pio/libdeps/esp01_1m/WiFiManager/WiFiManager.cpp: In member function 'boolean WiFiManager::validApPassword()':
.pio/libdeps/esp01_1m/WiFiManager/WiFiManager.cpp:3230:19: error: ambiguous overload for 'operator==' (operand types are 'String' and 'int')
 3230 |   if (_apPassword == NULL) _apPassword = "";
Originally created by @pplanel on GitHub (Jan 24, 2022). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1345 ### Basic Infos #### Hardware WiFimanager Branch/Release: Master Esp8266/Esp32: Hardware: esp01 Core Version: 2.4.0, staging ### Description On building the firmware 2 problems occour related to ambiguous overload for operator. Opened a PR ( #1344 ) that fixes the problem on my environment, would appreciate guidance to generalize and get to know better the decisions on that scope. Thanks ### Settings in IDE Module: toolchain-xtensa@~2.100100.200706 framework-arduinoespressif8266@https://github.com/esp8266/Arduino.git Additional libraries: ### Sketch ```cpp #BEGIN #include <Arduino.h> void setup() { } void loop() { } #END ``` ### Debug Messages ``` .pio/libdeps/esp01_1m/WiFiManager/WiFiManager.cpp: In member function 'void WiFiManager::handleInfo()': .pio/libdeps/esp01_1m/WiFiManager/WiFiManager.cpp:1907:19: error: ambiguous overload for 'operator!=' (operand types are 'String' and 'int') 1907 | if(infoids[i] != NULL) page += getInfoData(infoids[i]); ---- .pio/libdeps/esp01_1m/WiFiManager/WiFiManager.cpp: In member function 'boolean WiFiManager::validApPassword()': .pio/libdeps/esp01_1m/WiFiManager/WiFiManager.cpp:3230:19: error: ambiguous overload for 'operator==' (operand types are 'String' and 'int') 3230 | if (_apPassword == NULL) _apPassword = ""; ```
Author
Owner

@tablatronix commented on GitHub (Feb 24, 2022):

reverting

2.3.0 esp8266
error: 'class String' has no member named 'isEmpty'

<!-- gh-comment-id:1050095913 --> @tablatronix commented on GitHub (Feb 24, 2022): reverting 2.3.0 esp8266 error: 'class String' has no member named 'isEmpty'
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#1154
No description provided.