This repository was archived by the owner on Aug 22, 2023. It is now read-only.
This repository was archived by the owner on Aug 22, 2023. It is now read-only.
ESP8266mDNS.h declaration before esp8266-google-home-notifier.h causes compilation errors #2
Closed
Description
Using git version of arduino-esp8266, Arduino IDE 1.8.5, Windows 10 x64.
Adding #include <ESP8266mDNS.h>
before #include <esp8266-google-home-notifier.h>
causes compilation issues. I'm guessing the internal ESP8266mDNS.h is interfering with this.
C:\Users\xxxx\Dropbox\Arduino\libraries\arduino_244670\src\esp8266-google-home-notifier.cpp: In member function 'boolean GoogleHomeNotifier::device(const char*, const char*, int)':
C:\Users\xxxx\Dropbox\Arduino\libraries\arduino_244670\src\esp8266-google-home-notifier.cpp:44:33: error: 'class MDNSResponder' has no member named 'txt'
if (strcmp(name, MDNS.txt(i, "fn").c_str()) == 0) {
^
Multiple libraries were found for "ESP8266mDNS.h"
Used: C:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\libraries\ESP8266mDNS
Not used: C:\Users\xxxx\Dropbox\Arduino\libraries\arduino_244670
Metadata
Metadata
Assignees
Labels
No labels