Kaynağa Gözat

format codes

Meco Man 3 yıl önce
ebeveyn
işleme
806bc122de
91 değiştirilmiş dosya ile 115 ekleme ve 115 silme
  1. 1 1
      class/a9g/at_device_a9g.c
  2. 1 1
      class/a9g/at_device_a9g.h
  3. 1 1
      class/a9g/at_socket_a9g.c
  4. 1 1
      class/air720/at_device_air720.c
  5. 1 1
      class/air720/at_device_air720.h
  6. 1 1
      class/air720/at_socket_air720.c
  7. 1 1
      class/bc26/at_device_bc26.c
  8. 1 1
      class/bc26/at_device_bc26.h
  9. 1 1
      class/bc26/at_socket_bc26.c
  10. 1 1
      class/bc28/at_device_bc28.c
  11. 1 1
      class/bc28/at_device_bc28.h
  12. 1 1
      class/bc28/at_socket_bc28.c
  13. 1 1
      class/ec20/at_device_ec20.c
  14. 1 1
      class/ec20/at_device_ec20.h
  15. 1 1
      class/ec20/at_socket_ec20.c
  16. 1 1
      class/ec200x/at_device_ec200x.c
  17. 1 1
      class/ec200x/at_device_ec200x.h
  18. 1 1
      class/ec200x/at_socket_ec200x.c
  19. 1 1
      class/esp32/at_device_esp32.c
  20. 1 1
      class/esp32/at_device_esp32.h
  21. 1 1
      class/esp32/at_socket_esp32.c
  22. 1 1
      class/esp8266/at_device_esp8266.c
  23. 1 1
      class/esp8266/at_device_esp8266.h
  24. 1 1
      class/esp8266/at_socket_esp8266.c
  25. 1 1
      class/l610/at_device_l610.c
  26. 1 1
      class/l610/at_device_l610.h
  27. 1 1
      class/l610/at_socket_l610.c
  28. 1 1
      class/m26/at_device_m26.c
  29. 1 1
      class/m26/at_device_m26.h
  30. 1 1
      class/m26/at_socket_m26.c
  31. 1 1
      class/m5311/at_device_m5311.c
  32. 1 1
      class/m5311/at_device_m5311.h
  33. 1 1
      class/m5311/at_socket_m5311.c
  34. 1 1
      class/m6315/at_device_m6315.c
  35. 1 1
      class/m6315/at_device_m6315.h
  36. 1 1
      class/m6315/at_socket_m6315.c
  37. 1 1
      class/me3616/at_device_me3616.c
  38. 1 1
      class/me3616/at_device_me3616.h
  39. 1 1
      class/me3616/at_socket_me3616.c
  40. 20 20
      class/ml305/at_device_ml305.c
  41. 2 2
      class/ml305/at_device_ml305.h
  42. 5 5
      class/ml305/at_socket_ml305.c
  43. 1 1
      class/mw31/at_device_mw31.c
  44. 1 1
      class/mw31/at_device_mw31.h
  45. 1 1
      class/mw31/at_socket_mw31.c
  46. 1 1
      class/n21/at_device_n21.c
  47. 1 1
      class/n21/at_device_n21.h
  48. 1 1
      class/n21/at_socket_n21.c
  49. 1 1
      class/n58/at_device_n58.c
  50. 1 1
      class/n58/at_device_n58.h
  51. 1 1
      class/n58/at_socket_n58.c
  52. 1 1
      class/n720/at_device_n720.c
  53. 1 1
      class/n720/at_device_n720.h
  54. 1 1
      class/n720/at_socket_n720.c
  55. 1 1
      class/rw007/at_device_rw007.c
  56. 1 1
      class/rw007/at_device_rw007.h
  57. 1 1
      class/rw007/at_socket_rw007.c
  58. 1 1
      class/sim76xx/at_device_sim76xx.c
  59. 1 1
      class/sim76xx/at_device_sim76xx.h
  60. 1 1
      class/sim76xx/at_socket_sim76xx.c
  61. 1 1
      class/sim800c/at_device_sim800c.c
  62. 1 1
      class/sim800c/at_device_sim800c.h
  63. 1 1
      class/sim800c/at_socket_sim800c.c
  64. 1 1
      class/w60x/at_device_w60x.c
  65. 1 1
      class/w60x/at_device_w60x.h
  66. 1 1
      class/w60x/at_socket_w60x.c
  67. 1 1
      inc/at_device.h
  68. 1 1
      samples/at_sample_a9g.c
  69. 1 1
      samples/at_sample_air720.c
  70. 1 1
      samples/at_sample_bc26.c
  71. 1 1
      samples/at_sample_bc28.c
  72. 1 1
      samples/at_sample_client.c
  73. 1 1
      samples/at_sample_ec20.c
  74. 1 1
      samples/at_sample_ec200x.c
  75. 1 1
      samples/at_sample_esp32.c
  76. 1 1
      samples/at_sample_esp8266.c
  77. 1 1
      samples/at_sample_l610.c
  78. 1 1
      samples/at_sample_m26.c
  79. 1 1
      samples/at_sample_m5311.c
  80. 1 1
      samples/at_sample_m6315.c
  81. 1 1
      samples/at_sample_me3616.c
  82. 1 1
      samples/at_sample_ml305.c
  83. 1 1
      samples/at_sample_mw31.c
  84. 1 1
      samples/at_sample_n21.c
  85. 1 1
      samples/at_sample_n58.c
  86. 1 1
      samples/at_sample_n720.c
  87. 1 1
      samples/at_sample_rw007.c
  88. 1 1
      samples/at_sample_sim76xx.c
  89. 1 1
      samples/at_sample_sim800c.c
  90. 1 1
      samples/at_sample_w60x.c
  91. 1 1
      src/at_device.c

+ 1 - 1
class/a9g/at_device_a9g.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/a9g/at_device_a9g.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/a9g/at_socket_a9g.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/air720/at_device_air720.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/air720/at_device_air720.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/air720/at_socket_air720.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/bc26/at_device_bc26.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/bc26/at_device_bc26.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/bc26/at_socket_bc26.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/bc28/at_device_bc28.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/bc28/at_device_bc28.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/bc28/at_socket_bc28.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/ec20/at_device_ec20.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/ec20/at_device_ec20.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/ec20/at_socket_ec20.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/ec200x/at_device_ec200x.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/ec200x/at_device_ec200x.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/ec200x/at_socket_ec200x.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/esp32/at_device_esp32.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/esp32/at_device_esp32.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/esp32/at_socket_esp32.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/esp8266/at_device_esp8266.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/esp8266/at_device_esp8266.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/esp8266/at_socket_esp8266.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/l610/at_device_l610.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/l610/at_device_l610.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/l610/at_socket_l610.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/m26/at_device_m26.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/m26/at_device_m26.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/m26/at_socket_m26.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/m5311/at_device_m5311.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/m5311/at_device_m5311.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/m5311/at_socket_m5311.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/m6315/at_device_m6315.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/m6315/at_device_m6315.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/m6315/at_socket_m6315.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/me3616/at_device_me3616.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/me3616/at_device_me3616.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/me3616/at_socket_me3616.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 20 - 20
class/ml305/at_device_ml305.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *
@@ -38,7 +38,7 @@ static rt_bool_t ml305_get_power_state(struct at_device *device)
     struct at_device_ml305 *ml305 = RT_NULL;
 
     ml305 = (struct at_device_ml305 *) device->user_data;
-    
+
     return (!rt_pin_read(ml305->power_status_pin)) ? ML305_POWER_ON : ML305_POWER_OFF;
 }
 
@@ -58,7 +58,7 @@ static void ml305_power_on(struct at_device *device)
     {
         return;
     }
-    
+
     rt_pin_write(ml305->power_pin, PIN_HIGH);
     rt_thread_mdelay(ML305_POWER_ON_TIME * RT_TICK_PER_SECOND);
     rt_pin_write(ml305->power_pin, PIN_LOW);
@@ -80,7 +80,7 @@ static void ml305_power_off(struct at_device *device)
         {
             return;
         }
-        
+
         rt_pin_write(ml305->power_pin, PIN_HIGH);
         rt_thread_mdelay(ML305_POWER_OFF_TIME * RT_TICK_PER_SECOND);
         rt_pin_write(ml305->power_pin, PIN_LOW);
@@ -94,18 +94,18 @@ static int ml305_check_link_status(struct at_device *device)
     struct at_device_ml305 *ml305 = RT_NULL;
     int result = -RT_ERROR;
     int link_stat = 0;
-    
+
     RT_ASSERT(device);
 
     ml305 = (struct at_device_ml305 *)device->user_data;
-    
+
     resp = at_create_resp(64, 0, rt_tick_from_millisecond(300));
     if (resp == RT_NULL)
     {
         LOG_E("no memory for resp create.");
         return -RT_ERROR;
     }
-    
+
     if(at_obj_exec_cmd(device->client, resp, "AT+CGREG?") < 0)
     {
         result = -RT_ERROR;
@@ -119,7 +119,7 @@ static int ml305_check_link_status(struct at_device *device)
             result = RT_EOK;
         }
     }
-    
+
     if(at_obj_exec_cmd(device->client, resp, "AT+CGACT?") < 0)
     {
         result = -RT_ERROR;
@@ -132,12 +132,12 @@ static int ml305_check_link_status(struct at_device *device)
     }
 
 __exit:
-    
+
     if(resp)
     {
         at_delete_resp(resp);
     }
-    
+
     return(result);
 }
 
@@ -263,7 +263,7 @@ static int ml305_netdev_set_info(struct netdev *netdev)
         sscanf(dns1_str, "DNS1:%s", dns_server1);
         const char *dns2_str = strstr(dns_str, "DNS2:");
         sscanf(dns2_str, "DNS2:%s", dns_server2);
-        
+
         LOG_D("ml305 device(%s) primary DNS server address: %s", device->name, dns_server1);
         LOG_D("ml305 device(%s) secondary DNS server address: %s", device->name, dns_server2);
 
@@ -321,7 +321,7 @@ static void check_link_status_entry(void *parameter)
         {
             netdev_low_level_set_link_status(netdev, (ML305_LINK_STATUS_OK == link_status));
         }
-        
+
         rt_thread_mdelay(ML305_LINK_DELAY_TIME);
     }
 }
@@ -664,7 +664,7 @@ static void ml305_init_thread_entry(void *parameter)
             result = -RT_ERROR;
             goto __exit;
         }
-        
+
         /* check signal strength */
         for (i = 0; i < CSQ_RETRY; i++)
         {
@@ -683,7 +683,7 @@ static void ml305_init_thread_entry(void *parameter)
             result = -RT_ERROR;
             goto __exit;
         }
-        
+
         /* check the GSM network is registered */
         for (i = 0; i < CREG_RETRY; i++)
         {
@@ -763,7 +763,7 @@ static void ml305_init_thread_entry(void *parameter)
             result = -RT_ERROR;
             goto __exit;
         }
-        
+
 #if defined (AT_DEBUG)
         /* check the GPRS network IP address */
         for (i = 0; i < IPADDR_RETRY; i++)
@@ -791,7 +791,7 @@ static void ml305_init_thread_entry(void *parameter)
 #endif
 
         result = RT_EOK;
-        
+
 __exit:
         if (result == RT_EOK)
         {
@@ -874,9 +874,9 @@ static int ml305_init(struct at_device *device)
     struct at_device_ml305 *ml305 = (struct at_device_ml305 *) device->user_data;
 
     struct serial_configure serial_config = RT_SERIAL_CONFIG_DEFAULT;
-    
+
     rt_device_t serial = rt_device_find(ml305->client_name);
-    
+
      if (serial == RT_NULL)
     {
         LOG_E("ml305 device(%s) initialize failed, get AT client(%s) failed.", ml305->device_name, ml305->client_name);
@@ -884,7 +884,7 @@ static int ml305_init(struct at_device *device)
     }
     serial_config.bufsz = ml305->recv_buff_size;
     rt_device_control(serial, RT_DEVICE_CTRL_CONFIG, &serial_config);
-    
+
     /* initialize AT client */
     at_client_init(ml305->client_name, ml305->recv_buff_size);
 
@@ -915,7 +915,7 @@ static int ml305_init(struct at_device *device)
     {
         rt_pin_mode(ml305->power_pin, PIN_MODE_OUTPUT);
     }
-    
+
     if (ml305->power_status_pin != -1)
     {
         rt_pin_mode(ml305->power_status_pin, PIN_MODE_INPUT_PULLUP);

+ 2 - 2
class/ml305/at_device_ml305.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *
@@ -33,7 +33,7 @@ struct at_device_ml305
     int power_status_pin;
     size_t recv_buff_size;
     struct at_device device;
- 
+
     void *user_data;
 };
 

+ 5 - 5
class/ml305/at_socket_ml305.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *
@@ -75,13 +75,13 @@ static int ml305_socket_close(struct at_socket *socket)
     /* clear socket close event */
     event = SET_EVENT(device_socket, ML305_EVENT_CLOSE_OK);
     ml305_socket_event_recv(device, event, 0, RT_EVENT_FLAG_OR);
-    
+
     if (at_obj_exec_cmd(device->client, NULL, "AT+MIPCLOSE=%d", device_socket) < 0)
     {
         result = -RT_ERROR;
         goto __exit;
     }
-    
+
     if (ml305_socket_event_recv(device, event, rt_tick_from_millisecond(300 * 3), RT_EVENT_FLAG_AND) < 0)
     {
         LOG_E("ml305 device(%s) socket(%d) close failed, wait close OK timeout.", device->name, device_socket);
@@ -242,7 +242,7 @@ static int ml305_socket_send(struct at_socket *socket, const char *buff, size_t
     /* clear socket connect event */
     event = SET_EVENT(device_socket, ML305_EVENT_SEND_OK | ML305_EVENT_SEND_FAIL);
     ml305_socket_event_recv(device, event, 0, RT_EVENT_FLAG_OR);
-    
+
     /* set AT client end sign to deal with '>' sign.*/
     at_obj_set_end_sign(device->client, '>');
 
@@ -593,7 +593,7 @@ static void urc_func(struct at_client *client, const char *data, rt_size_t size)
 static void urc_mipurc_func(struct at_client *client, const char *data, rt_size_t size)
 {
     RT_ASSERT(data && size);
-    
+
     switch(*(data + 10))
     {
     case 's' : urc_state_func(client, data, size); break;   //+MIPURC: ”state”,<connect_id>,<connect_state>

+ 1 - 1
class/mw31/at_device_mw31.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/mw31/at_device_mw31.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/mw31/at_socket_mw31.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/n21/at_device_n21.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/n21/at_device_n21.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/n21/at_socket_n21.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/n58/at_device_n58.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/n58/at_device_n58.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/n58/at_socket_n58.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/n720/at_device_n720.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/n720/at_device_n720.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/n720/at_socket_n720.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/rw007/at_device_rw007.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/rw007/at_device_rw007.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/rw007/at_socket_rw007.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/sim76xx/at_device_sim76xx.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/sim76xx/at_device_sim76xx.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/sim76xx/at_socket_sim76xx.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/sim800c/at_device_sim800c.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/sim800c/at_device_sim800c.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/sim800c/at_socket_sim800c.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/w60x/at_device_w60x.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/w60x/at_device_w60x.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
class/w60x/at_socket_w60x.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
inc/at_device.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_a9g.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_air720.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_bc26.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_bc28.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_client.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_ec20.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_ec200x.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_esp32.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_esp8266.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_l610.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_m26.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_m5311.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_m6315.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_me3616.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_ml305.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_mw31.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_n21.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_n58.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_n720.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_rw007.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_sim76xx.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_sim800c.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
samples/at_sample_w60x.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *

+ 1 - 1
src/at_device.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
  *
  * SPDX-License-Identifier: Apache-2.0
  *