Skip to content

Commit c298f99

Browse files
authored
Merge pull request #29 from Lawlieta/master
【修改】AT Clinet 例程文件更新
2 parents cb07755 + f5b6a37 commit c298f99

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

at_client_sample.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,23 @@ int at_client_test(int argc, char **argv)
112112

113113
return result;
114114
}
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+
}
115130
#ifdef FINSH_USING_MSH
116131
#include <finsh.h>
117132
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);
118134
#endif

0 commit comments

Comments
 (0)