Skip to content

Commit a4eaef3

Browse files
authored
Merge pull request #57 from Lawlieta/master
【修改】AT 组件版本判断操作
2 parents 1625598 + d70339d commit a4eaef3

16 files changed

+9
-64
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,20 @@ AT device 软件包是对 AT 组件和 AT socket 功能的移植,需开启 AT
3838

3939
AT device 软件包目前已经发布多个版本,各个版本之间选项配置方式和其对应的系统版本有所不同,下面主要列出当前可使用的软件包版本信息:
4040

41-
- **V1.2.0**:RT-Thread 版本小于 V3.1.3,AT 组件版本等于 V1.0.0;
42-
- **V1.3.0**:RT-Thread 版本小于 V3.1.3,AT 组件版本等于 V1.1.0;
43-
- **V1.4.0**:RT-Thread 版本小于 V3.1.3或等于 V4.0.0, AT 组件版本等于 V1.2.0;
44-
- **V1.5.0**: RT-Thread 版本小于 V3.1.3 或等于 V4.0.0, AT 组件版本等于 V1.2.0;
45-
- **V1.6.0**: RT-Thread 版本等于 V3.1.3 或等于 V4.0.1, AT 组件版本等于 V1.2.0;
46-
- **laster**: RT-Thread 版本小于大于 V4.0.1 或者大于 3.1.3, AT 组件版本大于 V1.2.0;
41+
- **V1.2.0**适用于 RT-Thread 版本小于 V3.1.3,AT 组件版本等于 V1.0.0;
42+
- **V1.3.0**适用于 RT-Thread 版本小于 V3.1.3,AT 组件版本等于 V1.1.0;
43+
- **V1.4.0**适用于 RT-Thread 版本小于 V3.1.3或等于 V4.0.0, AT 组件版本等于 V1.2.0;
44+
- **V1.5.0**:适用于 RT-Thread 版本小于 V3.1.3 或等于 V4.0.0, AT 组件版本等于 V1.2.0;
45+
- **V1.6.0**:适用于 RT-Thread 版本等于 V3.1.3 或等于 V4.0.1, AT 组件版本等于 V1.2.0;
46+
- **laster**:只适用于 RT-Thread 版本大于 V4.0.1 或者大于 3.1.3, AT 组件版本大于 V1.2.0;
4747

4848
> 上述 版本判断在 menuconfig 中自动完成,at_device 软件包选择版本时会根据当前系统环境给出最佳版本支持,这里版本介绍作为运行环境参考。
4949
5050
针对不同的版本号,在 ENV 中的选项配置也有所不同,主要分为如下几部分:
5151

5252
**V1.X.X 版本配置选项介绍**
5353

54-
开启 AT device 软件包,该版本只支持**同时开启一种 AT 设备**, 配置选项具体如下所示:
54+
开启 AT device 软件包,该版本只支持**同时开启一种 AT 设备**, 配置选项具体如下所示:
5555

5656
RT-Thread online packages --->
5757
IoT - internet of things --->

class/ec20/at_device_ec20.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@
2929

3030
#include <at_device_ec20.h>
3131

32-
#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300
33-
#error "This AT Client version is older, please check and update latest AT Client!"
34-
#endif
35-
3632
#define LOG_TAG "at.dev"
3733
#include <at_log.h>
3834

class/ec20/at_socket_ec20.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@
2929

3030
#include <at_device_ec20.h>
3131

32-
#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300
33-
#error "This AT Client version is older, please check and update latest AT Client!"
34-
#endif
35-
3632
#define LOG_TAG "at.skt"
3733
#include <at_log.h>
3834

class/esp8266/at_device_esp8266.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@
2828

2929
#include <at_device_esp8266.h>
3030

31-
#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300
32-
#error "This AT Client version is older, please check and update latest AT Client!"
33-
#endif
34-
3531
#define LOG_TAG "at.dev"
3632

3733
#include <at_log.h>

class/esp8266/at_socket_esp8266.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@
2828

2929
#include <at_device_esp8266.h>
3030

31-
#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300
32-
#error "This AT Client version is older, please check and update latest AT Client!"
33-
#endif
34-
3531
#define LOG_TAG "at.skt"
3632
#include <at_log.h>
3733

class/m26/at_device_m26.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@
2828

2929
#include <at_device_m26.h>
3030

31-
#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300
32-
#error "This AT Client version is older, please check and update latest AT Client!"
33-
#endif
34-
3531
#define LOG_TAG "at.dev"
3632
#include <at_log.h>
3733

class/m26/at_socket_m26.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@
2828

2929
#include <at_device_m26.h>
3030

31-
#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300
32-
#error "This AT Client version is older, please check and update latest AT Client!"
33-
#endif
34-
3531
#define LOG_TAG "at.dev"
3632
#include <at_log.h>
3733

class/mw31/at_device_mw31.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@
2727

2828
#include <at_device_mw31.h>
2929

30-
#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300
31-
#error "This AT Client version is older, please check and update latest AT Client!"
32-
#endif
33-
3430
#define LOG_TAG "at.dev"
3531

3632
#include <at_log.h>

class/mw31/at_socket_mw31.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@
2727

2828
#include <at_device_mw31.h>
2929

30-
#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300
31-
#error "This AT Client version is older, please check and update latest AT Client!"
32-
#endif
33-
3430
#define LOG_TAG "at.skt"
3531
#include <at_log.h>
3632

class/rw007/at_device_rw007.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@
2828

2929
#include <at_device_rw007.h>
3030

31-
#if !defined(AT_SW_VERSION_NUM) || AT_SW_VERSION_NUM < 0x10300
32-
#error "This AT Client version is older, please check and update latest AT Client!"
33-
#endif
34-
3531
#define LOG_TAG "at.dev"
3632

3733
#include <at_log.h>

0 commit comments

Comments
 (0)