1 #ifndef _MA_SERVER_AT_H_
2 #define _MA_SERVER_AT_H_
6 #include <forward_list>
12 #ifndef MA_SEVER_AT_EXECUTOR_STACK_SIZE
13 #define MA_SEVER_AT_EXECUTOR_STACK_SIZE 20 * 1024
16 #ifndef MA_SEVER_AT_EXECUTOR_TASK_PRIO
17 #define MA_SEVER_AT_EXECUTOR_TASK_PRIO 2
20 #ifndef MA_SEVER_AT_CMD_MAX_LENGTH
21 #define MA_SEVER_AT_CMD_MAX_LENGTH 4096
55 const std::string& desc,
56 const std::string& args,
67 static void threadEntryStub(
void* arg);
70 std::forward_list<ATService> m_services;
Definition: ma_server_at.h:42
ma_err_t stop()
Definition: ma_server_at.cpp:361
ma_err_t init()
Definition: ma_server_at.cpp:91
void threadEntry()
Definition: ma_server_at.cpp:60
ma_err_t addService(const std::string &name, const std::string &desc, const std::string &args, ATServiceCallback cb)
Definition: ma_server_at.cpp:365
ma_err_t removeService(const std::string &name)
ma_err_t start()
Definition: ma_server_at.cpp:340
ATServer(Encoder &codec)
Definition: ma_server_at.cpp:49
ma_err_t execute(std::string line, Transport &transport)
Definition: ma_server_at.cpp:370
Definition: ma_codec_base.h:14
Definition: ma_transport.h:12
ma_err_t
Definition: ma_types.h:21
std::function< ma_err_t(std::vector< std::string >, Transport &, Encoder &)> ATServiceCallback
Definition: ma_server_at.h:26
Definition: ma_server_at.h:30
uint8_t argc
Definition: ma_server_at.h:36
std::string desc
Definition: ma_server_at.h:34
ATServiceCallback cb
Definition: ma_server_at.h:37
std::string args
Definition: ma_server_at.h:35
ATService(const std::string &name, const std::string &desc, const std::string &args, ATServiceCallback cb)
Definition: ma_server_at.cpp:29
std::string name
Definition: ma_server_at.h:33