Skip to content

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

@JWTeunisse

Description

@JWTeunisse

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions