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

Commit

Permalink
v1.8.1
Browse files Browse the repository at this point in the history
### Releases v1.8.1

1. Fix bug.
2. Don't display invalid time when not synch yet.
  • Loading branch information
khoih-prog authored May 7, 2021
1 parent f7e9e0e commit d44c404
Show file tree
Hide file tree
Showing 34 changed files with 402 additions and 137 deletions.
51 changes: 34 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* [Why Async is better](#why-async-is-better)
* [Currently supported Boards](#currently-supported-boards)
* [Changelog](#changelog)
* [Releases v1.8.1](#releases-v181)
* [Major Releases v1.8.0](#major-releases-v180)
* [Releases v1.7.1](#releases-v171)
* [Releases v1.7.0](#releases-v170)
Expand Down Expand Up @@ -224,6 +225,11 @@ This [**ESPAsync_WiFiManager** library](https://github.com/khoih-prog/ESPAsync_W

## Changelog

### Releases v1.8.1

1. Fix bug.
2. Don't display invalid time when not synch yet.

### Major Releases v1.8.0

1. Add auto-Timezone feature with variable `_timezoneName` (e.g. `America/New_York`) and function to retrieve TZ (e.g. `EST5EDT,M3.2.0,M11.1.0`) to use directly to configure ESP32/ESP8266 timezone. Check [How to retrieve timezone? #51](https://github.com/khoih-prog/ESPAsync_WiFiManager/issues/51)
Expand Down Expand Up @@ -2364,7 +2370,7 @@ ESPAsync_wifiManager.setRemoveDuplicateAPs(false);
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
#endif

#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.8.0"
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.8.1"

// Use from 0 to 4. Higher number, more debugging messages and memory usage.
#define _ESPASYNC_WIFIMGR_LOGLEVEL_ 3
Expand Down Expand Up @@ -2862,7 +2868,7 @@ void printLocalTime()

now = time(nullptr);

if ( now > 1000000 )
if ( now > 1451602800 )
{
Serial.print("Local Date/Time: ");
Serial.print(ctime(&now));
Expand All @@ -2871,8 +2877,14 @@ void printLocalTime()
struct tm timeinfo;

getLocalTime( &timeinfo );
Serial.print("Local Date/Time: ");
Serial.print( asctime( &timeinfo ) );

// Valid only if year > 2000.
// You can get from timeinfo : tm_year, tm_mon, tm_mday, tm_hour, tm_min, tm_sec
if (timeinfo.tm_year > 100 )
{
Serial.print("Local Date/Time: ");
Serial.print( asctime( &timeinfo ) );
}
#endif
}

Expand Down Expand Up @@ -3710,7 +3722,7 @@ This is terminal debug output when running [Async_ConfigOnDRD_FS_MQTT_Ptr_Medium
```
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Medium using LittleFS on ESP32_DEV
ESPAsync_WiFiManager v1.8.0
ESPAsync_WiFiManager v1.8.1
ESP_DoubleResetDetector v1.1.1
Config File not found
Can't read Config File, using default values
Expand All @@ -3729,7 +3741,7 @@ Opening Configuration Portal. No timeout : DRD or No stored Credentials..
```
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Medium using LittleFS on ESP32_DEV
ESPAsync_WiFiManager v1.8.0
ESPAsync_WiFiManager v1.8.1
ESP_DoubleResetDetector v1.1.1
Config File not found
Can't read Config File, using default values
Expand Down Expand Up @@ -3817,7 +3829,7 @@ This is terminal debug output when running [Async_ConfigOnDRD_FS_MQTT_Ptr_Comple
```
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Complex using LittleFS on ESP8266_NODEMCU
ESPAsync_WiFiManager v1.8.0
ESPAsync_WiFiManager v1.8.1
ESP_DoubleResetDetector Version v1.1.1
{"AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name","AIO_KEY_Label":"aio_key"}
Config File successfully parsed
Expand Down Expand Up @@ -3857,7 +3869,7 @@ TWWWW WTWWW
```
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Complex using LittleFS on ESP8266_NODEMCU
ESPAsync_WiFiManager v1.8.0
ESPAsync_WiFiManager v1.8.1
ESP_DoubleResetDetector Version v1.1.1
{"AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name","AIO_KEY_Label":"aio_key"}
Config File successfully parsed
Expand Down Expand Up @@ -3947,7 +3959,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/
```cpp
Starting Async_ConfigOnDoubleReset with DoubleResetDetect using SPIFFS on ESP32_DEV
ESPAsync_WiFiManager v1.8.0
ESPAsync_WiFiManager v1.8.1
ESP_DoubleResetDetector v1.1.1
[WM] RFC925 Hostname = ConfigOnDoubleReset
[WM] setSTAStaticIPConfig for USE_CONFIGURABLE_DNS
Expand Down Expand Up @@ -4006,7 +4018,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/

```cpp
Starting Async_ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP8266_NODEMCU
ESPAsync_WiFiManager v1.8.0
ESPAsync_WiFiManager v1.8.1
ESP_DoubleResetDetector v1.1.1
[WM] RFC925 Hostname = ConfigOnDoubleReset
[WM] setSTAStaticIPConfig for USE_CONFIGURABLE_DNS
Expand Down Expand Up @@ -4066,7 +4078,7 @@ This is terminal debug output when running [Async_ESP_FSWebServer_DRD](examples/
```cpp
Starting Async_ESP_FSWebServer_DRD using LittleFS on ESP8266_NODEMCU
ESPAsync_WiFiManager v1.8.0
ESPAsync_WiFiManager v1.8.1
ESP_DoubleResetDetector v1.1.1
Opening / directory
FS File: CanadaFlag_1.png, size: 40.25KB
Expand Down Expand Up @@ -4144,7 +4156,7 @@ This is terminal debug output when running [Async_ESP32_FSWebServer_DRD](example

```
Starting Async_ESP32_FSWebServer_DRD using LittleFS on ESP32_DEV
ESPAsync_WiFiManager v1.8.0
ESPAsync_WiFiManager v1.8.1
ESP_DoubleResetDetector v1.1.1
FS File: /CanadaFlag_1.png, size: 40.25KB
FS File: /CanadaFlag_2.png, size: 8.12KB
Expand Down Expand Up @@ -4255,7 +4267,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/

```
Starting Async_ConfigOnDoubleReset using LittleFS on ESP32S2_DEV
ESPAsync_WiFiManager v1.8.0
ESPAsync_WiFiManager v1.8.1
ESP_DoubleResetDetector v1.1.1
ESP Self-Stored: SSID = HueNet1, Pass = 12345678
[WM] * Add SSID = HueNet1 , PW = 12345678
Expand Down Expand Up @@ -4292,7 +4304,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset_TZ](exampl

```
Starting Async_ConfigOnDoubleReset_TZ using LittleFS on ESP32_DEV
ESPAsync_WiFiManager v1.8.0
ESPAsync_WiFiManager v1.8.1
ESP_DoubleResetDetector v1.1.1
ESP Self-Stored: SSID = HueNet1, Pass = password
[WM] * Add SSID = HueNet1 , PW = password
Expand Down Expand Up @@ -4336,7 +4348,7 @@ Local Date/Time: Sat May 1 00:17:30 2021

```
Starting Async_ConfigOnDoubleReset_TZ using LittleFS on ESP32_DEV
ESPAsync_WiFiManager v1.8.0
ESPAsync_WiFiManager v1.8.1
ESP_DoubleResetDetector v1.1.1
ESP Self-Stored: SSID = HueNet1, Pass = password
[WM] * Add SSID = HueNet1 , PW = password
Expand Down Expand Up @@ -4383,7 +4395,7 @@ This is terminal debug output when running [Async_ESP_FSWebServer_DRD](examples/

```
Starting Async_ESP_FSWebServer_DRD using LittleFS on ESP8266_NODEMCU
ESPAsync_WiFiManager v1.8.0
ESPAsync_WiFiManager v1.8.1
ESP_DoubleResetDetector v1.1.1
Opening / directory
FS File: drd.dat, size: 4B
Expand Down Expand Up @@ -4456,7 +4468,7 @@ Local Date/Time: Sat May 1 03:12:54 2021

```
Starting Async_ESP_FSWebServer_DRD using LittleFS on ESP8266_NODEMCU
ESPAsync_WiFiManager v1.8.0
ESPAsync_WiFiManager v1.8.1
ESP_DoubleResetDetector v1.1.1
Opening / directory
FS File: drd.dat, size: 4B
Expand Down Expand Up @@ -4546,6 +4558,11 @@ Submit issues to: [ESPAsync_WiFiManager issues](https://github.com/khoih-prog/ES

## Releases

### Releases v1.8.1

1. Fix bug.
2. Don't display invalid time when not synch yet.

### Major Releases v1.8.0

1. Add auto-Timezone feature with variable `_timezoneName` (e.g. `America/New_York`) and function to retrieve TZ (e.g. `EST5EDT,M3.2.0,M11.1.0`) to use directly to configure ESP32/ESP8266 timezone. Check [How to retrieve timezone? #51](https://github.com/khoih-prog/ESPAsync_WiFiManager/issues/51)
Expand Down
17 changes: 12 additions & 5 deletions examples/Async_AutoConnect/Async_AutoConnect.ino
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
Licensed under MIT license
Version: 1.8.0
Version: 1.8.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -36,12 +36,13 @@
1.7.0 K Hoang 20/04/2021 Add support to new ESP32-C3 using SPIFFS or EEPROM
1.7.1 K Hoang 25/04/2021 Fix MultiWiFi bug. Fix captive-portal bug if CP AP address is not default 192.168.4.1
1.8.0 K Hoang 30/04/2021 Set _timezoneName. Add support to new ESP32-S2 (METRO_ESP32S2, FUNHOUSE_ESP32S2, etc.)
1.8.1 K Hoang 06/05/2021 Fix bug. Don't display invalid time when not synch yet.
*****************************************************************************************************************************/
#if !( defined(ESP8266) || defined(ESP32) )
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
#endif

#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.8.0"
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.8.1"

// Use from 0 to 4. Higher number, more debugging messages and memory usage.
#define _ESPASYNC_WIFIMGR_LOGLEVEL_ 3
Expand Down Expand Up @@ -418,7 +419,7 @@ void printLocalTime()

now = time(nullptr);

if ( now > 1000000 )
if ( now > 1451602800 )
{
Serial.print("Local Date/Time: ");
Serial.print(ctime(&now));
Expand All @@ -427,8 +428,14 @@ void printLocalTime()
struct tm timeinfo;

getLocalTime( &timeinfo );
Serial.print("Local Date/Time: ");
Serial.print( asctime( &timeinfo ) );

// Valid only if year > 2000.
// You can get from timeinfo : tm_year, tm_mon, tm_mday, tm_hour, tm_min, tm_sec
if (timeinfo.tm_year > 100 )
{
Serial.print("Local Date/Time: ");
Serial.print( asctime( &timeinfo ) );
}
#endif
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
Licensed under MIT license
Version: 1.8.0
Version: 1.8.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -36,13 +36,14 @@
1.7.0 K Hoang 20/04/2021 Add support to new ESP32-C3 using SPIFFS or EEPROM
1.7.1 K Hoang 25/04/2021 Fix MultiWiFi bug. Fix captive-portal bug if CP AP address is not default 192.168.4.1
1.8.0 K Hoang 30/04/2021 Set _timezoneName. Add support to new ESP32-S2 (METRO_ESP32S2, FUNHOUSE_ESP32S2, etc.)
1.8.1 K Hoang 06/05/2021 Fix bug. Don't display invalid time when not synch yet.
*****************************************************************************************************************************/

#if !( defined(ESP8266) || defined(ESP32) )
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
#endif

#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.8.0"
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.8.1"

// Use from 0 to 4. Higher number, more debugging messages and memory usage.
#define _ESPASYNC_WIFIMGR_LOGLEVEL_ 3
Expand Down Expand Up @@ -617,7 +618,7 @@ void printLocalTime()

now = time(nullptr);

if ( now > 1000000 )
if ( now > 1451602800 )
{
Serial.print("Local Date/Time: ");
Serial.print(ctime(&now));
Expand All @@ -626,8 +627,14 @@ void printLocalTime()
struct tm timeinfo;

getLocalTime( &timeinfo );
Serial.print("Local Date/Time: ");
Serial.print( asctime( &timeinfo ) );

// Valid only if year > 2000.
// You can get from timeinfo : tm_year, tm_mon, tm_mday, tm_hour, tm_min, tm_sec
if (timeinfo.tm_year > 100 )
{
Serial.print("Local Date/Time: ");
Serial.print( asctime( &timeinfo ) );
}
#endif
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
Licensed under MIT license
Version: 1.8.0
Version: 1.8.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -36,13 +36,14 @@
1.7.0 K Hoang 20/04/2021 Add support to new ESP32-C3 using SPIFFS or EEPROM
1.7.1 K Hoang 25/04/2021 Fix MultiWiFi bug. Fix captive-portal bug if CP AP address is not default 192.168.4.1
1.8.0 K Hoang 30/04/2021 Set _timezoneName. Add support to new ESP32-S2 (METRO_ESP32S2, FUNHOUSE_ESP32S2, etc.)
1.8.1 K Hoang 06/05/2021 Fix bug. Don't display invalid time when not synch yet.
*****************************************************************************************************************************/

#if !( defined(ESP8266) || defined(ESP32) )
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
#endif

#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.8.0"
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.8.1"

// Use from 0 to 4. Higher number, more debugging messages and memory usage.
#define _ESPASYNC_WIFIMGR_LOGLEVEL_ 3
Expand Down Expand Up @@ -451,7 +452,7 @@ void printLocalTime()

now = time(nullptr);

if ( now > 1000000 )
if ( now > 1451602800 )
{
Serial.print("Local Date/Time: ");
Serial.print(ctime(&now));
Expand All @@ -460,8 +461,14 @@ void printLocalTime()
struct tm timeinfo;

getLocalTime( &timeinfo );
Serial.print("Local Date/Time: ");
Serial.print( asctime( &timeinfo ) );

// Valid only if year > 2000.
// You can get from timeinfo : tm_year, tm_mon, tm_mday, tm_hour, tm_min, tm_sec
if (timeinfo.tm_year > 100 )
{
Serial.print("Local Date/Time: ");
Serial.print( asctime( &timeinfo ) );
}
#endif
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
Licensed under MIT license
Version: 1.8.0
Version: 1.8.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -36,12 +36,13 @@
1.7.0 K Hoang 20/04/2021 Add support to new ESP32-C3 using SPIFFS or EEPROM
1.7.1 K Hoang 25/04/2021 Fix MultiWiFi bug. Fix captive-portal bug if CP AP address is not default 192.168.4.1
1.8.0 K Hoang 30/04/2021 Set _timezoneName. Add support to new ESP32-S2 (METRO_ESP32S2, FUNHOUSE_ESP32S2, etc.)
1.8.1 K Hoang 06/05/2021 Fix bug. Don't display invalid time when not synch yet.
*****************************************************************************************************************************/
#if !( defined(ESP8266) || defined(ESP32) )
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
#endif

#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.8.0"
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.8.1"

// Use from 0 to 4. Higher number, more debugging messages and memory usage.
#define _ESPASYNC_WIFIMGR_LOGLEVEL_ 3
Expand Down Expand Up @@ -425,7 +426,7 @@ void printLocalTime()

now = time(nullptr);

if ( now > 1000000 )
if ( now > 1451602800 )
{
Serial.print("Local Date/Time: ");
Serial.print(ctime(&now));
Expand All @@ -434,8 +435,14 @@ void printLocalTime()
struct tm timeinfo;

getLocalTime( &timeinfo );
Serial.print("Local Date/Time: ");
Serial.print( asctime( &timeinfo ) );

// Valid only if year > 2000.
// You can get from timeinfo : tm_year, tm_mon, tm_mday, tm_hour, tm_min, tm_sec
if (timeinfo.tm_year > 100 )
{
Serial.print("Local Date/Time: ");
Serial.print( asctime( &timeinfo ) );
}
#endif
}

Expand Down
Loading

0 comments on commit d44c404

Please sign in to comment.