       serialPrint(lcdMessages[i]);
     }
   }
-
   return lcdMessages;
 }
 

  return requiredLineNumber;
}

// TODO check all cases i.e if luas don't return data but dublin bus returns
// imagine luas = 0 dublinbus is 3
String* createLcdMessages(int luasDataArraySize, int dublinBusDataArraySize, JsonArray& rootJsonLuas, JsonArray& rootJsonDublinBus) {
  const int commonSmallIndex = luasDataArraySize <= dublinBusDataArraySize ? luasDataArraySize : dublinBusDataArraySize;
  lineNumber = calculateRequiredLineNumber(luasDataArraySize, dublinBusDataArraySize);

      serialPrint("Connected!");
    }
    else {
      serialPrint("Could not connect to internet");
      serialPrint("Retrying connection", tryCount);
      tryCount++;
      delay(1000);
    }
  }
}

