From dd44e46f777b944ef5b3e5a47e752daed958e3d3 Mon Sep 17 00:00:00 2001 From: Andrey Klimov Date: Sun, 14 Oct 2018 10:43:48 +0300 Subject: [PATCH] Temperature topicname fixed --- lighthub/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lighthub/main.cpp b/lighthub/main.cpp index e560a14..165381c 100644 --- a/lighthub/main.cpp +++ b/lighthub/main.cpp @@ -588,7 +588,7 @@ void Changed(int i, DeviceAddress addr, float val) { return; } strcpy_P(addrstr, outprefix); - strncpy(addrstr, owEmit, sizeof(addrstr)); + strncat(addrstr, owEmit, sizeof(addrstr)); //strncat(addrstr, addrbuf, sizeof(addrstr)); mqttClient.publish(addrstr, valstr);