diff --git a/README.md b/README.md index 650e980..4e5c788 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Usage of ./dht2mqtt: -log-level string log level (debug, info, warn, error, fatal, panic, disabled) (default "info") -mqtt-topic-root string - MQTT url, example: dh2mqtt/ (default "dh2mqtt/") + MQTT url, example: dht2mqtt/ (default "dht2mqtt/") -mqtt-url string MQTT url, example: tcp://127.0.0.1:1883 -mqtt-username string diff --git a/cmd/dht2mqtt/config.go b/cmd/dht2mqtt/config.go index e6a74bf..601a644 100644 --- a/cmd/dht2mqtt/config.go +++ b/cmd/dht2mqtt/config.go @@ -27,7 +27,7 @@ func readConfig() config { fahrenheit := flag.Bool("fahrenheit", false, "Temperature unit. Fahrenheit if set, default is Celcius") mqttUrl := flag.String("mqtt-url", "", "MQTT url, example: tcp://127.0.0.1:1883") - mqttTopicRoot := flag.String("mqtt-topic-root", "dh2mqtt/", "MQTT url, example: dh2mqtt/") + mqttTopicRoot := flag.String("mqtt-topic-root", "dht2mqtt/", "MQTT url, example: dht2mqtt/") mqttUsername := flag.String("mqtt-username", "", "username to connect to MQTT. The password must be set as in 'DHT2MQTT_PASSWORD' varenv") mqttPassword := os.Getenv("DHT2MQTT_PASSWORD")