diff options
author | Sven Göthel <[email protected]> | 2024-03-02 23:31:16 +0100 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-03-02 23:31:16 +0100 |
commit | ba6561d92b49a858fa9542aa845d7c85ba387381 (patch) | |
tree | b4b075e574be626113de2dc3b539f6e9714a7d6f /src/direct_bt/BTGattHandler.cpp | |
parent | 41985a975e406864229a24b7e67ec2298bf6e9b2 (diff) |
Bump jaulib and adopt to jaulib byte_util API change (commit 147e17b0b41a123b2f4040cbd6df5b73b7e97164)
Diffstat (limited to 'src/direct_bt/BTGattHandler.cpp')
-rw-r--r-- | src/direct_bt/BTGattHandler.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/direct_bt/BTGattHandler.cpp b/src/direct_bt/BTGattHandler.cpp index 9ebf5445..e7eeb90a 100644 --- a/src/direct_bt/BTGattHandler.cpp +++ b/src/direct_bt/BTGattHandler.cpp @@ -600,7 +600,7 @@ BTGattHandler::BTGattHandler(const BTDeviceRef &device, L2CAPClient& l2cap_att, role(device->getLocalGATTRole()), l2cap(l2cap_att), deviceString(device->getAddressAndType().address.toString()), - rbuffer(number(Defaults::MAX_ATT_MTU), jau::endian::little), + rbuffer(number(Defaults::MAX_ATT_MTU), jau::lb_endian::little), is_connected(l2cap.is_open()), has_ioerror(false), l2cap_reader_service("GATTHandler::reader_"+deviceString, THREAD_SHUTDOWN_TIMEOUT_MS, jau::bind_member(this, &BTGattHandler::l2capReaderWork), @@ -1430,7 +1430,7 @@ static const jau::uuid16_t _PNP_ID(GattCharacteristicType::PNP_ID); std::shared_ptr<GattGenericAccessSvc> BTGattHandler::getGenericAccess(jau::darray<BTGattCharRef> & genericAccessCharDeclList) noexcept { std::shared_ptr<GattGenericAccessSvc> res = nullptr; - jau::POctets value(number(Defaults::MAX_ATT_MTU), 0, jau::endian::little); + jau::POctets value(number(Defaults::MAX_ATT_MTU), 0, jau::lb_endian::little); std::string deviceName = ""; AppearanceCat appearance = AppearanceCat::UNKNOWN; std::shared_ptr<GattPeriphalPreferredConnectionParameters> prefConnParam = nullptr; @@ -1479,7 +1479,7 @@ bool BTGattHandler::ping() noexcept { for(size_t i=0; readOK && i<services.size(); i++) { jau::darray<BTGattCharRef> & genericAccessCharDeclList = services.at(i)->characteristicList; - jau::POctets value(32, 0, jau::endian::little); + jau::POctets value(32, 0, jau::lb_endian::little); for(size_t j=0; readOK && j<genericAccessCharDeclList.size(); j++) { const BTGattChar & charDecl = *genericAccessCharDeclList.at(j); @@ -1507,16 +1507,16 @@ bool BTGattHandler::ping() noexcept { std::shared_ptr<GattDeviceInformationSvc> BTGattHandler::getDeviceInformation(jau::darray<BTGattCharRef> & characteristicDeclList) noexcept { std::shared_ptr<GattDeviceInformationSvc> res = nullptr; - jau::POctets value(number(Defaults::MAX_ATT_MTU), 0, jau::endian::little); + jau::POctets value(number(Defaults::MAX_ATT_MTU), 0, jau::lb_endian::little); - jau::POctets systemID(8, 0, jau::endian::little); + jau::POctets systemID(8, 0, jau::lb_endian::little); std::string modelNumber; std::string serialNumber; std::string firmwareRevision; std::string hardwareRevision; std::string softwareRevision; std::string manufacturer; - jau::POctets regulatoryCertDataList(128, 0, jau::endian::little); + jau::POctets regulatoryCertDataList(128, 0, jau::lb_endian::little); std::shared_ptr<GattPnP_ID> pnpID = nullptr; bool found = false; |