aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/dbt_labpadclient01.cpp8
-rw-r--r--examples/dbt_peripheral00.cpp2
-rw-r--r--examples/dbt_scanner10.cpp4
3 files changed, 7 insertions, 7 deletions
diff --git a/examples/dbt_labpadclient01.cpp b/examples/dbt_labpadclient01.cpp
index f051e61a..aaacae9e 100644
--- a/examples/dbt_labpadclient01.cpp
+++ b/examples/dbt_labpadclient01.cpp
@@ -99,16 +99,16 @@ static std::unique_ptr<uuid_t> cmd_rsp_uuid = jau::uuid_t::create(std::string("2
static const POctets cmd_data1( { 0x00 /* cmd-idx-0 */,
0x14, 0x00, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00,
0x01, 0x5E, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00,
- 0x9B, 0x23, 0x84 }, endian::little);
+ 0x9B, 0x23, 0x84 }, lb_endian::little);
static const POctets cmd_data2( { 0x01 /* cmd-idx-1 */,
- 0xB8 }, endian::little);
+ 0xB8 }, lb_endian::little);
static const POctets resp_exp( { 0x00 /* rsp-idx-0 */,
0x14, 0x00, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00,
0x01, 0x89, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xf6, 0x64, 0x17,
- 0x01 /* rsp-idx-1 */, 0xed }, endian::little );
+ 0x01 /* rsp-idx-1 */, 0xed }, lb_endian::little );
static bool SHOW_UPDATE_EVENTS = false;
static bool QUIET = false;
@@ -562,7 +562,7 @@ static void processReadyDevice(const BTDeviceRef& device) {
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::endian::little);
+ POctets value(BTGattHandler::number(BTGattHandler::Defaults::MAX_ATT_MTU), 0, jau::lb_endian::little);
if( serviceChar->readValue(value) ) {
std::string sval = dfa_utf8_decode(value.get_ptr(), value.size());
{
diff --git a/examples/dbt_peripheral00.cpp b/examples/dbt_peripheral00.cpp
index 6740ab3a..a2d18305 100644
--- a/examples/dbt_peripheral00.cpp
+++ b/examples/dbt_peripheral00.cpp
@@ -366,7 +366,7 @@ class MyGATTServerListener : public DBGattServer::Listener {
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::endian::little);
+ jau::POctets v(data.size()+1, jau::lb_endian::little);
v.put_string_nc(0, data, v.size(), true /* includeEOS */);
if( 0 != handlePulseDataNotify ) {
const bool res = connectedDevice_->sendNotification(handlePulseDataNotify, v);
diff --git a/examples/dbt_scanner10.cpp b/examples/dbt_scanner10.cpp
index 298e7e1b..9d80c261 100644
--- a/examples/dbt_scanner10.cpp
+++ b/examples/dbt_scanner10.cpp
@@ -471,7 +471,7 @@ static void processReadyDevice(const BTDeviceRef& device) {
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, endian::little);
+ POctets cmd_data(1, lb_endian::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 ) {
@@ -523,7 +523,7 @@ static void processReadyDevice(const BTDeviceRef& device) {
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::endian::little);
+ POctets value(BTGattHandler::number(BTGattHandler::Defaults::MAX_ATT_MTU), 0, jau::lb_endian::little);
if( serviceChar->readValue(value) ) {
std::string sval = dfa_utf8_decode(value.get_ptr(), value.size());
{