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

Commit

Permalink
v1.12.1 using random channel for softAP w/o PWD
Browse files Browse the repository at this point in the history
### 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
  • Loading branch information
khoih-prog authored Oct 25, 2022
1 parent dd7abc1 commit 2a1ac95
Show file tree
Hide file tree
Showing 12 changed files with 879 additions and 760 deletions.
23 changes: 21 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Please ensure to specify the following, or your post will be ignored and deleted
Arduino IDE version: 1.8.19
ESP8266 Core Version 3.0.2
OS: Ubuntu 20.04 LTS
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
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
Context:
I encountered a crash when using this library
Expand All @@ -40,14 +40,33 @@ Steps to reproduce:
3. ...
4. ...
```
---

### Sending Feature Requests

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

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.
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.

---

### Sending Pull Requests

Pull Requests with changes and fixes are also welcome!

Please use the `astyle` to reformat the updated library code as follows (demo for Ubuntu Linux)

1. Change directory to the library GitHub

```
xy@xy-Inspiron-3593:~$ cd Arduino/xy/ESP_WifiManager_GitHub/
xy@xy-Inspiron-3593:~/Arduino/xy/ESP_WifiManager_GitHub$
```

2. Issue astyle command

```
xy@xy-Inspiron-3593:~/Arduino/xy/ESP_WifiManager_GitHub$ bash utils/restyle.sh
```


51 changes: 20 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,6 @@ then connect WebBrowser to configurable ConfigPortal IP address, default is `192
#include <WiFi.h>
#include <WiFiClient.h>

// From v1.1.0
#include <WiFiMulti.h>
WiFiMulti wifiMulti;

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

// From v1.1.0
#include <ESP8266WiFiMulti.h>
ESP8266WiFiMulti wifiMulti;

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

// From v1.1.0
// You only need to format the filesystem once
//#define FORMAT_FILESYSTEM true
#define FORMAT_FILESYSTEM false

#define MIN_AP_PASSWORD_SIZE 8

#define SSID_MAX_LEN 32
//From v1.0.10, WPA2 passwords can be up to 63 characters long.
//WPA2 passwords can be up to 63 characters long.
#define PASS_MAX_LEN 64

typedef struct
Expand Down Expand Up @@ -601,7 +598,6 @@ String Router_Pass;
#include <WiFi.h>
#include <WiFiClient.h>

// From v1.1.0
#include <WiFiMulti.h>
WiFiMulti wifiMulti;

Expand Down Expand Up @@ -657,7 +653,6 @@ String Router_Pass;
#include <DNSServer.h>
#include <ESP8266WebServer.h>

// From v1.1.0
#include <ESP8266WiFiMulti.h>
ESP8266WiFiMulti wifiMulti;

Expand All @@ -681,15 +676,14 @@ String Router_Pass;
#define LED_OFF HIGH
#endif

// From v1.1.0
// You only need to format the filesystem once
//#define FORMAT_FILESYSTEM true
#define FORMAT_FILESYSTEM false

#define MIN_AP_PASSWORD_SIZE 8

#define SSID_MAX_LEN 32
//From v1.0.10, WPA2 passwords can be up to 63 characters long.
// WPA2 passwords can be up to 63 characters long.
#define PASS_MAX_LEN 64

typedef struct
Expand Down Expand Up @@ -778,7 +772,6 @@ bool initialConfig = false;
IPAddress dns1IP = gatewayIP;
IPAddress dns2IP = IPAddress(8, 8, 8, 8);

// New in v1.4.0
IPAddress APStaticIP = IPAddress(192, 168, 100, 1);
IPAddress APStaticGW = IPAddress(192, 168, 100, 1);
IPAddress APStaticSN = IPAddress(255, 255, 255, 0);
Expand All @@ -794,7 +787,6 @@ String Router_SSID;
String Router_Pass;

///////////////////////////////////////////
// New in v1.4.0
/******************************************
* // Defined in ESP_WiFiManager.h
typedef struct
Expand Down Expand Up @@ -1009,7 +1001,7 @@ ESP_wifiManager.setConfigPortalChannel(3);


```cpp
// Set static IP, Gateway, Subnetmask, DNS1 and DNS2. New in v1.0.5
// Set static IP, Gateway, Subnetmask, DNS1 and DNS2
//ESP_wifiManager.setSTAStaticIPConfig(stationIP, gatewayIP, netMask, dns1IP, dns2IP);
ESP_wifiManager.setSTAStaticIPConfig(WM_STA_IPconfig);
```
Expand Down Expand Up @@ -1047,7 +1039,6 @@ ESP_wifiManager.setSTAStaticIPConfig(WM_STA_IPconfig);

...

// New from v1.1.1
#if USING_CORS_FEATURE
ESP_wifiManager.setCORSHeader("Your Access-Control-Allow-Origin");
#endif
Expand Down Expand Up @@ -1974,15 +1965,14 @@ void loop()

#if !USE_DHCP_IP
#if USE_CONFIGURABLE_DNS
// Set static IP, Gateway, Subnetmask, DNS1 and DNS2. New in v1.0.5
// Set static IP, Gateway, Subnetmask, DNS1 and DNS2
ESP_wifiManager.setSTAStaticIPConfig(stationIP, gatewayIP, netMask, dns1IP, dns2IP);
#else
// Set static IP, Gateway, Subnetmask, Use auto DNS1 and DNS2.
ESP_wifiManager.setSTAStaticIPConfig(stationIP, gatewayIP, netMask);
#endif
#endif

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

// From v1.1.0, Don't permit NULL password
// Don't permit NULL password
if ( (Router_SSID != "") && (Router_Pass != "") )
{
LOGERROR3(F("* Add SSID = "), Router_SSID, F(", PW = "), Router_Pass);
Expand Down Expand Up @@ -2062,7 +2052,6 @@ void loop()
}
}

// New in v1.4.0
ESP_wifiManager.getSTAStaticIPConfig(WM_STA_IPconfig);
//////

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

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

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

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

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

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

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

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

```
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32S2_DEV
ESP_WiFiManager v1.12.0
ESP_WiFiManager v1.12.1
ESP_DoubleResetDetector v1.3.2
[WM] RFC925 Hostname = ConfigOnDoubleReset
[WM] setAPStaticIPConfig
Expand Down Expand Up @@ -2740,7 +2729,7 @@ This is terminal debug output when running [ConfigOnDoubleReset](examples/Config

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

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

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

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

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

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

```
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32C3_DEV
ESP_WiFiManager v1.12.0
ESP_WiFiManager v1.12.1
ESP_DoubleResetDetector v1.3.2
[WM] RFC925 Hostname = ConfigOnDoubleReset
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
## Table of Contents

* [Changelog](#changelog)
* [Releases v1.12.1](#releases-v1121)
* [Releases v1.12.0](#releases-v1120)
* [Releases v1.11.0](#releases-v1110)
* [Releases v1.10.2](#releases-v1102)
Expand Down Expand Up @@ -56,6 +57,11 @@

## Changelog

### Releases v1.12.1

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)
2. Add astyle using `allman` style. Restyle the library

### Releases v1.12.0

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)
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ESP_WifiManager",
"version": "1.12.0",
"version": "1.12.1",
"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",
"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",
"authors":
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ESP_WiFiManager
version=1.12.0
version=1.12.1
author=Khoi Hoang
maintainer=Khoi Hoang <khoih.prog@gmail.com>
license=MIT
Expand Down
Loading

0 comments on commit 2a1ac95

Please sign in to comment.