Skip to content

Commit

Permalink
NOISSUE - Remove deployments and fix mqtt client id (#17)
Browse files Browse the repository at this point in the history
* remove deployments

Signed-off-by: Mirko Teodorovic <[email protected]>

* change mqtt client id

Signed-off-by: Mirko Teodorovic <[email protected]>
  • Loading branch information
mteodor authored and drasko committed Jan 28, 2020
1 parent e744f6a commit 75ac451
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
3 changes: 2 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,10 @@ func loadConfig(logger logger.Logger) (config.Config, error) {
}

func connectToMQTTBroker(mqttURL, thingID, thingKey string, logger logger.Logger) paho.Client {
clientID := fmt.Sprintf("agent-%s", thingID)
opts := paho.NewClientOptions()
opts.AddBroker(mqttURL)
opts.SetClientID("agent")
opts.SetClientID(clientID)
opts.SetUsername(thingID)
opts.SetPassword(thingKey)
opts.SetCleanSession(true)
Expand Down
17 changes: 0 additions & 17 deletions deployments/Dockerfile

This file was deleted.

0 comments on commit 75ac451

Please sign in to comment.