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

Merge branch 'fix/esp_tls_timeout_issue' into 'master'

esp-tls: Fix esp-tls timeout issue

Closes IDF-4943

See merge request espressif/esp-idf!18323
Aditya Patwardhan 3 лет назад
Родитель
Сommit
c22a67208e
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      components/esp-tls/esp_tls.h

+ 4 - 1
components/esp-tls/esp_tls.h

@@ -146,7 +146,10 @@ typedef struct esp_tls_cfg {
     bool use_secure_element;                /*!< Enable this option to use secure element or
                                                  atecc608a chip ( Integrated with ESP32-WROOM-32SE ) */
 
-    int timeout_ms;                         /*!< Network timeout in milliseconds */
+    int timeout_ms;                         /*!< Network timeout in milliseconds.
+                                                 Note: If this value is not set, by default the timeout is
+                                                 set to 10 seconds. If you wish that the session should wait
+                                                 indefinitely then please use a larger value e.g., INT32_MAX */
 
     bool use_global_ca_store;               /*!< Use a global ca_store for all the connections in which
                                                  this bool is set. */