 char* willTopic = "clients/power";
 char* willMessage = "0";
 
+char* subtopic = "esp8266/check";
+
 IPAddress server(192, 168, 10, 10);
 
 // pin : using line tracker

int average = 0;

WiFiClient wifiClient;
PubSubClient client(wifiClient);

long lastReconnectAttempt = 0;


  } else {
    wifi_connect();
  }

  VIrms = emon1.calcIrms(1480) * 220.0;
  ave.push(VIrms);
  average = ave.mean();
