From 8fc79029c65fc5786e9b92204f56cede76e51cd2 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Sat, 27 Jul 2019 17:49:18 +0200 Subject: [PATCH] fix uva/b typo --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 06d9707..8a0e920 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -175,8 +175,8 @@ void sendValues() { char uva[10]; sprintf(uva, "%.2f", uv.readUVA()); char uvb[10]; sprintf(uvb, "%.2f", uv.readUVB()); mqtt.publish(topic_uvi.c_str(), uvi, strlen(uvi)); - mqtt.publish(topic_uvi.c_str(), uva, strlen(uva)); - mqtt.publish(topic_uvi.c_str(), uvb, strlen(uvb)); + mqtt.publish(topic_uva.c_str(), uva, strlen(uva)); + mqtt.publish(topic_uvb.c_str(), uvb, strlen(uvb)); } if (sds_active) {