Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

适配EC800并修改潜在bug隐患 #213

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions class/ec200x/at_device_ec200x.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ static int ec200x_read_rssi(struct at_device *device)
/* set ec200x network interface device status and address information */
static int ec200x_netdev_set_info(struct netdev *netdev)
{
#define EC200X_INFO_RESP_SIZE 128
#define EC200X_INFO_RESP_SIZE 256
#define EC200X_INFO_RESP_TIMO rt_tick_from_millisecond(1000)

int result = RT_EOK;
Expand Down Expand Up @@ -322,7 +322,7 @@ static int ec200x_netdev_set_info(struct netdev *netdev)
#define EC200X_NETDEV_HWADDR_LEN 8
#define EC200X_IMEI_LEN 15

char imei[EC200X_IMEI_LEN] = {0};
char imei[32] = {0};
int i = 0, j = 0;

/* send "AT+GSN" commond to get device IMEI */
Expand Down Expand Up @@ -370,7 +370,7 @@ static int ec200x_netdev_set_info(struct netdev *netdev)

/* set network interface device IP address */
{
#define IP_ADDR_SIZE_MAX 16
#define IP_ADDR_SIZE_MAX 128
char ipaddr[IP_ADDR_SIZE_MAX] = {0};

/* send "AT+CGPADDR=1" commond to get IP address */
Expand Down