making moves
All checks were successful
build rgb-board / build (push) Successful in 2m24s

This commit is contained in:
2024-02-15 22:42:18 +00:00
parent 89ad771eab
commit 476ed823bc
6 changed files with 191 additions and 151 deletions

View File

@@ -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()