       syslogPayload = " => relaystatus => ";
       syslogPayload += relaystatus;
       sendUdpSyslog(syslogPayload);
-    }
-  } else {
-    parseMqttMsg(receivedpayload, receivedtopic);
-  }
-}
-
-void parseMqttMsg(String receivedpayload, String receivedtopic) {
-  char json[] = "{\"Humidity\":43.90,\"Temperature\":22.00,\"DS18B20\":22.00,\"PIRSTATUS\":0,\"FreeHeap\":43552,\"acquireresult\":0,\"acquirestatus\":0,\"DHTnextSampleTime\":2121587,\"bDHTstarted\":0,\"RSSI\":-48,\"millis\":2117963}";
-
-  receivedpayload.toCharArray(json, 400);
-  StaticJsonBuffer<400> jsonBuffer;
-  JsonObject& root = jsonBuffer.parseObject(json);
-
-  if (!root.success()) {
-    return;
-  }
-
-  if ( receivedtopic == substopic[1] ) {
-    if (root.containsKey("data1")) {
-      solar_ackpayload.data1 = root["data1"];
-    }
-    if (root.containsKey("data2")) {
-      String tempdata2 = root["data2"];
-      solar_ackpayload.data2 = tempdata2.substring(0, tempdata2.indexOf('.')).toInt();
-      solar_ackpayload.data3 = tempdata2.substring(tempdata2.indexOf('.') + 1, tempdata2.indexOf('.') + 2).toInt();
-    }
-  }
-
-  if ( receivedtopic == substopic[2] ) {
-    if (root.containsKey("Humidity")) {
-      solar_ackpayload.Humidity = root["Humidity"];
-    }
-
-    if (root.containsKey("Temperature")) {
-      solar_ackpayload.Temperature1 = ( float(root["Temperature"]) + tempCoutside ) / 2 ;
-    }
-  }
-
-  if ( receivedtopic == substopic[3] ) {
-    if (root.containsKey("powerAvg")) {
-      solar_ackpayload.powerAvg = root["powerAvg"];
-    }
-  }
-
-  if ( receivedtopic == substopic[4] ) {
-    if (root.containsKey("WeightAvg")) {
-      solar_ackpayload.WeightAvg = root["WeightAvg"];
-    }
-  }
-
-  if ( receivedtopic == substopic[5] ) {
-    if (root.containsKey("data1")) {
-      solar_ackpayload.Temperature2 = atoi(root["data1"]);
     }
   }
 }

// subscribe
//
const char subtopic[]   = "esp8266/cmd/light";   // light command
const char subrpi[]     = "raspberrypi/data";
const char subtopic_0[] = "esp8266/arduino/s03"; // lcd temp
const char subtopic_1[] = "esp8266/arduino/s07"; // power
const char subtopic_2[] = "esp8266/arduino/s06"; // nemo scale
const char subtopic_3[] = "radio/test/2";        //Outside temp


const char* substopic[6] = { subtopic, subrpi, subtopic_0, subtopic_1, subtopic_2, subtopic_3 } ;

unsigned int localPort = 12390;
const int timeZone = 9;

} time_reqpayload;

struct {
  int16_t ax;
  int16_t ay;
} data_scale;
