aboutsummaryrefslogtreecommitdiffstats
path: root/trial/direct_bt
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-05-12 07:23:17 +0200
committerSven Göthel <[email protected]>2024-05-12 07:23:17 +0200
commit3b23e3bab8e28dac1ac8c17795b901350fe745d9 (patch)
tree99da3f1c0fcbe03b0b5a3a2c3eca0cd33d12b59d /trial/direct_bt
parentf2edf48dae5172ba2f825c40760bdd6a88d0d1b8 (diff)
jaulib: Bump and adopt to enum type name changes, added '_t'
Diffstat (limited to 'trial/direct_bt')
-rw-r--r--trial/direct_bt/dbt_client01.hpp6
-rw-r--r--trial/direct_bt/dbt_server01.hpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/trial/direct_bt/dbt_client01.hpp b/trial/direct_bt/dbt_client01.hpp
index aca7496a..70a21553 100644
--- a/trial/direct_bt/dbt_client01.hpp
+++ b/trial/direct_bt/dbt_client01.hpp
@@ -456,7 +456,7 @@ class DBTClient01 : public DBTClientTest {
cmd.setVerbose(true);
const bool cmd_resolved = cmd.isResolved();
fprintf_td(stderr, "Command test: %s, resolved %d\n", cmd.toString().c_str(), cmd_resolved);
- POctets cmd_data(1, lb_endian::little);
+ POctets cmd_data(1, lb_endian_t::little);
cmd_data.put_uint8_nc(0, cmd_arg);
const HCIStatusCode cmd_res = cmd.send(true /* prefNoAck */, cmd_data, 3_s);
if( HCIStatusCode::SUCCESS == cmd_res ) {
@@ -495,7 +495,7 @@ class DBTClient01 : public DBTClientTest {
fprintf_td(stderr, " [%2.2d.%2.2d] %s\n", i, j, serviceChar->toString().c_str());
}
if( serviceChar->hasProperties(BTGattChar::PropertyBitVal::Read) ) {
- POctets value(BTGattHandler::number(BTGattHandler::Defaults::MAX_ATT_MTU), 0, jau::lb_endian::little);
+ POctets value(BTGattHandler::number(BTGattHandler::Defaults::MAX_ATT_MTU), 0, jau::lb_endian_t::little);
if( serviceChar->readValue(value) ) {
std::string sval = dfa_utf8_decode(value.get_ptr(), value.size());
if( GATT_VERBOSE ) {
@@ -566,7 +566,7 @@ class DBTClient01 : public DBTClientTest {
const bool cmd_resolved = cmd.isResolved();
fprintf_td(stderr, "FinalCommand test: %s, resolved %d\n", cmd.toString().c_str(), cmd_resolved);
const size_t data_sz = DBTConstants::FailHandshakeCommandData.size();
- POctets cmd_data(data_sz, lb_endian::little);
+ POctets cmd_data(data_sz, lb_endian_t::little);
if( success ) {
cmd_data.put_bytes_nc(0, DBTConstants::SuccessHandshakeCommandData.data(), data_sz);
} else {
diff --git a/trial/direct_bt/dbt_server01.hpp b/trial/direct_bt/dbt_server01.hpp
index 7f7c7057..8aeba45a 100644
--- a/trial/direct_bt/dbt_server01.hpp
+++ b/trial/direct_bt/dbt_server01.hpp
@@ -318,7 +318,7 @@ class DBTServer01 : public DBTServerTest {
if( nullptr != connectedDevice_ && connectedDevice_->getConnected() ) {
if( 0 != handlePulseDataNotify || 0 != handlePulseDataIndicate ) {
std::string data( "Dynamic Data Example. Elapsed Milliseconds: "+jau::to_decstring(environment::getElapsedMillisecond(), ',', 9) );
- jau::POctets v(data.size()+1, jau::lb_endian::little);
+ jau::POctets v(data.size()+1, jau::lb_endian_t::little);
v.put_string_nc(0, data, v.size(), true /* includeEOS */);
if( 0 != handlePulseDataNotify ) {
if( GATT_VERBOSE ) {