 #define DEBUG_PRINT 1
 
 // ****************
-
 time_t getNtpTime();
 String macToStr(const uint8_t* mac);
 void callback(char* intopic, byte* inpayload, unsigned int length);

            syslogPayload += pipeNo;
            sendUdpSyslog(syslogPayload);
          }
          // solar data req
          //} else if (len == sizeof(uint8_t) && pipeNo == 3) {
        } else if (len == 1 && pipeNo == 3) {
          radio.writeAckPayload(pipeNo, &solar_ackpayload, sizeof(solar_ackpayload));
          radio.read(&solar_reqpayload, sizeof(uint8_t));

          if (DEBUG_PRINT) {
            syslogPayload = "solar_data1 : ";
            syslogPayload += solar_ackpayload.data1;
            syslogPayload += " ==> data2 : ";
            syslogPayload += solar_ackpayload.data2;
            syslogPayload += " ==> data3 : ";
            syslogPayload += solar_ackpayload.data3;
            syslogPayload += " ==> powerAvg : ";
            syslogPayload += solar_ackpayload.powerAvg;
            syslogPayload += " ==> WeightAvg: ";
            syslogPayload += solar_ackpayload.WeightAvg;
            syslogPayload += " ==> Humidity : ";
            syslogPayload += solar_ackpayload.Humidity;
            syslogPayload += " ==> Temperature1 : ";
            syslogPayload += solar_ackpayload.Temperature1;
            syslogPayload += " ==> Temperature2 : ";
            syslogPayload += solar_ackpayload.Temperature2;
            syslogPayload += " ==> pipeNo : ";
            syslogPayload += pipeNo;
            sendUdpSyslog(syslogPayload);
          }

          // scale data
        } else if (len == sizeof(data_scale) && pipeNo == 4) {
          radio.read(&data_scale, sizeof(data_scale));



  time_ackpayload.timestamp = 0;
  time_reqpayload.timestamp = 0;

  getResetInfo = "hello from switch ";
  getResetInfo += ESP.getResetInfo().substring(0, 50);
