summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/lowenergyscanner/characteristicinfo.cpp
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-08-20 09:21:49 +0200
committerAlex Blasche <alexander.blasche@digia.com>2014-08-25 14:03:25 +0200
commit0a8327d422228489a62aa8fed8bdaa9d1291c055 (patch)
tree325d64d985793adc1f93d0a8f7619c7a9102d11d /examples/bluetooth/lowenergyscanner/characteristicinfo.cpp
parent7a3a3f7664e22dbe2e5bc8f016d95ee1f9558a2e (diff)
Update and extend the lowenergyscanner example docs
Change-Id: I0be30191cbceb963c7e1bfd7e55a1f2f38772d5f Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/characteristicinfo.cpp')
-rw-r--r--examples/bluetooth/lowenergyscanner/characteristicinfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/bluetooth/lowenergyscanner/characteristicinfo.cpp b/examples/bluetooth/lowenergyscanner/characteristicinfo.cpp
index d7ae8438..f5290459 100644
--- a/examples/bluetooth/lowenergyscanner/characteristicinfo.cpp
+++ b/examples/bluetooth/lowenergyscanner/characteristicinfo.cpp
@@ -60,6 +60,7 @@ void CharacteristicInfo::setCharacteristic(const QLowEnergyCharacteristic &chara
QString CharacteristicInfo::getName() const
{
+ //! [les-get-descriptors]
QString name = m_characteristic.name();
if (!name.isEmpty())
return name;
@@ -71,6 +72,7 @@ QString CharacteristicInfo::getName() const
break;
}
}
+ //! [les-get-descriptors]
if (name.isEmpty())
name = "Unknown";