【适配】at 组件最新版改动。
Signed-off-by: armink <armink.ztl@gmail.com>
This commit is contained in:
parent
3d0a0be66c
commit
3284f063e2
@ -28,6 +28,9 @@
|
||||
#include <rtthread.h>
|
||||
#include <at.h>
|
||||
|
||||
#define LOG_TAG "at.sample"
|
||||
#include <at_log.h>
|
||||
|
||||
/* AT+CIFSR Query local IP address and MAC */
|
||||
int at_client_test(int argc, char **argv)
|
||||
{
|
||||
|
2849
at_socket_ec20.c
2849
at_socket_ec20.c
File diff suppressed because it is too large
Load Diff
@ -31,11 +31,14 @@
|
||||
|
||||
#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!"
|
||||
#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_WAIT_CONNECT_TIME 5000
|
||||
@ -714,4 +717,4 @@ static int at_socket_device_init(void)
|
||||
}
|
||||
INIT_APP_EXPORT(at_socket_device_init);
|
||||
|
||||
#endif /* AT_DEVICE_NOT_SELECTED */
|
||||
#endif /* AT_DEVICE_ESP8266 */
|
||||
|
@ -31,11 +31,14 @@
|
||||
#include <at.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!"
|
||||
#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_WAIT_CONNECT_TIME 5000
|
||||
@ -928,4 +931,4 @@ static int at_socket_device_init(void)
|
||||
}
|
||||
INIT_APP_EXPORT(at_socket_device_init);
|
||||
|
||||
#endif /* AT_DEVICE_NOT_SELECTED */
|
||||
#endif /* AT_DEVICE_M26 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user