Skip to content

Commit

Permalink
v1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pvtom committed Apr 25, 2024
1 parent 89bbf20 commit ff10d46
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Thomas Heiny, Wolfsburg, Germany
Copyright (c) 2023-2024 Thomas Heiny, Wolfsburg, Germany

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ These parameters are available to configure MQTT settings:
- MQTT_CLIENT_ID
- MQTT_USER
- MQTT_PASSWORD
- MQTT_USETLS
- TOPIC_PREFIX

Value ranges can be adjusted with the following parameters:
Expand Down
2 changes: 1 addition & 1 deletion flows.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"port": "MQTT_PORT",
"clientid": "MQTT_CLIENT_ID",
"autoConnect": false,
"usetls": false,
"usetls": MQTT_USETLS,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
Expand Down
9 changes: 9 additions & 0 deletions prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ else
sed -i "s/MQTT_CLIENT_ID/${MQTT_CLIENT_ID}/g" $1
fi

if [ -z "$MQTT_USETLS" ]
then
echo "MQTT_USETLS: >false<"
sed -i "s/MQTT_USETLS/false/g" $1
else
echo "MQTT_USETLS: >${MQTT_USETLS}<"
sed -i "s/MQTT_USETLS/${MQTT_USETLS}/g" $1
fi

if [ -z "$MQTT_USER" ] || [ -z "$MQTT_PASSWORD" ]
then
sed -i "s/MQTT_CREDENTIALS//g" $1
Expand Down

0 comments on commit ff10d46

Please sign in to comment.