Comments (3)
Doing a bit more digging on this. The memory leak happens at any point no Google Home device is found. For example if you run the ghn.device(displayName)
once in the initial setup()
function using a displayName
that is not on the network the mDNS lookups (ESP8266mDNS.cpp/h
) will continue to search for it after the timeout from esp8266-google-home-notifier.cpp/h
.
Code sample:
...
void setup() {
Serial.begin(115200);
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
}
Serial.println("connecting to Google Home...");
if (ghn.device(displayName, "en") != true) {
Serial.println(ghn.getLastError());
return;
}
Serial.print("found Google Home(");
}
void loop() {
}
...
from esp8266-google-home-notifier.
The issue seems to be cause by GoogleHomeNotifier::device
repeating to call to MDNS.begin(hostString)
in ESP8266mDNS.cpp
.
from esp8266-google-home-notifier.
Thanks!
from esp8266-google-home-notifier.
Related Issues (20)
- If your device is named "Google Home" it will be ignored HOT 1
- Add dependency on mDNS rather than bundling it
- language HOT 4
- mDNS timeout. HOT 1
- Notification sound mixed with speech
- Enabling Bluetooth on ESP32, causing Home notifier "connection failed" error HOT 1
- How can I receive data/commands from GH? HOT 1
- Failed to get TKK. trying again... HOT 1
- Failed to get TKK HOT 1
- Failed to get TKK HOT 1
- ESP32 ERRORS... HOT 1
- mDNS issues HOT 2
- Anyone interested in additional cast commands? e.g. setVolume, pause, stop, seek, getStatus
- Can't push any notify to Google Home HOT 5
- Does notifier require a Chromecast device? HOT 2
- Possible fix for ESP32 not working. HOT 2
- Failed to Connect to Google Home Mini HOT 1
- announcement does not work HOT 12
- ESP8266 Example Compile Error HOT 5
- Many Google Devices and OOM Errors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp8266-google-home-notifier.