ESP-IDF
ot::Coap::Message::GetTokenLength() const
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (2/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
ot::Coap::Message::GetTokenLength() const
ot::Coap::Message::GetTokenLength() const method
Returns the Token length.
Syntax
Show:
Summary
Declaration
from
coap_message.hpp:310
uint8_t
GetTokenLength
(
void
)
const
;
Return value
The Token length.
Examples
References
from
examples
Code
Location
Scope
Referrer
uint8_t
GetTokenLength
(
void
)
const
coap_message.hpp:310
mTokenLength
=
aMessage
.
GetTokenLength
(
)
;
border_agent.cpp:58
ot::MeshCoP::BorderAgent::ForwardContext
ot::MeshCoP::BorderAgent::ForwardContext::Init()
uint8_t
otCoapMessageGetTokenLength
(
const
otMessage
*
aMessage
)
{
return
AsCoapMessage
(
aMessage
)
.
GetTokenLength
(
)
;
}
coap_api.cpp:151
otCoapMessageGetTokenLength()
VerifyOrExit
(
GetTokenLength
(
)
<=
kMaxTokenLength
,
error
=
kErrorParse
)
;
coap_message.cpp:382
ot::Coap::Message
ot::Coap::Message::ParseHeader()
SuccessOrExit
(
error
=
Read
(
offset
,
GetHelpData
(
)
.
mHeader
.
mToken
,
GetTokenLength
(
)
)
)
;
coap_message.cpp:383
ot::Coap::Message
ot::Coap::Message::ParseHeader()
return
SetToken
(
aMessage
.
GetToken
(
)
,
aMessage
.
GetTokenLength
(
)
)
;
coap_message.cpp:423
ot::Coap::Message
ot::Coap::Message::SetTokenFromMessage()
uint8_t
tokenLength
=
GetTokenLength
(
)
;
coap_message.cpp:428
ot::Coap::Message
ot::Coap::Message::IsTokenEqual() const
return
(
(
tokenLength
==
aMessage
.
GetTokenLength
(
)
)
&&
(
memcmp
(
GetToken
(
)
,
aMessage
.
GetToken
(
)
,
tokenLength
)
==
0
)
)
;
coap_message.cpp:430
ot::Coap::Message
ot::Coap::Message::IsTokenEqual() const
uint16_t
GetOptionStart
(
void
)
const
{
return
kMinHeaderLength
+
GetTokenLength
(
)
;
}
coap_message.hpp:587
ot::Coap::Message
ot::Coap::Message::GetOptionStart() const
Call Tree
from
examples
ot::Coap::Message::GetTokenLength() const
is called by 6 functions and calls 1 function:
ot::Coap::Message::GetOptionStart() const
otCoapMessageGetTokenLength()
ot::Coap::Message::ParseHeader()
ot::Coap::Message::SetTokenFromMessage()
ot::Coap::Message::IsTokenEqual() const
ot::MeshCoP::BorderAgent::ForwardContext::Init()
All items filtered out
ot::Coap::Message::GetTokenLength() const
ot::Coap::Message::GetHelpData() const
All items filtered out
Data Use
from
examples
ot::Coap::Message::GetTokenLength() const
reads 4 variables:
ot::Coap::Message::kTokenLengthOffset
ot::Coap::Message::kTokenLengthMask
ot::Coap::Message::Header::mVersionTypeToken
ot::Coap::Message::HelpData::mHeader
All items filtered out
ot::Coap::Message::GetTokenLength() const
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out