horihiro / esp8266-google-home-notifier

MIT License
103 stars 23 forks source link

If your device is named "Google Home" it will be ignored #17

Closed skezo closed 5 years ago

skezo commented 5 years ago

If your device's name is Google Home calling GoogleHomeNotifier::device will ignore it. This is caused by m_name being set as "Google Home" in esp8266-google-home-notifier.h and the strcmp(this->m_name, name) in GoogleHomeNotifier::device.

skezo commented 5 years ago

This can be resolved by setting char m_name[128] = "Google Home"; to char m_name[128] = "";