aboutsummaryrefslogtreecommitdiffstats
path: root/examples/direct_bt_scanner01/dbt_scanner01.cpp
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_scanner01/dbt_scanner01.cpp
parente4956ec63fbcb96d57195a0a4243f4c36b22ee8b (diff)
L2CAPComm/GATTHandler: User 'enum class' constants for type safety; Drop GATTHandler::State for L2CAPComm::State
Diffstat (limited to 'examples/direct_bt_scanner01/dbt_scanner01.cpp')
-rw-r--r--examples/direct_bt_scanner01/dbt_scanner01.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/direct_bt_scanner01/dbt_scanner01.cpp b/examples/direct_bt_scanner01/dbt_scanner01.cpp
index c6294163..ca774277 100644
--- a/examples/direct_bt_scanner01/dbt_scanner01.cpp
+++ b/examples/direct_bt_scanner01/dbt_scanner01.cpp
@@ -250,7 +250,7 @@ int main(int argc, char *argv[])
//
const uint64_t t4 = getCurrentMilliseconds();
// let's check further for full GATT
- std::shared_ptr<GATTHandler> gatt = device->connectGATT(GATTHandler::Defaults::L2CAP_READER_THREAD_POLL_TIMEOUT);
+ std::shared_ptr<GATTHandler> gatt = device->connectGATT(GATTHandler::number(GATTHandler::Defaults::L2CAP_COMMAND_REPLY_TIMEOUT));
if( nullptr != gatt ) {
fprintf(stderr, "GATT usedMTU %d (server) -> %d (used)\n", gatt->getServerMTU(), gatt->getUsedMTU());
@@ -288,7 +288,7 @@ int main(int argc, char *argv[])
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( gatt->readCharacteristicValue(serviceChar, value) ) {
fprintf(stderr, " [%2.2d.%2.2d] Value: %s\n", (int)i, (int)j, value.toString().c_str());
}