ESP-IDF
ot::Coap::Message::GetCode() const
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
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::GetCode() const
ot::Coap::Message::GetCode() const method
Returns the Code value.
Syntax
Show:
Summary
Declaration
from
coap_message.hpp:273
uint8_t
GetCode
(
void
)
const
;
Return value
The Code value.
Examples
References
from
examples
Code
Location
Scope
Referrer
uint8_t
GetCode
(
void
)
const
{
return
static_cast
<
Code
>
(
GetHelpData
(
)
.
mHeader
.
mCode
)
;
}
coap_message.hpp:273
if
(
aForwardContext
.
IsPetition
(
)
&&
aResponse
->
GetCode
(
)
==
Coap
::
kCodeChanged
)
border_agent.cpp:179
ot::MeshCoP::BorderAgent
ot::MeshCoP::BorderAgent::HandleCoapResponse()
SuccessOrExit
(
error
=
aForwardContext
.
ToHeader
(
*
message
,
aResponse
->
GetCode
(
)
)
)
;
border_agent.cpp:216
ot::MeshCoP::BorderAgent
ot::MeshCoP::BorderAgent::HandleCoapResponse()
OT_ASSERT
(
aMessage
.
GetCode
(
)
==
kCodeEmpty
)
;
coap.cpp:233
ot::Coap::CoapBase
ot::Coap::CoapBase::SendMessage()
return
static_cast
<
otCoapCode
>
(
AsCoapMessage
(
aMessage
)
.
GetCode
(
)
)
;
coap_api.cpp:142
otCoapMessageGetCode()
return
Stringify
::
Lookup
(
GetCode
(
)
,
kCodeTable
,
"Unknown"
)
;
coap_message.cpp:490
ot::Coap::Message
ot::Coap::Message::CodeToString() const
bool
IsEmpty
(
void
)
const
{
return
(
GetCode
(
)
==
kCodeEmpty
)
;
}
coap_message.hpp:637
ot::Coap::Message
ot::Coap::Message::IsEmpty() const
bool
IsRequest
(
void
)
const
{
return
(
GetCode
(
)
>=
kCodeGet
)
&&
(
GetCode
(
)
<=
kCodeDelete
)
;
}
coap_message.hpp:645
ot::Coap::Message
ot::Coap::Message::IsRequest() const
bool
IsGetRequest
(
void
)
const
{
return
GetCode
(
)
==
kCodeGet
;
}
coap_message.hpp:653
ot::Coap::Message
ot::Coap::Message::IsGetRequest() const
bool
IsPostRequest
(
void
)
const
{
return
GetCode
(
)
==
kCodePost
;
}
coap_message.hpp:661
ot::Coap::Message
ot::Coap::Message::IsPostRequest() const
bool
IsPutRequest
(
void
)
const
{
return
GetCode
(
)
==
kCodePut
;
}
coap_message.hpp:669
ot::Coap::Message
ot::Coap::Message::IsPutRequest() const
bool
IsDeleteRequest
(
void
)
const
{
return
GetCode
(
)
==
kCodeDelete
;
}
coap_message.hpp:677
ot::Coap::Message
ot::Coap::Message::IsDeleteRequest() const
bool
IsResponse
(
void
)
const
{
return
GetCode
(
)
>=
OT_COAP_CODE_RESPONSE_MIN
;
}
coap_message.hpp:685
ot::Coap::Message
ot::Coap::Message::IsResponse() const
VerifyOrExit
(
aMessage
->
GetCode
(
)
==
Coap
::
kCodeChanged
||
aMessage
->
GetCode
(
)
>=
Coap
::
kCodeBadRequest
,
dua_manager.cpp:572
ot::DuaManager
ot::DuaManager::HandleDuaResponse()
if
(
aMessage
.
GetCode
(
)
>=
Coap
::
kCodeBadRequest
)
dua_manager.cpp:613
ot::DuaManager
ot::DuaManager::ProcessDuaResponse()
VerifyOrExit
(
aMessage
->
GetCode
(
)
==
Coap
::
kCodeChanged
)
;
joiner_router.cpp:328
ot::MeshCoP::JoinerRouter
ot::MeshCoP::JoinerRouter::HandleJoinerEntrustResponse()
VerifyOrExit
(
aMessage
->
GetCode
(
)
==
Coap
::
kCodeChanged
)
;
mle_router.cpp:3252
ot::Mle::MleRouter
ot::Mle::MleRouter::HandleAddressSolicitResponse()
VerifyOrExit
(
aMessage
->
GetCode
(
)
==
Coap
::
kCodeChanged
,
error
=
kErrorParse
)
;
mlr_manager.cpp:483
ot::MlrManager
ot::MlrManager::ParseMlrResponse()
VerifyOrExit
(
aResponse
->
GetCode
(
)
==
Coap
::
kCodeChanged
,
error
=
kErrorDrop
)
;
network_diagnostic.cpp:650
ot::NetworkDiagnostic::Server
ot::NetworkDiagnostic::Server::HandleAnswerResponse()
VerifyOrExit
(
aMessage
->
GetCode
(
)
==
Coap
::
kCodeChanged
,
aResult
=
kErrorFailed
)
;
network_diagnostic.cpp:947
ot::NetworkDiagnostic::Client
ot::NetworkDiagnostic::Client::HandleGetResponse()
Call Tree
from
examples
ot::Coap::Message::GetCode() const
is called by 18 functions and calls 1 function:
ot::Coap::Message::IsEmpty() const
ot::Coap::Message::IsRequest() const
ot::Coap::Message::IsGetRequest() const
ot::Coap::Message::IsPostRequest() const
ot::Coap::Message::IsPutRequest() const
ot::Coap::Message::IsDeleteRequest() const
ot::Coap::Message::IsResponse() const
otCoapMessageGetCode()
ot::DuaManager::HandleDuaResponse()
ot::DuaManager::ProcessDuaResponse()
ot::Mle::MleRouter::HandleAddressSolicitResponse()
ot::MlrManager::ParseMlrResponse()
ot::NetworkDiagnostic::Server::HandleAnswerResponse()
ot::NetworkDiagnostic::Client::HandleGetResponse()
ot::Coap::CoapBase::SendMessage()
ot::Coap::Message::CodeToString() const
ot::MeshCoP::BorderAgent::HandleCoapResponse()
ot::MeshCoP::JoinerRouter::HandleJoinerEntrustResponse()
All items filtered out
ot::Coap::Message::GetCode() const
ot::Coap::Message::GetHelpData() const
All items filtered out
Data Use
from
examples
ot::Coap::Message::GetCode() const
reads 2 variables:
ot::Coap::Message::Header::mCode
ot::Coap::Message::HelpData::mHeader
All items filtered out
ot::Coap::Message::GetCode() 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