aboutsummaryrefslogtreecommitdiffstats
path: root/trial/direct_bt
diff options
context:
space:
mode:
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 ) {