 
   // wifi connect
   wifi_connect();
+  ticker.attach(0.2, tick);
 
   clientName = "esp8266-";
   uint8_t mac[6];

      sendPing();
      webSocket.loop();
      sendHello();
      break;

    case WStype_TEXT:

    }
    else
    {
      irrecv_config();
      webSocket_config();
      irtxchange_config();
      irtxtimer_config();
      mqttclient.loop();
    }
    ArduinoOTA.handle();
  }
