diff --git a/README.md b/README.md index 4f8fc77..3a9c10a 100644 --- a/README.md +++ b/README.md @@ -15,25 +15,21 @@ at_core.c at_core.h用于OS版本 at_core_t at; 2. AT管理器配置参数 -const char at_core_conf_t conf = { +const at_core_conf_t conf = { + }; 3. 初始化AT管理器 -at_core_init(&at, conf); +at_core_init(&at, &conf); 4. 将AT管理器放入任务中轮询 at_poll_task(&at); 5. 发送单行命令 -at_send_singlline(&at, NULL, "AT+CSQ?"); +static void read_csq_callback(at_response_t *r) +{ + /*...*/ +} +at_send_singlline(&at, read_csq_callback, "AT+CSQ"); - -#### 码云特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)