Open MIHU1965 opened 11 months ago
The answer from server was not transmitted in full. Insert continue;
void waitForServerResponse () { //Ankommende Bytes ausgeben boolean repeat = true; do { if (client.available()) { char c = client.read(); Serial.print(c); continue; } //Verbindung beenden if (!client.connected()) { Serial.println(); Serial.println("--------------"); Serial.println("Disconnecting."); Serial.println("--------------"); client.stop(); repeat = false; } } while (repeat); }
The answer from server was not transmitted in full. Insert continue;
void waitForServerResponse () { //Ankommende Bytes ausgeben boolean repeat = true; do { if (client.available()) { char c = client.read(); Serial.print(c); continue; } //Verbindung beenden if (!client.connected()) { Serial.println(); Serial.println("--------------"); Serial.println("Disconnecting."); Serial.println("--------------"); client.stop(); repeat = false; } } while (repeat); }