Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

ESP8266 Example Compile Error #40

Open
pr-wiley opened this issue Sep 15, 2021 · 5 comments
Open

ESP8266 Example Compile Error #40

pr-wiley opened this issue Sep 15, 2021 · 5 comments

Comments

@pr-wiley
Copy link

pr-wiley commented Sep 15, 2021

When attempting to compile the "Simple Usage" example for 8266 using Arduino IDE vision 1.8.16 I get this compile error:

/Users/prw/Documents/Arduino/libraries/esp8266-google-home-notifier/src/ESP8266mDNS.cpp: In member function 'MDNSTxt* MDNSResponder::_getServiceTxt(char*, char*)':
/Users/prw/Documents/Arduino/libraries/esp8266-google-home-notifier/src/ESP8266mDNS.cpp:569:42: error: cannot convert 'bool' to 'MDNSTxt*' in return
569 | if (servicePtr->_txts == 0) return false;
| ^~~~~
exit status 1
Error compiling for board LOLIN(WEMOS) D1 mini (clone).

@pr-wiley pr-wiley changed the title SEP 8266 Example Compile Error ESP8266 Example Compile Error Sep 15, 2021
@DanBar1971
Copy link

I got the same error.

@horihiro
Copy link
Owner

Sorry for the delay.
I confirmed that this issue happened on ESP8266 Arduino [email protected] .

Please downgrade ESP8266 Arduino Core to 2.7.4 and try again if this is urgent though I will fix this when I can make time.

@ddebasilio
Copy link

I'm also facing similar issues. I am unable to compile the latest version of the library 😢 . Any chance that this could be fixed? I am building a weather station that should talk to google, but I would prefer to work with the latest core.

@wiltwong
Copy link

wiltwong commented Feb 9, 2022

Edit line 569 of ESP8266mDNS.cpp to return nullptr instead of false

@horihiro
Copy link
Owner

horihiro commented Feb 9, 2022

Because I don’t have any ESP8266/32 devices now, I cannot fix and release a new version for ESP8266 Arduino Core @ 3.x.
Try the above suggestion.

# Due to the above reason, I will archive this repository.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants