sensebox / node-sketch-templater

Arduino sketch templates used by the openSenseMap-api
MIT License
2 stars 2 forks source link

The answer from server was not transmitted in full #141

Open MIHU1965 opened 11 months ago

MIHU1965 commented 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); }