Skip to content

Commit

Permalink
Update checker after changes for 1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
pablovicentecybus committed Apr 11, 2024
1 parent 253b1a0 commit 41876fb
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions cmd/checker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ func main() {
key := flag.String("key", "", "Path to TLS key file")
insecure := flag.Bool("insecure", false, "Set to true to allow self signed certificates")
mqtts := flag.Bool("mqtts", false, "Set to true to use MQTTS")
cleanSession := flag.Bool("cleanSession", true, "Set to true for clean MQTT sessions or false to keep session")
clientID := flag.String("clientID", "", "Custom MQTT clientID")
keepAliveTimeout := flag.Int64("keepAliveTimeout", 5000, "Set the amount of time (in seconds) that the client should wait before sending a PING request to the broker")

flag.Parse()

Expand All @@ -41,14 +44,17 @@ func main() {

// General Client Config
mqttClientConfig := MQTTClient.Config{
TargetTopic: targetTopic,
Username: username,
Password: password,
Host: host,
Port: port,
QoS: qos,
Insecure: insecure,
MQTTS: mqtts,
TargetTopic: targetTopic,
Username: username,
Password: password,
Host: host,
Port: port,
QoS: qos,
Insecure: insecure,
MQTTS: mqtts,
CleanSession: cleanSession,
ClientID: clientID,
KeepAliveTimeout: keepAliveTimeout,
}

// If ca, cert, and key were set configure TLS
Expand Down

0 comments on commit 41876fb

Please sign in to comment.