Commit 89825f99 authored by aligungr's avatar aligungr

UE status command improvement

parent 8467caa8
......@@ -94,16 +94,9 @@ void UeCmdHandler::handleCmdImpl(NwUeCliCommand &msg)
{
case app::UeCliCommand::STATUS: {
std::vector<Json> pduSessions{};
int index = 0;
for (auto &pduSession : m_base->appTask->m_pduSessions)
{
if (pduSession.has_value())
{
pduSessions.push_back(
Json::Obj({{"id", index}, {"type", pduSession->type}, {"address", pduSession->address}}));
}
index++;
}
pduSessions.push_back(ToJson(*pduSession));
Json json = Json::Obj({
{"cm-state", ToJson(m_base->nasTask->mm->m_cmState)},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment