aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-10-02 15:58:58 +0200
committerSven Gothel <[email protected]>2021-10-02 15:58:58 +0200
commit5d4c60ec2156dece08f45a49018c49b82421c9ac (patch)
tree21d43fe8dbf406f6551b121b19ff026bbbfd326c /examples
parent87ce4e782b24decc63907bf9d8487002cddbfc83 (diff)
Bump jaulib; dbt_scanner10: Show uuid_t TypeSize
Diffstat (limited to 'examples')
-rw-r--r--examples/dbt_scanner10.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/examples/dbt_scanner10.cpp b/examples/dbt_scanner10.cpp
index 7ea41b98..9368a4c4 100644
--- a/examples/dbt_scanner10.cpp
+++ b/examples/dbt_scanner10.cpp
@@ -473,14 +473,18 @@ static void processReadyDevice(std::shared_ptr<BTDevice> device) {
for(size_t i=0; i<primServices.size(); i++) {
BTGattService & primService = *primServices.at(i);
if( !QUIET ) {
- fprintf_td(stderr, " [%2.2d] Service UUID %s\n", i, primService.type->toUUID128String().c_str());
+ fprintf_td(stderr, " [%2.2d] Service UUID %s (%s)\n", i,
+ primService.type->toUUID128String().c_str(),
+ primService.type->getTypeSizeString().c_str());
fprintf_td(stderr, " [%2.2d] %s\n", i, primService.toString().c_str());
}
jau::darray<BTGattCharRef> & serviceCharacteristics = primService.characteristicList;
for(size_t j=0; j<serviceCharacteristics.size(); j++) {
BTGattCharRef & serviceChar = serviceCharacteristics.at(j);
if( !QUIET ) {
- fprintf_td(stderr, " [%2.2d.%2.2d] Characteristic: UUID %s\n", i, j, serviceChar->value_type->toUUID128String().c_str());
+ fprintf_td(stderr, " [%2.2d.%2.2d] Characteristic: UUID %s (%s)\n", i, j,
+ serviceChar->value_type->toUUID128String().c_str(),
+ serviceChar->value_type->getTypeSizeString().c_str());
fprintf_td(stderr, " [%2.2d.%2.2d] %s\n", i, j, serviceChar->toString().c_str());
}
if( serviceChar->hasProperties(BTGattChar::PropertyBitVal::Read) ) {
@@ -496,7 +500,9 @@ static void processReadyDevice(std::shared_ptr<BTDevice> device) {
for(size_t k=0; k<charDescList.size(); k++) {
BTGattDesc & charDesc = *charDescList.at(k);
if( !QUIET ) {
- fprintf_td(stderr, " [%2.2d.%2.2d.%2.2d] Descriptor: UUID %s\n", i, j, k, charDesc.type->toUUID128String().c_str());
+ fprintf_td(stderr, " [%2.2d.%2.2d.%2.2d] Descriptor: UUID %s (%s)\n", i, j, k,
+ charDesc.type->toUUID128String().c_str(),
+ charDesc.type->getTypeSizeString().c_str());
fprintf_td(stderr, " [%2.2d.%2.2d.%2.2d] %s\n", i, j, k, charDesc.toString().c_str());
}
}