wsutil

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Status

func Status(zid string, mode string, connection httputil.RingWSConnection) (string, error)

Types

type RingDeviceInfo

type RingDeviceInfo struct {
	Message   string           `json:"msg"`
	DataType  string           `json:"datatype"`
	Sequence  int              `json:"seq"`
	Source    string           `json:"src"`
	Body      []httputil.Body  `json:"body"`
	SessionID int64            `json:"sessionId"`
	Status    int              `json:"status"`
	Context   httputil.Context `json:"context"`
}

RingDeviceInfo represents the raw websocket respone from Ring Alarm WebService

func ActiveDevices

func ActiveDevices(connection httputil.RingWSConnection) (*RingDeviceInfo, error)

ActiveDevices - Find all active devices in the Ring Alarm account.

Jump to

Keyboard shortcuts

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