diff --git a/ITS_Open_direct_2fb/ITS_Open_direct_2fb.ino b/ITS_Open_direct_2fb/ITS_Open_direct_2fb.ino index 2dc749e..8ed7a9f 100644 --- a/ITS_Open_direct_2fb/ITS_Open_direct_2fb.ino +++ b/ITS_Open_direct_2fb/ITS_Open_direct_2fb.ino @@ -26,7 +26,6 @@ EthernetClient client; // Twitter response variables #define SERVER_DOMAIN "spaceapi.it-syndikat.org" // URL -String currentLine = ""; // string to hold the text from server // Specific variables // Status @@ -219,6 +218,8 @@ void startEthernet() { void readServerStatus(int mode) { char lastsign = '0'; boolean readStatus = false; + String currentLine = ""; // string to hold the text from server + while (client.connected()) { if (client.available()) { // read incoming bytes: