Skip to content

Commit

Permalink
Update BresserWeatherSensorMQTT.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Jul 9, 2023
1 parent 806c665 commit 7367c7f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -495,10 +495,10 @@ void publishWeatherdata(bool complete)
for (int n=0; n<NUM_SENSORS; n++) {
mqtt_topic = String(mqttPubData);
if (sensor_map[n].id == weatherSensor.sensor[i].sensor_id) {
mqtt_topic += "/" + sensor_map[n].name;
mqtt_topic += Sring("/") + sensor_map[n].name;
}
else {
mqtt_topic += "/" + String(weatherSensor.sensor[i].sensor_id, HEX).toUpperCase();
mqtt_topic += String("/") + String(weatherSensor.sensor[i].sensor_id, HEX).toUpperCase();
}
}

Expand Down

0 comments on commit 7367c7f

Please sign in to comment.