Watch mqtt topic to control simulator car
This commit is contained in:
1 parent
0f79efacf2
commit
e819f61d1b
2 files changed
+62
-6
No files matched your search
@@ -131,6 +131,10 @@ type Publisher interface {
|
||||
Publish(topic string, payload []byte) error
|
||||
}
|
||||
|
||||
func NewMqttPublisher(client mqtt.Client) *MqttPublisher {
|
||||
return &MqttPublisher{client: client}
|
||||
}
|
||||
|
||||
type MqttPublisher struct {
|
||||
client mqtt.Client
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user