Documentation ¶
Overview ¶
Package gotapo working with camera tapo like c200, c310 by http
Index ¶
Constants ¶
View Source
const ( // MethodGet as link to methods MethodGet = "get" // MethodSet as link to methods MethodSet = "set" // MethodMR as link to methods MethodMR = "multipleRequest" // MethodDo as link to methods MethodDo = "do" // MethodLogin as link to methods MethodLogin = "login" EncryptType = "3" )
Variables ¶
View Source
var (
// DefXBool need for Postfix xBool
DefXBool = "Def"
)
Functions ¶
This section is empty.
Types ¶
type Stages ¶ added in v1.0.2
type Stages struct { Next string `🟢:"🔴" 🔴:"🟢" +:"-" -:"+" on:"off" off:"on"` Binary string `-:"true" +:"true" 🟢:"true" 🔴:"true" on:"true" off:"true"` True string `+:"true" 🟢:"true" on:"true"` False string `-:"true" 🔴:"true" off:"true"` Command string `!:"true" @:"true" 🟢:"true" 🔴:"true" 🔵:"true" -:"true" +:"true" /:"true"` Special string `!:"json" @:"exec"` // contains filtered or unexported fields }
Stages type of unnormal get bool value. (with vals)
type Tapo ¶
type Tapo struct { Parameters map[string]string Host string Port string UserDef string User string Password string UserID string Rotate bool FishEye bool Flip bool TimeStr string LastFile string Elements *elements Settings *settings NextPreset func() Reboot func() InsecureAuth bool Iv []byte Key []byte Seq string Encrypt bool // contains filtered or unexported fields }
Tapo is general type with Vals
Click to show internal directories.
Click to hide internal directories.