Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConnectHandler paho.OnConnectHandler = func(client paho.Client) { log.Println("Connected") opts := client.OptionsReader() topic := opts.ClientID() token := client.Subscribe(topic, 1, nil) token.Wait() log.Printf("Subscribed as %v\n", topic) }
View Source
var ConnectLostHandler paho.ConnectionLostHandler = func(client paho.Client, err error) { log.Printf("Connect lost: %v\n", err) }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.