Fix execution on rpi

This commit is contained in:
2020-01-01 19:36:22 +01:00
parent c1286d2246
commit 7b0cb1c71f
334 changed files with 219664 additions and 93 deletions

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