test SetOption(online)
This commit is contained in:
parent
9406962dd1
commit
8c9cd42012
5
main.go
5
main.go
@ -137,6 +137,11 @@ func main() {
|
|||||||
go ListenMQ(client, MQTGCmdQueue)
|
go ListenMQ(client, MQTGCmdQueue)
|
||||||
go ListenMe(client)
|
go ListenMe(client)
|
||||||
|
|
||||||
|
opt := td.OptionValueBoolean
|
||||||
|
opt.Value := false
|
||||||
|
_, err := client.SetOption("online", opt)
|
||||||
|
logOnError(err, "SetOption(online)")
|
||||||
|
|
||||||
fmt.Println("Started !")
|
fmt.Println("Started !")
|
||||||
|
|
||||||
// Main loop
|
// Main loop
|
||||||
|
Loading…
Reference in New Issue
Block a user