Skip to content

Commit ff10d46

Browse files
committed
v1.1
1 parent 89bbf20 commit ff10d46

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

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

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ These parameters are available to configure MQTT settings:
5252
- MQTT_CLIENT_ID
5353
- MQTT_USER
5454
- MQTT_PASSWORD
55+
- MQTT_USETLS
5556
- TOPIC_PREFIX
5657

5758
Value ranges can be adjusted with the following parameters:

flows.json.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"port": "MQTT_PORT",
1616
"clientid": "MQTT_CLIENT_ID",
1717
"autoConnect": false,
18-
"usetls": false,
18+
"usetls": MQTT_USETLS,
1919
"protocolVersion": "4",
2020
"keepalive": "60",
2121
"cleansession": true,

prepare.sh

+9
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ else
3939
sed -i "s/MQTT_CLIENT_ID/${MQTT_CLIENT_ID}/g" $1
4040
fi
4141

42+
if [ -z "$MQTT_USETLS" ]
43+
then
44+
echo "MQTT_USETLS: >false<"
45+
sed -i "s/MQTT_USETLS/false/g" $1
46+
else
47+
echo "MQTT_USETLS: >${MQTT_USETLS}<"
48+
sed -i "s/MQTT_USETLS/${MQTT_USETLS}/g" $1
49+
fi
50+
4251
if [ -z "$MQTT_USER" ] || [ -z "$MQTT_PASSWORD" ]
4352
then
4453
sed -i "s/MQTT_CREDENTIALS//g" $1

0 commit comments

Comments
 (0)