Arduino-HomeKit-ESP8266 icon indicating copy to clipboard operation
Arduino-HomeKit-ESP8266 copied to clipboard

fix: It base64 error if use with WifiManager

Open mrthiti opened this issue 2 years ago • 3 comments

If use with WifiManager that it error about base64 show in below.

image

The root cause is base64.h and base64.c conflict with core libraries.

mrthiti avatar Aug 23 '22 15:08 mrthiti

Did you load just this one include in wifi_info.h?

#include <WiFiManager.h>

I think some examples also include other headers, including base64.h.

When I include only this header, I don't have these conflicts.

Did you manually add extra libraries like ESP8266Webserver? I think that's also not required as it's included in WiFiManager and will also cause this conflict

MarkBarbieri avatar Aug 23 '22 21:08 MarkBarbieri

Yes, I include "#include <WiFiManager.h>" in my project that it Error because in WiFiManager include "base64.h" as well.

I mean WiFiManager use ESP8266Webserver then ESP8266Webserver include base64.h.

mrthiti avatar Aug 24 '22 02:08 mrthiti

I just hit this bug. @Mixiaoxiao, it would be wonderful if this (and the other PRs) could be merged.

thenewwazoo avatar Dec 06 '23 06:12 thenewwazoo