diff options
author | Sven Gothel <[email protected]> | 2022-01-02 21:38:15 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-01-02 21:38:15 +0100 |
commit | 2d8958d5826b1f74537dbfda1edb8a676275b598 (patch) | |
tree | f80350a11469f49361a6432d599584c8eb358a31 /examples | |
parent | 8c62da7aa115a9eb6c3283bbd5db2f155d6c2b31 (diff) |
peripheral00 example: Use adapter name for GENERIC_ACCESS.DEVICE_NAME
Diffstat (limited to 'examples')
-rw-r--r-- | examples/dbt_peripheral00.cpp | 2 | ||||
-rw-r--r-- | examples/java/DBTPeripheral00.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/dbt_peripheral00.cpp b/examples/dbt_peripheral00.cpp index 1d8c0d84..e8be95e9 100644 --- a/examples/dbt_peripheral00.cpp +++ b/examples/dbt_peripheral00.cpp @@ -103,7 +103,7 @@ DBGattServerRef dbGattServer( new DBGattServer( std::make_shared<DBGattChar>( std::make_unique<const jau::uuid16_t>(GattCharacteristicType::DEVICE_NAME) /* value_type_ */, BTGattChar::PropertyBitVal::Read, jau::darray<DBGattDescRef>() /* intentionally empty */, - make_poctets("Synthethic Sensor 01") /* value */ ), + make_poctets(adapter_name.c_str()) /* value */ ), std::make_shared<DBGattChar>( std::make_unique<const jau::uuid16_t>(GattCharacteristicType::APPEARANCE) /* value_type_ */, BTGattChar::PropertyBitVal::Read, jau::darray<DBGattDescRef>() /* intentionally empty */, diff --git a/examples/java/DBTPeripheral00.java b/examples/java/DBTPeripheral00.java index a8fd4bfd..49f01cfc 100644 --- a/examples/java/DBTPeripheral00.java +++ b/examples/java/DBTPeripheral00.java @@ -144,7 +144,7 @@ public class DBTPeripheral00 { new DBGattChar( DBGattChar.UUID16.DEVICE_NAME /* value_type_ */, new GattCharPropertySet(GattCharPropertySet.Type.Read), new ArrayList<DBGattDesc>(/* intentionally w/o Desc */ ), - make_gvalue("Synthethic Sensor 01") /* value */ ), + make_gvalue(adapter_name) /* value */ ), new DBGattChar( DBGattChar.UUID16.APPEARANCE /* value_type_ */, new GattCharPropertySet(GattCharPropertySet.Type.Read), new ArrayList<DBGattDesc>(/* intentionally w/o Desc */ ), |