Просмотр исходного кода

Merge pull request #18 from chenyong111/master

【修改】适配 AT Client 多客户端改动
朱天龙 (Armink) 7 лет назад
Родитель
Сommit
a17f553d92
2 измененных файлов с 2 добавлено и 4 удалено
  1. 1 2
      at_socket_esp8266.c
  2. 1 2
      at_socket_m26.c

+ 1 - 2
at_socket_esp8266.c

@@ -240,7 +240,6 @@ static int esp8266_socket_send(int socket, const char *buff, size_t bfsz, enum a
     /* set current socket for send URC event */
     cur_socket = socket;
     /* set AT client end sign to deal with '>' sign.*/
-    extern int at_set_end_sign(char ch);
     at_set_end_sign('>');
 
     while (sent_size < bfsz)
@@ -702,7 +701,7 @@ static int at_socket_device_init(void)
     }
 
     /* initialize AT client */
-    at_client_init();
+    at_client_init(AT_DEVICE_NAME, AT_DEVICE_RECV_BUFF_LEN);
 
     /* register URC data execution function  */
     at_set_urc_table(urc_table, sizeof(urc_table) / sizeof(urc_table[0]));

+ 1 - 2
at_socket_m26.c

@@ -293,7 +293,6 @@ static int m26_socket_send(int socket, const char *buff, size_t bfsz, enum at_so
     /* set current socket for send URC event */
     cur_socket = socket;
     /* set AT client end sign to deal with '>' sign.*/
-    extern int at_set_end_sign(char ch);
     at_set_end_sign('>');
 
     while (sent_size < bfsz)
@@ -907,7 +906,7 @@ static int at_socket_device_init(void)
     }
 
     /* initialize AT client */
-    at_client_init();
+    at_client_init(AT_DEVICE_NAME, AT_DEVICE_RECV_BUFF_LEN);
 
     /* register URC data execution function  */
     at_set_urc_table(urc_table, sizeof(urc_table) / sizeof(urc_table[0]));