Setmqtt setting optional (#1021)
* Define MQTTsetMQTT for configuring MQTT over MQTT * Enable MQTTsetMQTT per default on all ESP except RFBridge Co-authored-by: Dave <d.kneisz@gmail.com>
This commit is contained in:
1 parent
c44ab5aeb9
commit
ebe17c8899
3 files changed
+25
-10
No files matched your search
@@ -52,6 +52,17 @@ mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoSYS/config" -m
|
||||
"mqtt_secure": "false"
|
||||
}'
|
||||
```
|
||||
::: info
|
||||
By default this function is not available on the pre built binary of RFBridge, in order to have less code size and enable to have OTA update working properly. So as to enable it remove from the rf bridge env:
|
||||
```
|
||||
build_flags = '-UMQTTsetMQTT'
|
||||
```
|
||||
Arduino boards does not have this function per default also, to add it:
|
||||
```
|
||||
build_flags = '-DMQTTsetMQTT'
|
||||
```
|
||||
:::
|
||||
|
||||
::: tip
|
||||
Server, port, and secure_flag are only required if changing connection to another broker.
|
||||
If the new connection fails the gateway will fallback to the previous connection.
|
||||
|
||||
Reference in new issue
Block a user