liubin | 281ac46 | 2023-07-19 14:22:54 +0800 | [diff] [blame] | 1 | #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 | ********************************************************/ |
| 10 | int 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 | ********************************************************/ |
| 23 | int 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 | ********************************************************/ |
| 40 | int ql_atc_send(char* cmd, char* resp, int resp_len) |
| 41 | { |
| 42 | return mbtk_at_send(cmd, resp, resp_len); |
| 43 | } |