We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9044a01 commit 981d3b0Copy full SHA for 981d3b0
src/mqtt.cpp
@@ -214,16 +214,19 @@ mqtt_connect()
214
if (mqtt_grid_ie != "") {
215
mqttclient.subscribe(mqtt_grid_ie);
216
}
217
- if (mqtt_vehicle_soc != "") {
+ }
218
+
219
+ // subscribe to vehicle information from MQTT if we are configured for it
220
+ if (mqtt_vehicle_soc != "") {
221
mqttclient.subscribe(mqtt_vehicle_soc);
- }
- if (mqtt_vehicle_range != "") {
222
223
+ if (mqtt_vehicle_range != "") {
224
mqttclient.subscribe(mqtt_vehicle_range);
- if (mqtt_vehicle_eta != "") {
225
226
+ if (mqtt_vehicle_eta != "") {
227
mqttclient.subscribe(mqtt_vehicle_eta);
228
229
230
if (mqtt_vrms!="") {
231
mqttclient.subscribe(mqtt_vrms);
232
0 commit comments