helpers

package
v0.0.0-...-69a5291 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SPACE = 0x20
)

Variables

This section is empty.

Functions

func GetContactStatus

func GetContactStatus(address string, contactNum string) (string, error)

GetContactStatus will report the status of the contact, returing if it is either on or off (open/closed)

func GetHardwareInfo

func GetHardwareInfo(address string) (string, string, error)

GetHardwareInfo will get all the hardware info for the iTach

func SendCommand

func SendCommand(command []byte, address string) ([]byte, *nerr.E)

SendCommand will be responsible for sending a command to the device

func TurnContactOff

func TurnContactOff(address string, contactNum string) (string, error)

TurnContactOff will set the state of the contact relay specified to off

func TurnContactOn

func TurnContactOn(address string, contactNum string) (string, error)

TurnContactOn will set the state of the contact relay to on

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL