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

Commit 2a1ac95

Browse files
authored
v1.12.1 using random channel for softAP w/o PWD
### Releases v1.12.1 1. Using random channel for softAP without password. Check [fix: using random CH for non-password use too #118](khoih-prog/ESPAsync_WiFiManager#118) 2. Add astyle using `allman` style. Restyle the library
1 parent dd7abc1 commit 2a1ac95

File tree

12 files changed

+879
-760
lines changed

12 files changed

+879
-760
lines changed

CONTRIBUTING.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Please ensure to specify the following, or your post will be ignored and deleted
2929
Arduino IDE version: 1.8.19
3030
ESP8266 Core Version 3.0.2
3131
OS: Ubuntu 20.04 LTS
32-
Linux xy-Inspiron-3593 5.15.0-48-generic #54~20.04.1-Ubuntu SMP Thu Sep 1 16:17:26 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
32+
Linux xy-Inspiron-3593 5.15.0-52-generic #58~20.04.1-Ubuntu SMP Thu Oct 13 13:09:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
3333
3434
Context:
3535
I encountered a crash when using this library
@@ -40,14 +40,33 @@ Steps to reproduce:
4040
3. ...
4141
4. ...
4242
```
43+
---
4344

4445
### Sending Feature Requests
4546

4647
Feel free to post feature requests. It's helpful if you can explain exactly why the feature would be useful.
4748

48-
There are usually some outstanding feature requests in the [existing issues list](https://github.com/khoih-prog/ESP_WiFiManager/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement), feel free to add comments to them.
49+
There are usually some outstanding feature requests in the [existing issues list](https://github.com/khoih-prog/ESPAsync_WiFiManager/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement), feel free to add comments to them.
50+
51+
---
4952

5053
### Sending Pull Requests
5154

5255
Pull Requests with changes and fixes are also welcome!
5356

57+
Please use the `astyle` to reformat the updated library code as follows (demo for Ubuntu Linux)
58+
59+
1. Change directory to the library GitHub
60+
61+
```
62+
xy@xy-Inspiron-3593:~$ cd Arduino/xy/ESP_WifiManager_GitHub/
63+
xy@xy-Inspiron-3593:~/Arduino/xy/ESP_WifiManager_GitHub$
64+
```
65+
66+
2. Issue astyle command
67+
68+
```
69+
xy@xy-Inspiron-3593:~/Arduino/xy/ESP_WifiManager_GitHub$ bash utils/restyle.sh
70+
```
71+
72+

README.md

Lines changed: 20 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,6 @@ then connect WebBrowser to configurable ConfigPortal IP address, default is `192
458458
#include <WiFi.h>
459459
#include <WiFiClient.h>
460460

461-
// From v1.1.0
462461
#include <WiFiMulti.h>
463462
WiFiMulti wifiMulti;
464463

@@ -520,7 +519,6 @@ then connect WebBrowser to configurable ConfigPortal IP address, default is `192
520519
#include <DNSServer.h>
521520
#include <ESP8266WebServer.h>
522521

523-
// From v1.1.0
524522
#include <ESP8266WiFiMulti.h>
525523
ESP8266WiFiMulti wifiMulti;
526524

@@ -544,15 +542,14 @@ then connect WebBrowser to configurable ConfigPortal IP address, default is `192
544542
#define LED_OFF HIGH
545543
#endif
546544

547-
// From v1.1.0
548545
// You only need to format the filesystem once
549546
//#define FORMAT_FILESYSTEM true
550547
#define FORMAT_FILESYSTEM false
551548

552549
#define MIN_AP_PASSWORD_SIZE 8
553550

554551
#define SSID_MAX_LEN 32
555-
//From v1.0.10, WPA2 passwords can be up to 63 characters long.
552+
//WPA2 passwords can be up to 63 characters long.
556553
#define PASS_MAX_LEN 64
557554

558555
typedef struct
@@ -601,7 +598,6 @@ String Router_Pass;
601598
#include <WiFi.h>
602599
#include <WiFiClient.h>
603600

604-
// From v1.1.0
605601
#include <WiFiMulti.h>
606602
WiFiMulti wifiMulti;
607603

@@ -657,7 +653,6 @@ String Router_Pass;
657653
#include <DNSServer.h>
658654
#include <ESP8266WebServer.h>
659655

660-
// From v1.1.0
661656
#include <ESP8266WiFiMulti.h>
662657
ESP8266WiFiMulti wifiMulti;
663658

@@ -681,15 +676,14 @@ String Router_Pass;
681676
#define LED_OFF HIGH
682677
#endif
683678

684-
// From v1.1.0
685679
// You only need to format the filesystem once
686680
//#define FORMAT_FILESYSTEM true
687681
#define FORMAT_FILESYSTEM false
688682

689683
#define MIN_AP_PASSWORD_SIZE 8
690684

691685
#define SSID_MAX_LEN 32
692-
//From v1.0.10, WPA2 passwords can be up to 63 characters long.
686+
// WPA2 passwords can be up to 63 characters long.
693687
#define PASS_MAX_LEN 64
694688

695689
typedef struct
@@ -778,7 +772,6 @@ bool initialConfig = false;
778772
IPAddress dns1IP = gatewayIP;
779773
IPAddress dns2IP = IPAddress(8, 8, 8, 8);
780774

781-
// New in v1.4.0
782775
IPAddress APStaticIP = IPAddress(192, 168, 100, 1);
783776
IPAddress APStaticGW = IPAddress(192, 168, 100, 1);
784777
IPAddress APStaticSN = IPAddress(255, 255, 255, 0);
@@ -794,7 +787,6 @@ String Router_SSID;
794787
String Router_Pass;
795788

796789
///////////////////////////////////////////
797-
// New in v1.4.0
798790
/******************************************
799791
* // Defined in ESP_WiFiManager.h
800792
typedef struct
@@ -1009,7 +1001,7 @@ ESP_wifiManager.setConfigPortalChannel(3);
10091001

10101002

10111003
```cpp
1012-
// Set static IP, Gateway, Subnetmask, DNS1 and DNS2. New in v1.0.5
1004+
// Set static IP, Gateway, Subnetmask, DNS1 and DNS2
10131005
//ESP_wifiManager.setSTAStaticIPConfig(stationIP, gatewayIP, netMask, dns1IP, dns2IP);
10141006
ESP_wifiManager.setSTAStaticIPConfig(WM_STA_IPconfig);
10151007
```
@@ -1047,7 +1039,6 @@ ESP_wifiManager.setSTAStaticIPConfig(WM_STA_IPconfig);
10471039

10481040
...
10491041

1050-
// New from v1.1.1
10511042
#if USING_CORS_FEATURE
10521043
ESP_wifiManager.setCORSHeader("Your Access-Control-Allow-Origin");
10531044
#endif
@@ -1974,15 +1965,14 @@ void loop()
19741965

19751966
#if !USE_DHCP_IP
19761967
#if USE_CONFIGURABLE_DNS
1977-
// Set static IP, Gateway, Subnetmask, DNS1 and DNS2. New in v1.0.5
1968+
// Set static IP, Gateway, Subnetmask, DNS1 and DNS2
19781969
ESP_wifiManager.setSTAStaticIPConfig(stationIP, gatewayIP, netMask, dns1IP, dns2IP);
19791970
#else
19801971
// Set static IP, Gateway, Subnetmask, Use auto DNS1 and DNS2.
19811972
ESP_wifiManager.setSTAStaticIPConfig(stationIP, gatewayIP, netMask);
19821973
#endif
19831974
#endif
19841975

1985-
// New from v1.1.1
19861976
#if USING_CORS_FEATURE
19871977
ESP_wifiManager.setCORSHeader("Your Access-Control-Allow-Origin");
19881978
#endif
@@ -1997,7 +1987,7 @@ void loop()
19971987
//Remove this line if you do not want to see WiFi password printed
19981988
Serial.println("ESP Self-Stored: SSID = " + Router_SSID + ", Pass = " + Router_Pass);
19991989

2000-
// From v1.1.0, Don't permit NULL password
1990+
// Don't permit NULL password
20011991
if ( (Router_SSID != "") && (Router_Pass != "") )
20021992
{
20031993
LOGERROR3(F("* Add SSID = "), Router_SSID, F(", PW = "), Router_Pass);
@@ -2062,7 +2052,6 @@ void loop()
20622052
}
20632053
}
20642054

2065-
// New in v1.4.0
20662055
ESP_wifiManager.getSTAStaticIPConfig(WM_STA_IPconfig);
20672056
//////
20682057

@@ -2208,7 +2197,7 @@ This is terminal debug output when running [ConfigOnSwitchFS_MQTT_Ptr](examples/
22082197

22092198
```
22102199
Starting ConfigOnSwichFS_MQTT_Ptr using LittleFS on ESP8266_NODEMCU_ESP12E
2211-
ESP_WiFiManager v1.12.0
2200+
ESP_WiFiManager v1.12.1
22122201
Configuration file not found
22132202
Failed to read configuration file, using default values
22142203
[WM] RFC925 Hostname = ConfigOnSwichFS-MQTT
@@ -2321,7 +2310,7 @@ This is terminal debug output when running [ESP32_FSWebServer_DRD](examples/ESP3
23212310

23222311
```
23232312
Starting ESP32_FSWebServer_DRD with DoubleResetDetect using SPIFFS on ESP32_DEV
2324-
ESP_WiFiManager v1.12.0
2313+
ESP_WiFiManager v1.12.1
23252314
ESP_DoubleResetDetector v1.3.2
23262315
FS File: /ConfigSW.json, size: 150B
23272316
FS File: /CanadaFlag_1.png, size: 40.25KB
@@ -2386,7 +2375,7 @@ This is terminal debug output when running [ESP32_FSWebServer_DRD](examples/ESP3
23862375

23872376
```
23882377
Starting ESP32_FSWebServer_DRD with DoubleResetDetect using LittleFS on ESP32_DEV
2389-
ESP_WiFiManager v1.12.0
2378+
ESP_WiFiManager v1.12.1
23902379
ESP_DoubleResetDetector v1.3.2
23912380
FS File: /CanadaFlag_1.png, size: 40.25KB
23922381
FS File: /CanadaFlag_2.png, size: 8.12KB
@@ -2445,7 +2434,7 @@ This is terminal debug output when running [ConfigOnDRD_FS_MQTT_Ptr_Complex](exa
24452434

24462435
```
24472436
Starting ConfigOnDRD_FS_MQTT_Ptr_Complex using LittleFS on ESP32_DEV
2448-
ESP_WiFiManager v1.12.0
2437+
ESP_WiFiManager v1.12.1
24492438
ESP_DoubleResetDetector v1.3.2
24502439
{"AIO_KEY_Label":"aio_key","AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name"}
24512440
Config File successfully parsed
@@ -2488,7 +2477,7 @@ WWWW WTWWWW WWTWWW WWWTWW WWWWTW WWWWW
24882477

24892478
```
24902479
Starting ConfigOnDRD_FS_MQTT_Ptr_Complex using LittleFS on ESP32_DEV
2491-
ESP_WiFiManager v1.12.0
2480+
ESP_WiFiManager v1.12.1
24922481
ESP_DoubleResetDetector v1.3.2
24932482
{"AIO_KEY_Label":"aio_key","AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name"}
24942483
Config File successfully parsed
@@ -2573,7 +2562,7 @@ This is terminal debug output when running [ConfigOnDRD_FS_MQTT_Ptr_Complex](exa
25732562

25742563
```
25752564
Starting ConfigOnDRD_FS_MQTT_Ptr_Medium using LittleFS on ESP8266_NODEMCU_ESP12E
2576-
ESP_WiFiManager v1.12.0
2565+
ESP_WiFiManager v1.12.1
25772566
ESP_DoubleResetDetector v1.3.2
25782567
{"AIO_KEY_Label":"aio_key","AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name"}
25792568
Config File successfully parsed
@@ -2613,7 +2602,7 @@ TWWWW WTWWWW WWTWWW WWWTWW WWWWTW WWWWW
26132602

26142603
```
26152604
Starting ConfigOnDRD_FS_MQTT_Ptr_Medium using LittleFS on ESP8266_NODEMCU_ESP12E
2616-
ESP_WiFiManager v1.12.0
2605+
ESP_WiFiManager v1.12.1
26172606
ESP_DoubleResetDetector v1.3.2
26182607
{"AIO_KEY_Label":"aio_key","AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name"}
26192608
Config File successfully parsed
@@ -2690,7 +2679,7 @@ This is terminal debug output when running [ConfigOnDoubleReset](examples/Config
26902679

26912680
```
26922681
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32S2_DEV
2693-
ESP_WiFiManager v1.12.0
2682+
ESP_WiFiManager v1.12.1
26942683
ESP_DoubleResetDetector v1.3.2
26952684
[WM] RFC925 Hostname = ConfigOnDoubleReset
26962685
[WM] setAPStaticIPConfig
@@ -2740,7 +2729,7 @@ This is terminal debug output when running [ConfigOnDoubleReset](examples/Config
27402729

27412730
```
27422731
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32_DEV
2743-
ESP_WiFiManager v1.12.0
2732+
ESP_WiFiManager v1.12.1
27442733
ESP_DoubleResetDetector v1.3.2
27452734
[WM] RFC925 Hostname = ConfigOnDoubleReset
27462735
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
@@ -2850,7 +2839,7 @@ Local Date/Time: Fri Oct 7 15:56:03 2022
28502839

28512840
```
28522841
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32_DEV
2853-
ESP_WiFiManager v1.12.0
2842+
ESP_WiFiManager v1.12.1
28542843
ESP_DoubleResetDetector v1.3.2
28552844
[WM] RFC925 Hostname = ConfigOnDoubleReset
28562845
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
@@ -2903,7 +2892,7 @@ This is terminal debug output when running [ConfigOnDoubleReset](examples/Config
29032892

29042893
```
29052894
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32S2_DEV
2906-
ESP_WiFiManager v1.12.0
2895+
ESP_WiFiManager v1.12.1
29072896
ESP_DoubleResetDetector v1.3.2
29082897
[WM] RFC925 Hostname = ConfigOnDoubleReset
29092898
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
@@ -3049,7 +3038,7 @@ Local Date/Time: Thu May 6 21:29:18 2021
30493038

30503039
```
30513040
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32S2_DEV
3052-
ESP_WiFiManager v1.12.0
3041+
ESP_WiFiManager v1.12.1
30533042
ESP_DoubleResetDetector v1.3.2
30543043
[WM] RFC925 Hostname = ConfigOnDoubleReset
30553044
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
@@ -3101,7 +3090,7 @@ This is terminal debug output when running [ESP32_FSWebServer_DRD](examples/ESP3
31013090

31023091
```
31033092
Starting ESP32_FSWebServer_DRD with DoubleResetDetect using SPIFFS on ESP32C3_DEV
3104-
ESP_WiFiManager v1.12.0
3093+
ESP_WiFiManager v1.12.1
31053094
ESP_DoubleResetDetector v1.3.2
31063095
FS File: wm_cp.dat, size: 4B
31073096
FS File: wm_cp.bak, size: 4B
@@ -3175,7 +3164,7 @@ This is terminal debug output when running [ConfigOnDoubleReset](examples/Config
31753164

31763165
```
31773166
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32S3_DEV
3178-
ESP_WiFiManager v1.12.0
3167+
ESP_WiFiManager v1.12.1
31793168
ESP_DoubleResetDetector v1.3.2
31803169
[WM] RFC925 Hostname = ConfigOnDoubleReset
31813170
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
@@ -3228,7 +3217,7 @@ This is terminal debug output when running [ConfigOnDoubleReset](examples/Config
32283217

32293218
```
32303219
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32C3_DEV
3231-
ESP_WiFiManager v1.12.0
3220+
ESP_WiFiManager v1.12.1
32323221
ESP_DoubleResetDetector v1.3.2
32333222
[WM] RFC925 Hostname = ConfigOnDoubleReset
32343223
[WM] Set CORS Header to : Your Access-Control-Allow-Origin

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
## Table of Contents
1414

1515
* [Changelog](#changelog)
16+
* [Releases v1.12.1](#releases-v1121)
1617
* [Releases v1.12.0](#releases-v1120)
1718
* [Releases v1.11.0](#releases-v1110)
1819
* [Releases v1.10.2](#releases-v1102)
@@ -56,6 +57,11 @@
5657

5758
## Changelog
5859

60+
### Releases v1.12.1
61+
62+
1. Using random channel for softAP without password. Check [fix: using random CH for non-password use too #118](https://github.com/khoih-prog/ESPAsync_WiFiManager/pull/118)
63+
2. Add astyle using `allman` style. Restyle the library
64+
5965
### Releases v1.12.0
6066

6167
1. Optionally display Credentials (SSIDs, PWDs) in Config Portal. Check [Populate portal wifi with saved credentials #91](https://github.com/khoih-prog/ESP_WiFiManager/discussions/91)

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ESP_WifiManager",
3-
"version": "1.12.0",
3+
"version": "1.12.1",
44
"keywords": "wifi, wi-fi, MultiWiFi, multi-wifi, WiFiManager, esp8266, esp32, esp32-s2, esp32-s3, esp32-c3, Communication, iot, credentials, persistent, config-portal, DoubleReset, MultiReset, DoubleResetDetector, littlefs, spiffs, eeprom, dns-server",
55
"description": "Library to configure MultiWiFi/Credentials at runtime for ESP32 (including ESP32-S2, ESP32-S3 and ESP32-C3) and ESP8266 boards. With enhanced GUI and fallback web ConfigPortal. This Library is used for configuring ESP32 (including ESP32-S2, ESP32-S3 and ESP32-C3) and ESP8266 MultiWiFi Credentials at runtime. You can also specify static DNS servers, personalized HostName, DHCP HostName, static AP and STA IP, fixed or random AP channel. Now with MultiWiFi auto(Re)connect, configurable CORS Header and auto-Timezone features. Auto detect ESP32 core and use either built-in LittleFS or external LITTLEFS library. Now using correct ESP32 chipIP and optional display Credentials on Config Portal",
66
"authors":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ESP_WiFiManager
2-
version=1.12.0
2+
version=1.12.1
33
author=Khoi Hoang
44
maintainer=Khoi Hoang <khoih.prog@gmail.com>
55
license=MIT

0 commit comments

Comments
 (0)