Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
horihiro committed Aug 11, 2018
1 parent 372c7b7 commit 2513e0e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions keywords.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
esp8266-google-home-notifier KEYWORD1
GoogleHomeNotifier KEYWORD1
device KEYWORD2
ip KEYWORD2
play KEYWORD2
notify KEYWORD2
4 changes: 2 additions & 2 deletions src/esp8266-google-home-notifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

char data[1024];

boolean GoogleHomeNotifier::device(const char *name, const char *locale = "en", int to = 10000)
boolean GoogleHomeNotifier::device(const char *name, const char *locale, int to)
{
int timeout = millis() + to;
int n;
Expand Down Expand Up @@ -47,7 +47,7 @@ boolean GoogleHomeNotifier::device(const char *name, const char *locale = "en",
return true;
}

boolean GoogleHomeNotifier::ip(IPAddress ip, const char *locale = "en", uint16_t port = 8009)
boolean GoogleHomeNotifier::ip(IPAddress ip, const char *locale, uint16_t port)
{
this->m_ipaddress = ip;
this->m_port = port;
Expand Down
4 changes: 2 additions & 2 deletions src/esp8266-google-home-notifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ typedef class GoogleHomeNotifier {
boolean cast(const char *phrase, const char *mp3Url);

public:
boolean device(const char *name, const char *locale /* = 'en' */, int timeout /* = 10000 */);
boolean ip(IPAddress ip, const char *locale /* = 'en' */, uint16_t port /* = 8009 */ );
boolean ip(IPAddress ip, const char *locale = "en", uint16_t port = 8009);
boolean device(const char *name, const char *locale = "en", int to = 10000);
boolean notify(const char *phrase);
boolean play(const char *mp3Url);
const IPAddress getIPAddress();
Expand Down

0 comments on commit 2513e0e

Please sign in to comment.