jomjol 4 лет назад
Родитель
Сommit
6c365dd949

+ 7 - 1
README.md

@@ -45,7 +45,13 @@ In other cases you can contact the developer via email: <img src="https://raw.gi
 
 **General remark:** Beside the `firmware.bin`, typically also the content of `/html` needs to be updated!
 
-##### Rolling (2021-08-07)
+
+
+##### Rolling (2021-08-09)
+
+* remove reconnect limit in wlan module
+
+Rolling (2021-08-07)
 
 * GPIO: using the general mqtt main topic for GPIO
 * Update tfmicro to new master (2021-08-07)

+ 1 - 5
code/components/jomjol_wlan/connect_wlan.cpp

@@ -115,14 +115,10 @@ static void event_handler(void* arg, esp_event_base_t event_base,
         LEDBlinkTask(200, 1, true);
         esp_wifi_connect();
     } else if (event_base == WIFI_EVENT && event_id == WIFI_EVENT_STA_DISCONNECTED) {
-        if (s_retry_num < EXAMPLE_ESP_MAXIMUM_RETRY) {
-//            LEDBlinkTask(200, 1, true);
+//        if (s_retry_num < EXAMPLE_ESP_MAXIMUM_RETRY){ 
             esp_wifi_connect();
             s_retry_num++;
             ESP_LOGI(TAG, "retry to connect to the AP");
-        } else {
-            xEventGroupSetBits(s_wifi_event_group, WIFI_FAIL_BIT);
-        }
         ESP_LOGI(TAG,"connect to the AP fail");
     } else if (event_base == IP_EVENT && event_id == IP_EVENT_STA_GOT_IP) {
         ip_event_got_ip_t* event = (ip_event_got_ip_t*) event_data;

+ 2 - 2
code/main/version.cpp

@@ -1,4 +1,4 @@
-const char* GIT_REV="6f06af1";
+const char* GIT_REV="32f15fc";
 const char* GIT_TAG="";
 const char* GIT_BRANCH="rolling";
-const char* BUILD_TIME="2021-08-07 14:13";
+const char* BUILD_TIME="2021-08-09 21:31";

+ 2 - 2
code/version.cpp

@@ -1,4 +1,4 @@
-const char* GIT_REV="6f06af1";
+const char* GIT_REV="32f15fc";
 const char* GIT_TAG="";
 const char* GIT_BRANCH="rolling";
-const char* BUILD_TIME="2021-08-07 14:13";
+const char* BUILD_TIME="2021-08-09 21:31";

BIN
firmware/bootloader.bin


BIN
firmware/firmware.bin