17 transport.
send(
reinterpret_cast<const char*
>(encoder.
data()), encoder.
size());
23 transport.
send(
reinterpret_cast<const char*
>(encoder.
data()), encoder.
size());
31 transport.
send(
reinterpret_cast<const char*
>(encoder.
data()), encoder.
size());
36 encoder.
write(
"at_api", version);
40 transport.
send(
reinterpret_cast<const char*
>(encoder.
data()), encoder.
size());
46 transport.
send(
reinterpret_cast<const char*
>(encoder.
data()), encoder.
size());
52 transport.
send(
reinterpret_cast<const char*
>(encoder.
data()), encoder.
size());
Definition: ma_codec_base.h:14
virtual ma_err_t end()=0
Encoder type for end.
virtual const void * data() const =0
Encoder type for get data.
virtual ma_err_t begin()=0
Encoder type for begin.
virtual ma_err_t write(const std::string &key, int8_t value)=0
Encoder type for write int8_t value.
virtual const size_t size() const =0
Encoder type for get size.
Definition: ma_transport.h:12
virtual size_t send(const char *data, size_t length) noexcept=0
#define MA_VERSION
Definition: ma_common.h:17
int64_t ma_get_time_ms(void)
@ MA_MSG_TYPE_RESP
Definition: ma_types.h:252
@ MA_OK
Definition: ma_types.h:23
Definition: algorithm.hpp:11
void task_status(const std::string &cmd, bool sta, Transport &transport, Encoder &encoder)
Definition: common.hpp:49
void break_task(const std::string &cmd, Transport &transport, Encoder &encoder)
Definition: common.hpp:43
void get_device_name(const std::string &cmd, Transport &transport, Encoder &encoder)
Definition: common.hpp:20
void get_device_status(const std::string &cmd, Transport &transport, Encoder &encoder)
Definition: common.hpp:26
void get_version(const std::string &cmd, Transport &transport, Encoder &encoder, const std::string &version)
Definition: common.hpp:34
void get_device_id(const std::string &cmd, Transport &transport, Encoder &encoder)
Definition: common.hpp:14
#define static_resource
Definition: resource.hpp:64