Skip to content

Commit

Permalink
docs: Add new TapoOptions param in README
Browse files Browse the repository at this point in the history
  • Loading branch information
achetronic committed Dec 11, 2023
1 parent 85dc9d2 commit 38d265b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ so I decided to research and craft a new one on my own.
"github.com/achetronic/tapogo/api/types"
)

var tapoClient *tapogo.Tapo
var response *types.ResponseSpec
var tapoClient *tapogo.Tapo
var tapoOptions *tapogo.TapoOptions{}
var response *types.ResponseSpec

var err error

tapoClient, err = tapogo.NewTapo("192.168.0.100", "username", "password")
tapoClient, err = tapogo.NewTapo("192.168.0.100", "username", "password", tapoOptions)
response, err = tapoClient.TurnOn()
response, err = tapoClient.TurnOff()
response, err = tapoClient.GetEnergyUsage()
Expand Down

0 comments on commit 38d265b

Please sign in to comment.