/// <summary> /// Sends the collected logs to the backend. /// Also clears the logs once they have been sent. /// </summary> private void SendLogs() { if (logs.Count > 0) { string log = ""; foreach (string logLine in logs) { log += logLine; } BackendConnector.SendLogs(log); logs.Clear(); } }
/// <summary> /// Tests the backend connection by sending a "ping" message to the server /// </summary> /// <returns>async operation</returns> public async void TestBackendConnection() { bool res = await BackendConnector.Ping(); SetLED(backendLedRenderer, res); }