We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cb07755 + f5b6a37 commit c298f99Copy full SHA for c298f99
at_client_sample.c
@@ -112,7 +112,23 @@ int at_client_test(int argc, char **argv)
112
113
return result;
114
}
115
+
116
+int at_client_test_init(int argc, char **argv)
117
+{
118
+#define AT_CLIENT_RECV_BUFF_LEN 512
119
120
+ if (argc != 2)
121
+ {
122
+ rt_kprintf("at_client_init <dev_name> -- AT client initialize.\n");
123
+ return -RT_ERROR;
124
+ }
125
126
+ at_client_init(argv[1], AT_CLIENT_RECV_BUFF_LEN);
127
128
+ return RT_EOK;
129
+}
130
#ifdef FINSH_USING_MSH
131
#include <finsh.h>
132
MSH_CMD_EXPORT(at_client_test, AT client send cmd and get response);
133
+MSH_CMD_EXPORT_ALIAS(at_client_test_init, at_client_init, initialize AT client);
134
#endif
0 commit comments