Mixiaoxiao / Arduino-HomeKit-ESP8266

Native Apple HomeKit accessory implementation for the ESP8266 Arduino core.
MIT License
1.51k stars 277 forks source link

fix: It base64 error if use with WifiManager #183

Open mrthiti opened 2 years ago

mrthiti commented 2 years ago

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.

MarkBarbieri commented 2 years ago

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

mrthiti commented 2 years ago

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

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

thenewwazoo commented 10 months ago

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