summaryrefslogtreecommitdiffstats
path: root/examples/direct_bt_scanner10/dbt_scanner10.cpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-06-04 14:58:40 +0200
committerSven Gothel <[email protected]>2020-06-04 14:58:40 +0200
commit66c34a6229c9d541f1ae8900b357f953edfa54cd (patch)
tree03dec1a8edf5da4cb795a62bce110ec5625f1354 /examples/direct_bt_scanner10/dbt_scanner10.cpp
parente6d1ec031165eb10471426a71f1640ebb8e1159f (diff)
BasicTypes: Rename getUTF8String(..) -> decodeUTF8String(..): Adding API doc section with reference to used algov2.1.2
Diffstat (limited to 'examples/direct_bt_scanner10/dbt_scanner10.cpp')
-rw-r--r--examples/direct_bt_scanner10/dbt_scanner10.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/direct_bt_scanner10/dbt_scanner10.cpp b/examples/direct_bt_scanner10/dbt_scanner10.cpp
index 2eaecbd5..2905f07c 100644
--- a/examples/direct_bt_scanner10/dbt_scanner10.cpp
+++ b/examples/direct_bt_scanner10/dbt_scanner10.cpp
@@ -274,7 +274,7 @@ static void processConnectedDevice(std::shared_ptr<DBTDevice> device) {
if( serviceChar.hasProperties(GATTCharacteristic::PropertyBitVal::Read) ) {
POctets value(GATTHandler::ClientMaxMTU, 0);
if( serviceChar.readValue(value) ) {
- std::string sval = getUTF8String(value.get_ptr(), value.getSize());
+ std::string sval = decodeUTF8String(value.get_ptr(), value.getSize());
fprintf(stderr, " [%2.2d.%2.2d] Value: %s ('%s')\n", (int)i, (int)j, value.toString().c_str(), sval.c_str());
}
}