vesync

package module
v0.0.0-...-aee031f Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: LGPL-2.1 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiRateLimit int64 = 30
View Source
var ApiTimeout = 5
View Source
var AppVersion = "2.5.1"
View Source
var BaseUrl = "https://smartapi.vesync.com"
View Source
var BypassAppV = "VeSync 3.0.51"
View Source
var DefaultRegion = "US"
View Source
var MobileId = "1234567890123456"
View Source
var PhoneBrand = "SM N9005"
View Source
var PhoneOs = "Android"
View Source
var UserType = "1"

Functions

func CallApi

func CallApi(api string, method string, headers map[string]interface{}, jsonMap map[string]interface{}, result *map[string]interface{}) (int, error)

func CheckCode

func CheckCode(r map[string]interface{}) bool

func ReqBody

func ReqBody(manager VeSync, type_ string) map[string]interface{}

func ReqBodyBase

func ReqBodyBase(manager VeSync) map[string]interface{}

func ReqBodyDetails

func ReqBodyDetails() map[string]interface{}

Types

type VeSync

type VeSync struct {
	Username       string
	TimeZone       string
	Email          string
	Password       string
	Token          string
	AccountId      string
	Devices        []string
	Enabled        bool
	UpdateInterval int64
	LastUpdateTs   int64
	InProcess      bool
	// contains filtered or unexported fields
}

func NewVeSync

func NewVeSync(username string, password string, timeZone string) *VeSync

func (VeSync) Login

func (manager VeSync) Login() (bool, error)

type VeSync300S

type VeSync300S struct {
}

type VeSyncAir131

type VeSyncAir131 struct {
}

type VeSyncBulbESL100

type VeSyncBulbESL100 struct {
}

type VeSyncBulbESL100CW

type VeSyncBulbESL100CW struct {
}

type VeSyncDimmerSwitch

type VeSyncDimmerSwitch struct {
}

type VeSyncOutdoorPlug

type VeSyncOutdoorPlug struct {
}

type VeSyncOutlet10A

type VeSyncOutlet10A struct {
}

type VeSyncOutlet15A

type VeSyncOutlet15A struct {
}

type VeSyncOutlet7A

type VeSyncOutlet7A struct {
}

type VeSyncWallSwitch

type VeSyncWallSwitch struct {
}

Jump to

Keyboard shortcuts

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