aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-01-25 22:27:23 +0100
committerSven Gothel <[email protected]>2022-01-25 22:27:23 +0100
commita43ad2c13611a520eb29e2ed9487b3602485649b (patch)
treec0fe4dedd4163186b1914352880eda77e71764cf /examples
parent6f1a05d2d8d516509edd02aafff38f0d4e63d6af (diff)
dbt_preipheral00.cpp: Fix jau::dfa_utf8_decode(..), pass its c_str() to fprintf_td(..)
Diffstat (limited to 'examples')
-rw-r--r--examples/dbt_peripheral00.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/dbt_peripheral00.cpp b/examples/dbt_peripheral00.cpp
index 383a6e74..d6977c8c 100644
--- a/examples/dbt_peripheral00.cpp
+++ b/examples/dbt_peripheral00.cpp
@@ -443,7 +443,7 @@ class MyGATTServerListener : public DBGattServer::Listener {
bool writeCharValue(BTDeviceRef device, DBGattServiceRef s, DBGattCharRef c, const jau::TROOctets & value, const uint16_t value_offset) override {
const bool match = matches(device);
fprintf_td(stderr, "****** GATT::writeCharValue(match %d): %s '%s' @ %s from %s, to\n %s\n %s\n",
- match, value.toString().c_str(), jau::dfa_utf8_decode( value.get_ptr(), value.size() ),
+ match, value.toString().c_str(), jau::dfa_utf8_decode( value.get_ptr(), value.size() ).c_str(),
jau::to_hexstring(value_offset).c_str(),
device->toString().c_str(), s->toString().c_str(), c->toString().c_str());
@@ -466,7 +466,7 @@ class MyGATTServerListener : public DBGattServer::Listener {
bool writeDescValue(BTDeviceRef device, DBGattServiceRef s, DBGattCharRef c, DBGattDescRef d, const jau::TROOctets & value, const uint16_t value_offset) override {
const bool match = matches(device);
fprintf_td(stderr, "****** GATT::writeDescValue(match %d): %s '%s' @ %s from %s\n %s\n %s\n %s\n",
- match, value.toString().c_str(), jau::dfa_utf8_decode( value.get_ptr(), value.size() ),
+ match, value.toString().c_str(), jau::dfa_utf8_decode( value.get_ptr(), value.size() ).c_str(),
jau::to_hexstring(value_offset).c_str(),
device->toString().c_str(), s->toString().c_str(), c->toString().c_str(), d->toString().c_str());
return match;