   ArduinoOTA.setPassword(OTA_PASSWORD);
   ArduinoOTA.onStart([]() 
   { 
-     ticker.attach(0.1, tick); 
+     //ticker.attach(0.1, tick); 
   });
   ArduinoOTA.onEnd([]() { });
   ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) { });

      change_light();
      if (client.connected())
      {
         sendCheck();
      }
      lastRelayActionmillis = millis();
      bUpdated = false;

  sendmqttMsg(reporting_topic, payload, true);
}

void ICACHE_RAM_ATTR sendUpdate()
{
  DynamicJsonBuffer jsonBuffer;
  JsonObject& root = jsonBuffer.createObject();
  if (bRelayState)
  {   
     root["cmd"] = "on";
  }
  else
  {
     root["cmd"] = "off";
  }
  String json;
  root.printTo(json);

  sendmqttMsg(subscribe_topic, json, true);
}

void ICACHE_RAM_ATTR parseMqttMsg(String receivedpayload, String receivedtopic)
{
  char json[] = "{\"cmd\":\"off\"}";
