| #include "mbtk_at.h" |
| /******************************************************* |
| * @method: ql_atc_init |
| * @Description: initialize environment variables. |
| * @param: void |
| * @return: |
| success: return 0 |
| error: return !0 |
| ********************************************************/ |
| int ql_atc_init() |
| { |
| return mbtk_at_init(); |
| } |
| |
| /******************************************************* |
| * @method: ql_atc_release |
| * @Description: release environment variables. |
| * @param: void |
| * @return: |
| success: return 0 |
| error: return !0 |
| ********************************************************/ |
| int ql_atc_release() |
| { |
| return mbtk_at_deinit(); |
| } |
| |
| /******************************************************* |
| * @method: ql_atc_send |
| * @Description: send at command(synchronous) |
| use this api should first call init api and finish call release api |
| * @param: |
| cmd: at command |
| resp: at return value |
| len: response value length |
| * @return: |
| success: return 0 |
| error: return !0 |
| ********************************************************/ |
| int ql_atc_send(char* cmd, char* resp, int resp_len) |
| { |
| return mbtk_at_send(cmd, resp, resp_len); |
| } |