MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / ate_setup

Function ate_setup

components/net/at/src/at_base_cmd.c:51–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49AT_CMD_EXPORT("AT+RST", RT_NULL, RT_NULL, RT_NULL, RT_NULL, at_rst_exec);
50
51static at_result_t ate_setup(const char *args)
52{
53 int echo_mode = atoi(args);
54
55 if(echo_mode == AT_ECHO_MODE_CLOSE || echo_mode == AT_ECHO_MODE_OPEN)
56 {
57 at_get_server()->echo_mode = echo_mode;
58 }
59 else
60 {
61 return AT_RESULT_FAILE;
62 }
63
64 return AT_RESULT_OK;
65}
66AT_CMD_EXPORT("ATE", "<value>", RT_NULL, RT_NULL, ate_setup, RT_NULL);
67
68static at_result_t at_show_cmd_exec(void)

Callers

nothing calls this directly

Calls 1

at_get_serverFunction · 0.85

Tested by

no test coverage detected