mbus

package
v0.0.0-...-bd14b01 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2013 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const NoHeader = 0

Variables

This section is empty.

Functions

This section is empty.

Types

type DIFs

type DIFs struct {
	DIF      string
	VIF      string
	Value    string
	Original string
}

type Frame

type Frame struct {
	Value    string
	Hexified string
	Time     time.Time
	ID       int
	Key      string
}

TODO: Load into the frame

func NewFrame

func NewFrame(fr string) (*Frame, error)

Frame creates and initializes a new frame

func (*Frame) AccessNumber

func (fr *Frame) AccessNumber() string

Get the access number

func (*Frame) Address

func (fr *Frame) Address() string

Get the adress of the device

func (*Frame) Configuration

func (fr *Frame) Configuration() string

Get the configuration field

func (*Frame) ConfigurationLength

func (fr *Frame) ConfigurationLength() int

Get the configuration length

func (*Frame) Control

func (fr *Frame) Control() int

Control type

func (*Frame) ControlInformationField

func (fr *Frame) ControlInformationField() string

Parser for the second block

func (*Frame) DataHeader

func (fr *Frame) DataHeader() int

Get information which data header is sent returns the const defined above

func (*Frame) DeviceType

func (fr *Frame) DeviceType() string

Get the device type of a specific device

func (*Frame) DeviceTypeString

func (fr *Frame) DeviceTypeString() string

Get the device type of a device as string

func (*Frame) Format

func (fr *Frame) Format() string

Type A / Type B

func (*Frame) IV

func (fr *Frame) IV() string

Additional Info

func (*Frame) Identification

func (fr *Frame) Identification() string

Get the identification of a device

func (*Frame) Length

func (fr *Frame) Length() int

Parser for the first block The length of the frame in byte (exclusive length byte)

func (*Frame) Manufacturer

func (fr *Frame) Manufacturer() string

Get the vendor of a specific device

func (*Frame) ManufacturerString

func (fr *Frame) ManufacturerString() string

TODO: Get the manufacturer as string

func (Frame) MarshalJSON

func (fr Frame) MarshalJSON() ([]byte, error)

Our socket handler for new sniffed data

func (*Frame) PlainText

func (fr *Frame) PlainText() []DIFs

Get the plain text out of a frame

func (*Frame) StatusField

func (fr *Frame) StatusField() string

Get the status field

func (*Frame) Valid

func (fr *Frame) Valid() bool

TODO: Check whether a frame is valid

func (*Frame) ValueStart

func (fr *Frame) ValueStart() int

Starting point of the encrypted value

func (*Frame) Version

func (fr *Frame) Version() int

Get the version of a specific device

Jump to

Keyboard shortcuts

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