【适配】at 组件最新版改动。

Signed-off-by: armink <armink.ztl@gmail.com>
This commit is contained in:
armink 2018-10-13 12:24:34 +08:00
parent 3d0a0be66c
commit 3284f063e2
4 changed files with 1441 additions and 1429 deletions

View File

@ -28,6 +28,9 @@
#include <rtthread.h> #include <rtthread.h>
#include <at.h> #include <at.h>
#define LOG_TAG "at.sample"
#include <at_log.h>
/* AT+CIFSR Query local IP address and MAC */ /* AT+CIFSR Query local IP address and MAC */
int at_client_test(int argc, char **argv) int at_client_test(int argc, char **argv)
{ {

View File

@ -32,11 +32,14 @@
#include <at.h> #include <at.h>
#include <at_socket.h> #include <at_socket.h>
#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10100 #if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10200
#error "This AT Client version is older, please check and update latest AT Client!" #error "This AT Client version is older, please check and update latest AT Client!"
#endif #endif
#ifndef AT_DEVICE_NOT_SELECTED #define LOG_TAG "at.ec20"
#include <at_log.h>
#ifdef AT_DEVICE_EC20
#define EC20_MODULE_SEND_MAX_SIZE 1460 #define EC20_MODULE_SEND_MAX_SIZE 1460
#define EC20_WAIT_CONNECT_TIME 5000 #define EC20_WAIT_CONNECT_TIME 5000
@ -1420,4 +1423,4 @@ static int at_socket_device_init(void)
} }
INIT_APP_EXPORT(at_socket_device_init); INIT_APP_EXPORT(at_socket_device_init);
#endif /* AT_DEVICE_NOT_SELECTED */ #endif /* AT_DEVICE_EC20 */

View File

@ -31,11 +31,14 @@
#include <at_socket.h> #include <at_socket.h>
#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10100 #if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10200
#error "This AT Client version is older, please check and update latest AT Client!" #error "This AT Client version is older, please check and update latest AT Client!"
#endif #endif
#ifndef AT_DEVICE_NOT_SELECTED #define LOG_TAG "at.esp8266"
#include <at_log.h>
#ifdef AT_DEVICE_ESP8266
#define ESP8266_MODULE_SEND_MAX_SIZE 2048 #define ESP8266_MODULE_SEND_MAX_SIZE 2048
#define ESP8266_WAIT_CONNECT_TIME 5000 #define ESP8266_WAIT_CONNECT_TIME 5000
@ -714,4 +717,4 @@ static int at_socket_device_init(void)
} }
INIT_APP_EXPORT(at_socket_device_init); INIT_APP_EXPORT(at_socket_device_init);
#endif /* AT_DEVICE_NOT_SELECTED */ #endif /* AT_DEVICE_ESP8266 */

View File

@ -31,11 +31,14 @@
#include <at.h> #include <at.h>
#include <at_socket.h> #include <at_socket.h>
#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10100 #if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10200
#error "This AT Client version is older, please check and update latest AT Client!" #error "This AT Client version is older, please check and update latest AT Client!"
#endif #endif
#ifndef AT_DEVICE_NOT_SELECTED #define LOG_TAG "at.m26|mc20"
#include <at_log.h>
#ifdef AT_DEVICE_M26
#define M26_MODULE_SEND_MAX_SIZE 1460 #define M26_MODULE_SEND_MAX_SIZE 1460
#define M26_WAIT_CONNECT_TIME 5000 #define M26_WAIT_CONNECT_TIME 5000
@ -928,4 +931,4 @@ static int at_socket_device_init(void)
} }
INIT_APP_EXPORT(at_socket_device_init); INIT_APP_EXPORT(at_socket_device_init);
#endif /* AT_DEVICE_NOT_SELECTED */ #endif /* AT_DEVICE_M26 */