public async Task StopListening() { if (MqttCheckTimer != null) { MqttCheckTimer.Dispose(); MqttCheckTimer = null; } ReceivedMqttCheckForInterval = true; await MessagingClient.CleanUp(); }