Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit db9fe2c

Browse files
authored
v1.4.1
### Releases v1.4.1 1. Fix bug. 2. Fix compiler warnings.
1 parent 5cdf7d1 commit db9fe2c

14 files changed

+69
-47
lines changed

README.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
* [Why do we need this ESPAsync_WiFiManager library](#why-do-we-need-this-async-espasync_wifimanager-library)
1515
* [Changelog](#changelog)
16+
* [Releases v1.4.1](#releases-v141)
1617
* [Major Releases v1.4.0](#major-releases-v140)
1718
* [Releases v1.3.0](#releases-v130)
1819
* [Releases v1.2.0](#releases-v120)
@@ -156,6 +157,11 @@ To appreciate the power of the [ESPAsyncWebServer](https://github.com/me-no-dev/
156157

157158
## Changelog
158159

160+
### Releases v1.4.1
161+
162+
1. Fix bug.
163+
2. Fix compiler warnings.
164+
159165
### Major Releases v1.4.0
160166

161167
1. Fix staticIP not saved in examples. See [ESP32 static IP not saved after restarting the device](https://github.com/khoih-prog/ESPAsync_WiFiManager/issues/19)
@@ -3087,7 +3093,7 @@ This is terminal debug output when running [Async_ConfigOnDRD_FS_MQTT_Ptr_Medium
30873093
30883094
```
30893095
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Medium using LittleFS on ESP32_DEV
3090-
ESPAsync_WiFiManager v1.4.0
3096+
ESPAsync_WiFiManager v1.4.1
30913097
ESP_DoubleResetDetector Version v1.1.0
30923098
Config File not found
30933099
Can't read Config File, using default values
@@ -3106,7 +3112,7 @@ Opening Configuration Portal. No timeout : DRD or No stored Credentials..
31063112
31073113
```
31083114
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Medium using LittleFS on ESP32_DEV
3109-
ESPAsync_WiFiManager v1.4.0
3115+
ESPAsync_WiFiManager v1.4.1
31103116
ESP_DoubleResetDetector Version v1.1.0
31113117
Config File not found
31123118
Can't read Config File, using default values
@@ -3194,7 +3200,7 @@ This is terminal debug output when running [Async_ConfigOnDRD_FS_MQTT_Ptr_Comple
31943200
31953201
```
31963202
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Complex using LittleFS on ESP8266_NODEMCU
3197-
ESPAsync_WiFiManager v1.4.0
3203+
ESPAsync_WiFiManager v1.4.1
31983204
ESP_DoubleResetDetector Version v1.1.0
31993205
{"AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name","AIO_KEY_Label":"aio_key"}
32003206
Config File successfully parsed
@@ -3234,7 +3240,7 @@ TWWWW WTWWW
32343240
32353241
```
32363242
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Complex using LittleFS on ESP8266_NODEMCU
3237-
ESPAsync_WiFiManager v1.4.0
3243+
ESPAsync_WiFiManager v1.4.1
32383244
ESP_DoubleResetDetector Version v1.1.0
32393245
{"AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name","AIO_KEY_Label":"aio_key"}
32403246
Config File successfully parsed
@@ -3324,7 +3330,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/
33243330
33253331
```cpp
33263332
Starting Async_ConfigOnDoubleReset with DoubleResetDetect using SPIFFS on ESP32_DEV
3327-
ESPAsync_WiFiManager v1.4.0
3333+
ESPAsync_WiFiManager v1.4.1
33283334
ESP_DoubleResetDetector Version v1.1.0
33293335
[WM] RFC925 Hostname = ConfigOnDoubleReset
33303336
[WM] setSTAStaticIPConfig for USE_CONFIGURABLE_DNS
@@ -3383,7 +3389,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/
33833389

33843390
```cpp
33853391
Starting Async_ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP8266_NODEMCU
3386-
ESPAsync_WiFiManager v1.4.0
3392+
ESPAsync_WiFiManager v1.4.1
33873393
ESP_DoubleResetDetector Version v1.1.0
33883394
[WM] RFC925 Hostname = ConfigOnDoubleReset
33893395
[WM] setSTAStaticIPConfig for USE_CONFIGURABLE_DNS
@@ -3443,7 +3449,7 @@ This is terminal debug output when running [Async_ESP_FSWebServer_DRD](examples/
34433449
34443450
```cpp
34453451
Starting Async_ESP_FSWebServer_DRD using LittleFS on ESP8266_NODEMCU
3446-
ESPAsync_WiFiManager v1.4.0
3452+
ESPAsync_WiFiManager v1.4.1
34473453
ESP_DoubleResetDetector Version v1.1.0
34483454
Opening / directory
34493455
FS File: CanadaFlag_1.png, size: 40.25KB
@@ -3521,7 +3527,7 @@ This is terminal debug output when running [Async_ESP32_FSWebServer_DRD](example
35213527

35223528
```
35233529
Starting Async_ESP32_FSWebServer_DRD using LittleFS on ESP32_DEV
3524-
ESPAsync_WiFiManager v1.4.0
3530+
ESPAsync_WiFiManager v1.4.1
35253531
ESP_DoubleResetDetector Version v1.1.0
35263532
FS File: /CanadaFlag_1.png, size: 40.25KB
35273533
FS File: /CanadaFlag_2.png, size: 8.12KB
@@ -3661,6 +3667,11 @@ Submit issues to: [ESPAsync_WiFiManager issues](https://github.com/khoih-prog/ES
36613667

36623668
## Releases
36633669

3670+
### Releases v1.4.1
3671+
3672+
1. Fix bug.
3673+
2. Fix compiler warnings.
3674+
36643675
### Major Releases v1.4.0
36653676

36663677
1. Fix staticIP not saved in examples. See [ESP32 static IP not saved after restarting the device](https://github.com/khoih-prog/ESPAsync_WiFiManager/issues/19)

examples/Async_AutoConnect_ESP32_minimal/Async_AutoConnect_ESP32_minimal.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void setup()
1515
{
1616
// put your setup code here, to run once:
1717
Serial.begin(115200); while (!Serial); delay(200);
18-
Serial.print("\nStarting Async_AutoConnectAP on " + String(ARDUINO_BOARD)); Serial.println(ESP_ASYNC_WIFIMANAGER_VERSION);
18+
Serial.print("\nStarting Async_AutoConnect_ESP32_minimal on " + String(ARDUINO_BOARD)); Serial.println(ESP_ASYNC_WIFIMANAGER_VERSION);
1919
ESPAsync_WiFiManager ESPAsync_wifiManager(&webServer, &dnsServer, "AutoConnectAP");
2020
//ESPAsync_wifiManager.resetSettings(); //reset saved settings
2121
ESPAsync_wifiManager.setAPStaticIPConfig(IPAddress(192,168,132,1), IPAddress(192,168,132,1), IPAddress(255,255,255,0));

examples/Async_ConfigOnStartup/Async_ConfigOnStartup.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@
4949
#define _ESPASYNC_WIFIMGR_LOGLEVEL_ 3
5050

5151
// Default is 30s, using 20s now
52-
#define TIME_BETWEEN_MODAL_SCANS 20000
52+
#define TIME_BETWEEN_MODAL_SCANS 20000UL
5353

5454
// Default is 60s, using 30s now
55-
#define TIME_BETWEEN_MODELESS_SCANS 30000
55+
#define TIME_BETWEEN_MODELESS_SCANS 30000UL
5656

5757
//For ESP32, To use ESP32 Dev Module, QIO, Flash 4MB/80MHz, Upload 921600
5858

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ESPAsync_WiFiManager",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"keywords": "wifi, wi-fi, WiFiManager, esp8266, esp32, AsyncWebServer, Async, Communication, iot",
55
"description": "ESP32, ESP8266 WiFi Connection Manager using AsyncWebServer, with enhanced GUI and fallback Web ConfigPortal. This Library is used for configuring ESP32, ESP8266 modules WiFi Credentials at runtime. You can also specify static DNS servers, personalized HostName, fixed or random AP channel. Now with MultiWiFi auto(Re)connect feature and configurable CORS Header.",
66
"authors":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ESPAsync_WiFiManager
2-
version=1.4.0
2+
version=1.4.1
33
author=Khoi Hoang
44
maintainer=Khoi Hoang <[email protected]>
55
license=MIT

src/ESPAsync_WiFiManager-Impl.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
16-
Version: 1.4.0
16+
Version: 1.4.1
1717
1818
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.2.0 K Hoang 15/10/2020 Restore cpp code besides Impl.h code to use if linker error. Fix bug.
2626
1.3.0 K Hoang 04/12/2020 Add LittleFS support to ESP32 using LITTLEFS Library
2727
1.4.0 K Hoang 18/12/2020 Fix staticIP not saved. Add functions. Add complex examples.
28+
1.4.1 K Hoang 21/12/2020 Fix bug and compiler warnings.
2829
*****************************************************************************************************************************/
2930

3031
#pragma once
@@ -570,9 +571,9 @@ void ESPAsync_WiFiManager::scan()
570571
wifiSSIDs[i].duplicate=false;
571572

572573
#if defined(ESP8266)
573-
bool res=WiFi.getNetworkInfo(i, wifiSSIDs[i].SSID, wifiSSIDs[i].encryptionType, wifiSSIDs[i].RSSI, wifiSSIDs[i].BSSID, wifiSSIDs[i].channel, wifiSSIDs[i].isHidden);
574+
WiFi.getNetworkInfo(i, wifiSSIDs[i].SSID, wifiSSIDs[i].encryptionType, wifiSSIDs[i].RSSI, wifiSSIDs[i].BSSID, wifiSSIDs[i].channel, wifiSSIDs[i].isHidden);
574575
#else
575-
bool res=WiFi.getNetworkInfo(i, wifiSSIDs[i].SSID, wifiSSIDs[i].encryptionType, wifiSSIDs[i].RSSI, wifiSSIDs[i].BSSID, wifiSSIDs[i].channel);
576+
WiFi.getNetworkInfo(i, wifiSSIDs[i].SSID, wifiSSIDs[i].encryptionType, wifiSSIDs[i].RSSI, wifiSSIDs[i].BSSID, wifiSSIDs[i].channel);
576577
#endif
577578
}
578579

@@ -981,7 +982,7 @@ int ESPAsync_WiFiManager::reconnectWifi(void)
981982

982983
int ESPAsync_WiFiManager::connectWifi(String ssid, String pass)
983984
{
984-
// Add option if didn't input/update SSID/PW => Use the previous saved Credentials. \
985+
// Add option if didn't input/update SSID/PW => Use the previous saved Credentials.
985986
// But update the Static/DHCP options if changed.
986987
if ( (ssid != "") || ( (ssid == "") && (WiFi_SSID() != "") ) )
987988
{
@@ -2191,7 +2192,7 @@ int ESPAsync_WiFiManager::getRSSIasQuality(int RSSI)
21912192
// Is this an IP?
21922193
boolean ESPAsync_WiFiManager::isIp(String str)
21932194
{
2194-
for (int i = 0; i < str.length(); i++)
2195+
for (unsigned int i = 0; i < str.length(); i++)
21952196
{
21962197
int c = str.charAt(i);
21972198

src/ESPAsync_WiFiManager.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
16-
Version: 1.4.0
16+
Version: 1.4.1
1717
1818
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
@@ -25,11 +25,12 @@
2525
1.2.0 K Hoang 15/10/2020 Restore cpp code besides Impl.h code to use if linker error. Fix bug.
2626
1.3.0 K Hoang 04/12/2020 Add LittleFS support to ESP32 using LITTLEFS Library
2727
1.4.0 K Hoang 18/12/2020 Fix staticIP not saved. Add functions. Add complex examples.
28+
1.4.1 K Hoang 21/12/2020 Fix bug and compiler warnings.
2829
*****************************************************************************************************************************/
2930

3031
#pragma once
3132

32-
#define ESP_ASYNC_WIFIMANAGER_VERSION "ESPAsync_WiFiManager v1.4.0"
33+
#define ESP_ASYNC_WIFIMANAGER_VERSION "ESPAsync_WiFiManager v1.4.1"
3334

3435
#include "ESPAsync_WiFiManager_Debug.h"
3536

@@ -106,12 +107,12 @@ typedef struct
106107

107108
#ifndef TIME_BETWEEN_MODAL_SCANS
108109
// Default to 30s
109-
#define TIME_BETWEEN_MODAL_SCANS 30000
110+
#define TIME_BETWEEN_MODAL_SCANS 30000UL
110111
#endif
111112

112113
#ifndef TIME_BETWEEN_MODELESS_SCANS
113114
// Default to 60s
114-
#define TIME_BETWEEN_MODELESS_SCANS 60000
115+
#define TIME_BETWEEN_MODELESS_SCANS 60000UL
115116
#endif
116117

117118
//KH
@@ -558,7 +559,8 @@ class ESPAsync_WiFiManager
558559

559560
WiFi_AP_IPConfig _WiFi_AP_IPconfig;
560561

561-
WiFi_STA_IPConfig _WiFi_STA_IPconfig = { IPAddress(0, 0, 0, 0) };
562+
WiFi_STA_IPConfig _WiFi_STA_IPconfig = { IPAddress(0, 0, 0, 0), IPAddress(192, 168, 2, 1), IPAddress(255, 255, 255, 0),
563+
IPAddress(192, 168, 2, 1), IPAddress(8, 8, 8, 8) };
562564

563565
int _paramsCount = 0;
564566
int _minimumQuality = -1;

src/ESPAsync_WiFiManager_Debug.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
16-
Version: 1.4.0
16+
Version: 1.4.1
1717
1818
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.2.0 K Hoang 15/10/2020 Restore cpp code besides Impl.h code to use if linker error. Fix bug.
2626
1.3.0 K Hoang 04/12/2020 Add LittleFS support to ESP32 using LITTLEFS Library
2727
1.4.0 K Hoang 18/12/2020 Fix staticIP not saved. Add functions. Add complex examples.
28+
1.4.1 K Hoang 21/12/2020 Fix bug and compiler warnings.
2829
*****************************************************************************************************************************/
2930

3031
#pragma once

src_cpp/ESPAsync_WiFiManager.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
16-
Version: 1.4.0
16+
Version: 1.4.1
1717
1818
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.2.0 K Hoang 15/10/2020 Restore cpp code besides Impl.h code to use if linker error. Fix bug.
2626
1.3.0 K Hoang 04/12/2020 Add LittleFS support to ESP32 using LITTLEFS Library
2727
1.4.0 K Hoang 18/12/2020 Fix staticIP not saved. Add functions. Add complex examples.
28+
1.4.1 K Hoang 21/12/2020 Fix bug and compiler warnings.
2829
*****************************************************************************************************************************/
2930

3031
#include "ESPAsync_WiFiManager.h"
@@ -570,9 +571,9 @@ void ESPAsync_WiFiManager::scan()
570571
wifiSSIDs[i].duplicate=false;
571572

572573
#if defined(ESP8266)
573-
bool res=WiFi.getNetworkInfo(i, wifiSSIDs[i].SSID, wifiSSIDs[i].encryptionType, wifiSSIDs[i].RSSI, wifiSSIDs[i].BSSID, wifiSSIDs[i].channel, wifiSSIDs[i].isHidden);
574+
WiFi.getNetworkInfo(i, wifiSSIDs[i].SSID, wifiSSIDs[i].encryptionType, wifiSSIDs[i].RSSI, wifiSSIDs[i].BSSID, wifiSSIDs[i].channel, wifiSSIDs[i].isHidden);
574575
#else
575-
bool res=WiFi.getNetworkInfo(i, wifiSSIDs[i].SSID, wifiSSIDs[i].encryptionType, wifiSSIDs[i].RSSI, wifiSSIDs[i].BSSID, wifiSSIDs[i].channel);
576+
WiFi.getNetworkInfo(i, wifiSSIDs[i].SSID, wifiSSIDs[i].encryptionType, wifiSSIDs[i].RSSI, wifiSSIDs[i].BSSID, wifiSSIDs[i].channel);
576577
#endif
577578
}
578579

@@ -981,7 +982,7 @@ int ESPAsync_WiFiManager::reconnectWifi(void)
981982

982983
int ESPAsync_WiFiManager::connectWifi(String ssid, String pass)
983984
{
984-
// Add option if didn't input/update SSID/PW => Use the previous saved Credentials. \
985+
// Add option if didn't input/update SSID/PW => Use the previous saved Credentials.
985986
// But update the Static/DHCP options if changed.
986987
if ( (ssid != "") || ( (ssid == "") && (WiFi_SSID() != "") ) )
987988
{
@@ -2191,7 +2192,7 @@ int ESPAsync_WiFiManager::getRSSIasQuality(int RSSI)
21912192
// Is this an IP?
21922193
boolean ESPAsync_WiFiManager::isIp(String str)
21932194
{
2194-
for (int i = 0; i < str.length(); i++)
2195+
for (unsigned int i = 0; i < str.length(); i++)
21952196
{
21962197
int c = str.charAt(i);
21972198

@@ -2267,4 +2268,3 @@ String ESPAsync_WiFiManager::getStoredWiFiPass()
22672268

22682269
//////////////////////////////////////////
22692270

2270-

src_cpp/ESPAsync_WiFiManager.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
16-
Version: 1.4.0
16+
Version: 1.4.1
1717
1818
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
@@ -25,11 +25,12 @@
2525
1.2.0 K Hoang 15/10/2020 Restore cpp code besides Impl.h code to use if linker error. Fix bug.
2626
1.3.0 K Hoang 04/12/2020 Add LittleFS support to ESP32 using LITTLEFS Library
2727
1.4.0 K Hoang 18/12/2020 Fix staticIP not saved. Add functions. Add complex examples.
28+
1.4.1 K Hoang 21/12/2020 Fix bug and compiler warnings.
2829
*****************************************************************************************************************************/
2930

3031
#pragma once
3132

32-
#define ESP_ASYNC_WIFIMANAGER_VERSION "ESPAsync_WiFiManager v1.4.0"
33+
#define ESP_ASYNC_WIFIMANAGER_VERSION "ESPAsync_WiFiManager v1.4.1"
3334

3435
#include "ESPAsync_WiFiManager_Debug.h"
3536

@@ -106,12 +107,12 @@ typedef struct
106107

107108
#ifndef TIME_BETWEEN_MODAL_SCANS
108109
// Default to 30s
109-
#define TIME_BETWEEN_MODAL_SCANS 30000
110+
#define TIME_BETWEEN_MODAL_SCANS 30000UL
110111
#endif
111112

112113
#ifndef TIME_BETWEEN_MODELESS_SCANS
113114
// Default to 60s
114-
#define TIME_BETWEEN_MODELESS_SCANS 60000
115+
#define TIME_BETWEEN_MODELESS_SCANS 60000UL
115116
#endif
116117

117118
//KH
@@ -558,7 +559,8 @@ class ESPAsync_WiFiManager
558559

559560
WiFi_AP_IPConfig _WiFi_AP_IPconfig;
560561

561-
WiFi_STA_IPConfig _WiFi_STA_IPconfig = { IPAddress(0, 0, 0, 0) };
562+
WiFi_STA_IPConfig _WiFi_STA_IPconfig = { IPAddress(0, 0, 0, 0), IPAddress(192, 168, 2, 1), IPAddress(255, 255, 255, 0),
563+
IPAddress(192, 168, 2, 1), IPAddress(8, 8, 8, 8) };
562564

563565
int _paramsCount = 0;
564566
int _minimumQuality = -1;

0 commit comments

Comments
 (0)