         }
     }
 
-    handleTelnet();
-
     httpServer.handleClient();
 
-    unsigned long curTime = millis();
+    const unsigned long curTime = millis();
     for (auto& sensor : sensors)
     {
         if (sensor.update(curTime))
         {
-            sendDataToSql(sensor);
+            sendDataToServer(sensor);
         }
     }
 
     ArduinoOTA.handle();
 
     /*static long lastUpdateTime = 0;
-    if (curTime - lastUpdateTime > 1000)
+    if (curTime - lastUpdateTime > 10000)
     {
         lastUpdateTime = curTime;
         //debug.printf("1Analog pins: %d, %d, %d\n2Analog pins: %d, %d, %d\n", analogRead(0), analogRead(1), analogRead(2));
         //debug.printf("12345\r\n12345\r\n12345\r\n");
         time_t now = time(nullptr);
         DebugPrint(debug, "cur time: %s", ctime(&now));
+        sendDataViaHttp(25.7, 35, 750, 1003);
     }*/
 }

        DebugPrint(debug, "Error[%u]: ", error);
        switch (error)
        {
            case OTA_AUTH_ERROR: DebugPrint(debug, "Auth Failed\r\n"); break;
            case OTA_BEGIN_ERROR: DebugPrint(debug, "Begin Failed\r\n"); break;
            case OTA_CONNECT_ERROR: DebugPrint(debug, "Connect Failed\r\n"); break;
            case OTA_RECEIVE_ERROR: DebugPrint(debug, "Receive Failed\r\n"); break;
            case OTA_END_ERROR: DebugPrint(debug, "End Failed\r\n"); break;
        }
    });
}

    digitalWrite(led, 1);
    Serial.begin(115200);

    mqtt.setCallback(mqttCallback);

    telnetServer.begin();
    telnetServer.setNoDelay(true);
