aboutsummaryrefslogtreecommitdiffstats
path: root/examples/direct_bt_scanner10
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-06-09 07:22:37 +0200
committerSven Gothel <[email protected]>2020-06-09 07:22:37 +0200
commitf881c9a048b752cdd9a695dafd83003a8be2d0b0 (patch)
tree82c075cf29b986ccbba0985689d8bc7093cc598c /examples/direct_bt_scanner10
parente4956ec63fbcb96d57195a0a4243f4c36b22ee8b (diff)
L2CAPComm/GATTHandler: User 'enum class' constants for type safety; Drop GATTHandler::State for L2CAPComm::State
Diffstat (limited to 'examples/direct_bt_scanner10')
-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 2905f07c..5e793d94 100644
--- a/examples/direct_bt_scanner10/dbt_scanner10.cpp
+++ b/examples/direct_bt_scanner10/dbt_scanner10.cpp
@@ -272,7 +272,7 @@ static void processConnectedDevice(std::shared_ptr<DBTDevice> device) {
GATTCharacteristic & serviceChar = *serviceCharacteristics.at(j);
fprintf(stderr, " [%2.2d.%2.2d] Decla: %s\n", (int)i, (int)j, serviceChar.toString().c_str());
if( serviceChar.hasProperties(GATTCharacteristic::PropertyBitVal::Read) ) {
- POctets value(GATTHandler::ClientMaxMTU, 0);
+ POctets value(GATTHandler::number(GATTHandler::Defaults::MAX_ATT_MTU), 0);
if( serviceChar.readValue(value) ) {
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());