/// <summary> /// Sends message to the bluetooth device. /// Displays the number of bytes sent/erroor /// </summary> /// <returns>Tasks that can be awaited</returns> private async Task SendMessageAsync() { try { var count = await _btManager.SendOnOffAsync(_isOn); ErrorMessage = "Sent " + count + " bytes."; } catch (Exception ex) { ErrorMessage = ex.Message; } }