This commit is contained in:
@@ -9,6 +9,12 @@ import (
|
||||
mqtt "github.com/eclipse/paho.mqtt.golang"
|
||||
)
|
||||
|
||||
// contents of struct mostly don't matter for toolkit.
|
||||
type incomingMessage struct {
|
||||
Type string `json:"type"`
|
||||
Image string `json:"image"`
|
||||
}
|
||||
|
||||
// listens on topic for messages
|
||||
func listener(mqMessages chan mqtt.Message) {
|
||||
opts := setupMQTT()
|
||||
|
||||
Reference in New Issue
Block a user