From 02fd5078c9626c543205af87560c568fde13b723 Mon Sep 17 00:00:00 2001 From: Andrey Klimov Date: Sun, 10 Mar 2019 00:42:43 +0300 Subject: [PATCH] negative pin init hung fixed, homie nodes list submittind removed (unstable if long list) --- lighthub/main.cpp | 9 +++++---- lighthub/owTerm.cpp | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lighthub/main.cpp b/lighthub/main.cpp index e06a71a..43de624 100644 --- a/lighthub/main.cpp +++ b/lighthub/main.cpp @@ -409,8 +409,8 @@ void onMQTTConnect(){ aJsonObject * item = items->child; while (items && item) if (item->type == aJson_Array && aJson.getArraySize(item)>0) { - strncat(buf,item->name,sizeof(buf)); - strncat(buf,",",sizeof(buf)); +/// strncat(buf,item->name,sizeof(buf)); +/// strncat(buf,",",sizeof(buf)); switch ( aJson.getArrayItem(item, I_TYPE)->valueint) { case CH_THERMO: @@ -462,7 +462,7 @@ void onMQTTConnect(){ //strncpy_P(topic, outprefix, sizeof(topic)); setTopic(topic,sizeof(topic),T_DEV); strncat_P(topic, nodes_P, sizeof(topic)); - mqttClient.publish(topic,buf,true); + /// mqttClient.publish(topic,buf,true); } #endif } @@ -817,7 +817,7 @@ void applyConfig() { aJsonObject *dmxoutArr = aJson.getObjectItem(root, "dmx"); if (dmxoutArr && aJson.getArraySize(dmxoutArr) >=1 ) { DMXoutSetup(maxChannels = aJson.getArrayItem(dmxoutArr, 1)->valueint); - debugSerial<