mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-18 12:04:03 -04:00
Commands crated by call request factory had the wrong timeout. Now timeout is defined by command.
24 lines
591 B
C++
24 lines
591 B
C++
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#include <string>
|
|
#include <memory>
|
|
|
|
#include <at/Result.hpp>
|
|
#include <at/Commands.hpp>
|
|
|
|
#include "service-cellular/requests/CallRequest.hpp"
|
|
|
|
namespace cellular
|
|
{
|
|
at::Cmd CallRequest::command()
|
|
{
|
|
return at::Cmd(std::string(at::factory(at::AT::ATD) + request + ";"), at::default_doc_timeout);
|
|
}
|
|
|
|
void CallRequest::handle(RequestHandler &h, at::Result &result)
|
|
{
|
|
h.handle(*this, result);
|
|
}
|
|
}; // namespace cellular
|