Files
MuditaOS/module-services/service-cellular/requests/CallRequest.cpp
Alek Rudnik f893ca8fa4 [EGD-6455] Fix modem AT command timeouts
Fix modem AT command timeouts and make sure they are at least
bigger than the ones defined in Quectel specs.
2021-03-23 18:17:01 +01:00

26 lines
596 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"
#include <at/ATFactory.hpp>
namespace cellular
{
at::Cmd CallRequest::command()
{
auto cmd = at::factory(at::AT::ATD);
return cmd + request + ";";
}
void CallRequest::handle(RequestHandler &h, at::Result &result)
{
h.handle(*this, result);
}
}; // namespace cellular