Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

IP address 0.0.0.0:0 #12

Closed
krupaw2 opened this issue Oct 31, 2018 · 6 comments
Closed

IP address 0.0.0.0:0 #12

krupaw2 opened this issue Oct 31, 2018 · 6 comments

Comments

@krupaw2
Copy link

krupaw2 commented Oct 31, 2018

Any suggestion?

connecting to Google Home...
found Google Home(0.0.0.0:0)
Google Home's IP address/port is not set. Call 'device' or 'ip' method before calling 'cast' method.

@horihiro
Copy link
Owner

horihiro commented Nov 1, 2018

I haven't experienced that.

Could you please check your Google Home'a IP address using Google Home App for smartphone?

@krupaw2
Copy link
Author

krupaw2 commented Nov 1, 2018

My address is 192.168.0.100

I try add:
ghn.ip(192.168.0.100, "en", 5353);
but i recive compilation error:
GoogleSay:30:8: error: too many decimal points in number

ghn.ip(192.168.0.100, "en", 5353);

@horihiro
Copy link
Owner

horihiro commented Nov 1, 2018

The type of first argument of method ip() is IPAddress class.

Please refer to following.
https://www.arduino.cc/en/Reference/EthernetIPAddress

And Google Home uses port 8009 usually.
How did you decide the port number?

@krupaw2
Copy link
Author

krupaw2 commented Nov 2, 2018

Thank you very much for your commitment.
I found such a hint somewhere on YT

I changed to:
ghn.ip ((192, 168, 0, 100), "en", 8009);
Now it compiles correctly, but unfortunately it does not work - receives message:
found Google Home (100.0.0.0:8009)

Ok, now its working:

IPAddress ip(192, 168, 0, 100);
ghn.ip(ip, "en", 8009);

@horihiro
Copy link
Owner

horihiro commented Nov 4, 2018

could I close this issue?

@krupaw2 krupaw2 closed this as completed Nov 4, 2018
@krupaw2
Copy link
Author

krupaw2 commented Nov 4, 2018

Of course - everything works perfectly :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants