Fix execution on rpi

This commit is contained in:
cyrilix committed 2020-01-01 19:36:22 +01:00
1 parent c1286d2246
commit 7b0cb1c71f
334 files changed
+219664 -93

No files matched your search

+2 -2
View File
@@ -10,7 +10,7 @@ import (
)
const (
DefaultClientId = "robocar-throttle"
DefaultClientId = "robocar-throttle"
DefaultThrottleMin = 0.3
)
@@ -51,7 +51,7 @@ func main() {
}
defer client.Disconnect(50)
pub := mqttdevice.NewPahoMqttPubSub(mqttBroker, username, password,clientId,mqttQos, mqttRetain)
pub := mqttdevice.NewPahoMqttPubSub(client, mqttQos, mqttRetain)
p := part.NewPart(client, pub, throttleTopic, driveModeTopic, rcThrottleTopic, minThrottle, maxThrottle, 2)
defer p.Stop()