blob: cd1cf49f27743e44442bc77968c70d9224b3b240 [file] [log] [blame]
liubin281ac462023-07-19 14:22:54 +08001#include "mbtk_at.h"
2/*******************************************************
3* @method: ql_atc_init
4* @Description: initialize environment variables.
5* @param: void
6* @return:
7 success: return 0
8 error: return !0
9********************************************************/
10int ql_atc_init()
11{
12 return mbtk_at_init();
13}
14
15/*******************************************************
16* @method: ql_atc_release
17* @Description: release environment variables.
18* @param: void
19* @return:
20 success: return 0
21 error: return !0
22********************************************************/
23int ql_atc_release()
24{
25 return mbtk_at_deinit();
26}
27
28/*******************************************************
29* @method: ql_atc_send
30* @Description: send at command(synchronous)
31 use this api should first call init api and finish call release api
32* @param:
33 cmd: at command
34 resp: at return value
35 len: response value length
36* @return:
37 success: return 0
38 error: return !0
39********************************************************/
40int ql_atc_send(char* cmd, char* resp, int resp_len)
41{
42 return mbtk_at_send(cmd, resp, resp_len);
43}