Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why do you use device.Handshake() instead of p100.handshake()? #3

Open
JWTeunisse opened this issue Nov 22, 2021 · 1 comment
Open

Comments

@JWTeunisse
Copy link

I'm trying to understand your example code to use it myself.
plug := p100.New("192.168.0.100", "[email protected]", "password")

if err := device.Handshake(); err != nil {
log.Panic(err)
}
Why do you use device.Handshake()? And not plug.Handshake() or p100.Handshake()?
Where is the word device come from?

Thanks in advance, best regards
Jan Willem

@JWTeunisse
Copy link
Author

In the meantime I solved my above question. According to the Go language definitions you have to use plug.Handshake())

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

No branches or pull requests

1 participant