       }
 
       client.loop();
-      for (int i = 0; i < 6; ++i) {
+      for (int i = 0; i < 1; ++i) {
         client.subscribe(substopic[i]);
         client.loop();
       }

            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));


// subscribe
//
const char subtopic[]   = "esp8266/cmd/light";   // light command

const char* substopic[1] = { subtopic } ;

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