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


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

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

} rtc_relaystatus;

// mqtt
char* topic         = "esp8266/arduino/s02";
char* rslttopic     = "esp8266/cmd/light/rlst";
char* hellotopic    = "HELLO";
char* radiotopic    = "radio/test";
char* radiofault    = "radio/test/fault";
char* willTopic     = "clients/relay";
char* willMessage   = "0";
char* topicAverage  = "esp8266/arduino/s06";
char* lowpower      = "lowpower";
// subscribe
//
char subtopic_0[]   = "esp8266/cmd/light";   // light command
char subtopic_1[]   = "esp8266/cmd/timer1";
char* substopic[2] = { subtopic_0, subtopic_1 } ;
//
unsigned int localPort = 12390;
const int timeZone = 9;
