Skip to content

Package hlk-sw16 created to help manage 16x relay switches electronic module.

License

Notifications You must be signed in to change notification settings

vitaly-kashtalyan/hlk-sw16

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HLK-SW16

Build Status

Description:

Package hlk-sw16 created to help manage 16x relay switches electronic module.

Install package:

go get -u github.com/vitaly-kashtalyan/hlk-sw16

You can also manually git clone the repository to:

$GOPATH/src/github.com/vitaly-kashtalyan/hlk-sw16

Usage:

package main

import "github.com/vitaly-kashtalyan/hlk-sw16"

func main() {
	hlk := hlk_sw16.New("192.168.16.254", "8080")
	if hlk.Err == nil {
	    //
		_ = hlk.StatusRelays()
		msg, _ := hlk.ReadMessage()
		fmt.Println("Message: ", msg)
		_ = hlk.Close()
	}
}

About

Package hlk-sw16 created to help manage 16x relay switches electronic module.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages