private void btnMessages_Click(object sender, RoutedEventArgs e) { try { TemperatureService.SendMessageAsync(deviceClient).GetAwaiter(); } catch { } finally { //lvRecieve.Item.Add(); //lvRecieve.Text = $"The temperature is {temperatureModel.Temperature}"; } }