esp8266-google-home-notifier icon indicating copy to clipboard operation
esp8266-google-home-notifier copied to clipboard

ESP8266 Example Compile Error

Open pr-wiley opened this issue 3 years ago • 5 comments

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 avatar Sep 15 '21 11:09 pr-wiley

I got the same error.

DanBar1971 avatar Sep 28 '21 09:09 DanBar1971

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.

horihiro avatar Sep 28 '21 22:09 horihiro

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.

ddebasilio avatar Feb 03 '22 11:02 ddebasilio

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

wiltwong avatar Feb 09 '22 08:02 wiltwong

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.

horihiro avatar Feb 09 '22 22:02 horihiro