|
|
|
@ -381,24 +381,3 @@ void loop() {
|
|
|
|
|
readButtons();
|
|
|
|
|
launchUpdate();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// This just reads the server return and logs it to the serial
|
|
|
|
|
//@deprecated
|
|
|
|
|
void readServerReturn() {
|
|
|
|
|
// if(debug){Serial.println("readServerReturn ... ");}
|
|
|
|
|
while (client.connected()) {
|
|
|
|
|
if (client.available()) {
|
|
|
|
|
char c = client.read();
|
|
|
|
|
if (debug) {
|
|
|
|
|
Serial.print(c);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (debug) {
|
|
|
|
|
Serial.println();
|
|
|
|
|
}
|
|
|
|
|
if (debug) {
|
|
|
|
|
Serial.println("disconnecting.");
|
|
|
|
|
}
|
|
|
|
|
client.stop();
|
|
|
|
|
}
|
|
|
|
|