 		return;
 	}
 	// Verify validity of server's certificate
-#if !defined(API_NO_HTTPS)
-	bool verified = wifiClientSecure.verifyCertChain(API_HOSTNAME);
+#if !(API_NO_HTTPS)
+	bool verified = wifiClient.verifyCertChain(API_HOSTNAME);
 	if (verified)
 	{
 		DEBUG_PRINTLN("Server certificate verified");

};

WiFiConnection wifiConnection;
#if !defined(API_NO_HTTPS)
WiFiClientSecure wifiClient;
#else
WiFiClient                wifiClient;

	{
		String line = wifiClient.readStringUntil('\n');
		DEBUG_PRINTLN(line);
		if (line.startsWith("{\"success\":true")) lastPostOk = true;
	}
	lastUploadTimeInMs = 0;
}

void drawScreen()
{
	String       displayData;
	unsigned int lastSampleIndex = (sampleIndex + NUM_LAST_SAMPLES - 1) % NUM_LAST_SAMPLES;
	if (!lastCollectionOk)
	{
		displayData = "Err. - Err.";
	} else
	{
		displayData += (int)sensorTemperature[lastSampleIndex];
		displayData += "°C - ";
		displayData += (int)sensorHumidity[lastSampleIndex];
		displayData += "%";
	}

