17TEST_CASE(
"ATT PDU Test 01",
"[datatype][attpdu]" ) {
21 std::shared_ptr<const jau::uuid_t> uuid16_2 = req.
getNType();
23 REQUIRE(uuid16_2->getTypeSizeInt() == 2);
24 REQUIRE( 0 == memcmp(uuid16.
data(), uuid16_2->data(), 2) );
25 REQUIRE( uuid16.
toString() == uuid16_2->toString() );
BT Core Spec v5.2: Vol 3, Part F ATT: 3.4.4.1 ATT_READ_BY_TYPE_REQ.
std::unique_ptr< const jau::uuid_t > getNType() const
constexpr uint16_t getStartHandle() const noexcept
constexpr uint16_t getEndHandle() const noexcept
const uint8_t * data() const noexcept override
returns the pointer to the uuid data of size getTypeSize()
std::string toString() const noexcept override
Returns the string representation in BE network order, i.e.
jau::nsize_t getTypeSizeInt() const noexcept
TEST_CASE("ATT PDU Test 01", "[datatype][attpdu]")