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

Commit

Permalink
v1.9.4 to restore support to ESP32 and ESP8266
Browse files Browse the repository at this point in the history
### Releases v1.9.4

1. Restore support to ESP32 and ESP8266. Check [Problem using ESP8266 nodeMCU 1.0 #20](#20)
  • Loading branch information
khoih-prog authored Sep 7, 2022
1 parent a89c398 commit 2e62bf5
Show file tree
Hide file tree
Showing 32 changed files with 127 additions and 83 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Arduino IDE version: 1.8.19
RASPBERRY_PI_PICO board
ArduinoCore-mbed v3.1.1
OS: Ubuntu 20.04 LTS
Linux xy-Inspiron-3593 5.15.0-41-generic #44~20.04.1-Ubuntu SMP Fri Jun 24 13:27:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Linux xy-Inspiron-3593 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Context:
I encountered an endless loop while trying to connect to Local WiFi.
Expand Down
43 changes: 22 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,14 +271,14 @@ This [**WiFiWebServer library**](https://github.com/khoih-prog/WiFiWebServer) cu

11. [`Arduino Core for STM32 v2.3.0+`](https://github.com/stm32duino/Arduino_Core_STM32) for STM32F/L/H/G/WB/MP1 boards. [![GitHub release](https://img.shields.io/github/release/stm32duino/Arduino_Core_STM32.svg)](https://github.com/stm32duino/Arduino_Core_STM32/releases/latest)

12. [`Earle Philhower's arduino-pico core v2.4.0+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, RASPBERRY_PI_PICO_W, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [![GitHub release](https://img.shields.io/github/release/earlephilhower/arduino-pico.svg)](https://github.com/earlephilhower/arduino-pico/releases/latest)
12. [`Earle Philhower's arduino-pico core v2.5.2+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, RASPBERRY_PI_PICO_W, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [![GitHub release](https://img.shields.io/github/release/earlephilhower/arduino-pico.svg)](https://github.com/earlephilhower/arduino-pico/releases/latest)

13. [`ArduinoCore-mbed mbed_rp2040, mbed_nano, mbed_portenta core 3.1.1+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino (Use Arduino Board Manager) **Portenta_H7, RP2040-based boards, such as Nano_RP2040_Connect, RASPBERRY_PI_PICO**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest)

14. [`Arduino megaAVR core 1.8.7+`](https://github.com/arduino/ArduinoCore-megaavr/releases) for Arduino megaAVR boards such as **UNO_WIFI_REV2, NANO_EVERY**

15. [`Functional-Vlpp library v1.0.2+`](https://github.com/khoih-prog/functional-vlpp) to use server's lambda function. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/Functional-Vlpp.svg?)](https://www.ardu-badge.com/Functional-Vlpp)
16. [`WiFiNINA_Generic library v1.8.14-5+`](https://github.com/khoih-prog/WiFiNINA_Generic) if using WiFiNINA. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/WiFiNINA_Generic.svg?)](https://www.ardu-badge.com/WiFiNINA_Generic).
16. [`WiFiNINA_Generic library v1.8.14-6+`](https://github.com/khoih-prog/WiFiNINA_Generic) if using WiFiNINA. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/WiFiNINA_Generic.svg?)](https://www.ardu-badge.com/WiFiNINA_Generic).
17. [`ESP_AT_Lib library v1.4.1+`](https://github.com/khoih-prog/ESP_AT_Lib) if using ESP8288/ESP32-AT shields. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/ESP_AT_Lib.svg?)](https://www.ardu-badge.com/ESP_AT_Lib).
18. [`Modified WiFi101 Library v0.16.1+`](https://github.com/khoih-prog/WiFi101) to use SAMD MKR1000, etc. boards with WiFi101.
19. [`WiFiEspAT library v1.4.1+`](https://github.com/jandrassy/WiFiEspAT) if using ESP8288/ESP32-AT shields. [![GitHub release](https://img.shields.io/github/release/jandrassy/WiFiEspAT.svg)](https://github.com/jandrassy/WiFiEspAT/releases/latest)
Expand Down Expand Up @@ -915,7 +915,7 @@ The following are debug terminal output and screen shot when running example [**

```
Starting AdvancedServer on SAMD_NANO_33_IOT
WiFiWebServer v1.9.3
WiFiWebServer v1.9.4
[NN] ===============================
[NN]
Used/default SPI pinout:
Expand Down Expand Up @@ -1068,7 +1068,7 @@ The terminal output of **SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic L

```
Starting SimpleWebSocket on SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic Library
WiFiWebServer v1.9.3
WiFiWebServer v1.9.4
Connecting to SSID: HueNet1
You're connected to the network, IP = 192.168.2.98
SSID: HueNet1, Signal strength (RSSI):-24 dBm
Expand Down Expand Up @@ -1102,7 +1102,7 @@ The terminal output of **SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic L

```
Starting SimpleHTTPExample on SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic Library
WiFiWebServer v1.9.3
WiFiWebServer v1.9.4
Connecting to SSID: HueNet1
You're connected to the network, IP = 192.168.2.98
SSID: HueNet1, Signal strength (RSSI):-21 dBm
Expand Down Expand Up @@ -1161,7 +1161,7 @@ The terminal output of **SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic L

```
Starting DweetPost on SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic Library
WiFiWebServer v1.9.3
WiFiWebServer v1.9.4
Connecting to SSID: HueNet1
You're connected to the network, IP = 192.168.2.98
SSID: HueNet1, Signal strength (RSSI):-22 dBm
Expand All @@ -1184,7 +1184,7 @@ The terminal output of **SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic L

```
Starting DweetGet on SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic Library
WiFiWebServer v1.9.3
WiFiWebServer v1.9.4
Connecting to SSID: HueNet1
You're connected to the network, IP = 192.168.2.98
SSID: HueNet1, Signal strength (RSSI):-25 dBm
Expand Down Expand Up @@ -1213,7 +1213,7 @@ The terminal output of **SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic L

```
Starting MQTTClient_Auth on SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic Library
WiFiWebServer v1.9.3
WiFiWebServer v1.9.4
Please upgrade the firmware
Connecting to WPA SSID: HueNet1
Connected! IP address: 192.168.2.98
Expand All @@ -1234,7 +1234,7 @@ The terminal output of **SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic L
```
Start MQTT_ThingStream on SAMD_NANO_33_IOT
Starting MQTTClient_Auth on SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic Library
WiFiWebServer v1.9.3
WiFiWebServer v1.9.4
Please upgrade the firmware
Connecting to WPA SSID: HueNet1
Connected! IP address: 192.168.2.98
Expand Down Expand Up @@ -1262,7 +1262,7 @@ The terminal output of **RASPBERRY_PI_PICO with Custom WiFi (ESP8266-AT) using C

```
Starting WebClientRepeating on RASPBERRY_PI_PICO with Custom WiFi using Custom WiFi Library
WiFiWebServer v1.9.3
WiFiWebServer v1.9.4
WiFi shield init done
Connecting to SSID: HueNet1
You're connected to the network, IP = 192.168.2.76
Expand Down Expand Up @@ -1334,7 +1334,7 @@ The following are debug terminal output and screen shot when running example [**

```
Starting AdvancedServer on Nano RP2040 Connect with WiFiNINA using WiFiNINA_Generic Library
WiFiWebServer v1.9.3
WiFiWebServer v1.9.4
Connecting to WPA SSID: HueNet1
HTTP server started @ 192.168.2.130
H[WIFI] handleClient: New Client
Expand Down Expand Up @@ -1460,7 +1460,7 @@ The terminal output of **ESP32_DEV** running [SimpleHTTPExample example](example

```
Starting SimpleHTTPExample on ESP32_DEV with ESP WiFi using WiFi Library
WiFiWebServer v1.9.3
WiFiWebServer v1.9.4
Connecting to SSID: HueNet1
You're connected to the network, IP = 192.168.2.80
SSID: HueNet1, Signal strength (RSSI):-23 dBm
Expand Down Expand Up @@ -1526,7 +1526,7 @@ The following are debug terminal output and screen shot when running example [**

```
Starting AdvancedServer on PORTENTA_H7_M7 with Portenta_H7 WiFi
WiFiWebServer v1.9.3
WiFiWebServer v1.9.4
Connecting to WPA SSID: HueNet1
HTTP server started @ 192.168.2.138
H[WIFI] String Len = 0, extend to 2048
Expand All @@ -1542,7 +1542,7 @@ The terminal output of **PORTENTA_H7_M7 with Portenta_H7 WiFi** running [MQTTCli

```
Starting MQTTClient_Auth on PORTENTA_H7_M7 with Portenta_H7 WiFi
WiFiWebServer v1.9.3
WiFiWebServer v1.9.4
Connecting to SSID: HueNet1
Connected! IP address: 192.168.2.130
Attempting MQTT connection to broker.emqx.io...connected
Expand All @@ -1562,7 +1562,7 @@ The terminal output of **PORTENTA_H7_M7 with Portenta_H7 WiFi** running [WebClie

```
Starting WebClientRepeating on PORTENTA_H7_M7 with Portenta_H7 WiFi
WiFiWebServer v1.9.3
WiFiWebServer v1.9.4
Connecting to SSID: HueNet1
You're connected to the network, IP = 192.168.2.130
SSID: HueNet1, Signal strength (RSSI):-33 dBm
Expand Down Expand Up @@ -1634,7 +1634,7 @@ The following are debug terminal output and screen shot when running example [**

```
Starting AdvancedWebServer on ESP32C3_DEV with ESP WiFi using WiFi Library
WiFiWebServer v1.9.3
WiFiWebServer v1.9.4
Connecting to WPA SSID: HueNet1
HTTP server started @ 192.168.2.86
HH
Expand All @@ -1653,7 +1653,7 @@ The following are debug terminal output and screen shot when running example [**

```
Starting AdvancedWebServer on ESP32S3_DEV with ESP WiFi using WiFi Library
WiFiWebServer v1.9.3
WiFiWebServer v1.9.4
Connecting to WPA SSID: HueNet1
HTTP server started @ 192.168.2.86
HH
Expand All @@ -1673,7 +1673,7 @@ The following are debug terminal output and screen shot when running example [**
```
Starting AdvancedWebServer_WiFiMulti on Nano RP2040 Connect with WiFiNINA using WiFiNINA_Generic Library
WiFiMulti_Generic v1.2.2
WiFiWebServer v1.9.3
WiFiWebServer v1.9.4
Connecting WiFi...
WiFi connected, IP address: 192.168.2.113
You're connected to the network, IP = 192.168.2.113
Expand All @@ -1691,7 +1691,7 @@ The following are debug terminal output and screen shot when running example [**
```
Starting MQTTClient_Auth_WiFiMulti on Nano RP2040 Connect with WiFiNINA using WiFiNINA_Generic Library
WiFiMulti_Generic v1.2.2
WiFiWebServer v1.9.3
WiFiWebServer v1.9.4
Connecting WiFi...
WiFi connected, IP address: 192.168.2.113
You're connected to the network, IP = 192.168.2.113
Expand Down Expand Up @@ -1721,7 +1721,7 @@ The following are debug terminal output and screen shot when running example [**
```
Starting WiFiUdpNTPClient_WiFiMulti on Nano RP2040 Connect with WiFiNINA using WiFiNINA_Generic Library
WiFiMulti_Generic v1.2.2
WiFiWebServer v1.9.3
WiFiWebServer v1.9.4
Connecting WiFi...
WiFi connected, IP address: 192.168.2.113
You're connected to the network, IP = 192.168.2.113
Expand Down Expand Up @@ -1755,7 +1755,7 @@ The following are debug terminal output and screen shot when running example [**
```
Starting AdvancedWebServer_WiFiMulti on RASPBERRY_PI_PICO_W with RP2040W CYW43439 WiFi
WiFiMulti_Generic v1.2.2
WiFiWebServer v1.9.3
WiFiWebServer v1.9.4
Connecting WiFi...
WiFi connected, IP address: 192.168.2.180
Expand Down Expand Up @@ -1797,6 +1797,7 @@ Submit issues to: [WiFiWebServer issues](https://github.com/khoih-prog/WiFiWebSe
---

### TO DO

1. Bug Searching and Killing
2. Add SSL/TLS Client and Server support
3. Support more types of boards using WiFiNINA and other WiFi shields.
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
## Table of Contents

* [Changelog](#changelog)
* [Releases v1.9.4](#releases-v194)
* [Releases v1.9.3](#releases-v193)
* [Releases v1.9.2](#releases-v192)
* [Releases v1.9.1](#releases-v191)
Expand Down Expand Up @@ -49,6 +50,10 @@

## Changelog

### Releases v1.9.4

1. Restore support to ESP32 and ESP8266. Check [Problem using ESP8266 nodeMCU 1.0 #20](https://github.com/khoih-prog/WiFiWebServer/issues/20)

### Releases v1.9.3

1. Better workaround for RP2040W `WiFi.status()` bug using `ping()` to local gateway
Expand Down
4 changes: 2 additions & 2 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "WiFiWebServer",
"version": "1.9.3",
"version": "1.9.4",
"keywords": "wifi, wi-fi, WebServer, WiFiNINA, WiFi101, ESP32, Portenta-H7, SAM-DUE, SAMD, STM32, nRF52, rpi-pico, rp2040, HTTP-Client, WebSocket-Client, server, client, websocket, wifi-multi, mega-avr",
"description": "Simple WiFiWebServer, HTTP Client and WebSocket Client library for AVR Mega, megaAVR, Portenta_H7, Teensy, SAM DUE, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, nRF52, RP2040-based (Nano-RP2040-Connect, RASPBERRY_PI_PICO, RASPBERRY_PI_PICO_W, ESP32/ESP8266, etc.) boards using WiFi, such as WiFiNINA, WiFi101, CYW43439, U-Blox W101, W102, ESP8266/ESP32-AT modules/shields, with functions similar to those of ESP8266/ESP32 WebServer libraries",
"authors":
Expand All @@ -27,7 +27,7 @@
{
"owner": "khoih-prog",
"name": "WiFiNINA_Generic",
"version": ">=1.8.14-5",
"version": ">=1.8.14-6",
"platforms": ["*"]
},
{
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=WiFiWebServer
version=1.9.3
version=1.9.4
author=Khoi Hoang
license=MIT
maintainer=Khoi Hoang <[email protected]>
Expand Down
4 changes: 2 additions & 2 deletions platformio/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ lib_ldf_mode = chain+
lib_deps =
; PlatformIO 4.x
; Functional-Vlpp@>=1.0.2
; WiFiNINA_Generic@>=1.8.14-5
; WiFiNINA_Generic@>=1.8.14-6
; WiFiMulti_Generic@>=1.2.2
; ESP_AT_Lib@>=1.4.1
; PlatformIO 5.x
khoih-prog/Functional-Vlpp@>=1.0.2
khoih-prog/WiFiNINA_Generic@>=1.8.14-5
khoih-prog/WiFiNINA_Generic@>=1.8.14-6
khoih-prog/WiFiMulti_Generic@>=1.2.2
khoih-prog/ESP_AT_Lib@>=1.4.1

Expand Down
5 changes: 3 additions & 2 deletions src/Parsing-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.9.3
Version: 1.9.4
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -26,8 +26,9 @@
1.8.0 K Hoang 26/04/2022 Add WiFiMulti library support and examples
1.9.0 K Hoang 12/08/2022 Add support to RASPBERRY_PI_PICO_W using CYW4343 WiFi
1.9.1 K Hoang 13/08/2022 Add WiFiMulti support to RASPBERRY_PI_PICO_W using CYW4343 WiFi
1.9.2 K Hoang 16/08/2022 Workarounnd for RP2040W WiFi.status() bug
1.9.2 K Hoang 16/08/2022 Workaround for RP2040W WiFi.status() bug
1.9.3 K Hoang 16/08/2022 Better workaround for RP2040W WiFi.status() bug using ping() to local gateway
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
**********************************************************************************************************************************/

#pragma once
Expand Down
5 changes: 3 additions & 2 deletions src/WiFiHttpClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.9.3
Version: 1.9.4
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -26,8 +26,9 @@
1.8.0 K Hoang 26/04/2022 Add WiFiMulti library support and examples
1.9.0 K Hoang 12/08/2022 Add support to RASPBERRY_PI_PICO_W using CYW4343 WiFi
1.9.1 K Hoang 13/08/2022 Add WiFiMulti support to RASPBERRY_PI_PICO_W using CYW4343 WiFi
1.9.2 K Hoang 16/08/2022 Workarounnd for RP2040W WiFi.status() bug
1.9.2 K Hoang 16/08/2022 Workaround for RP2040W WiFi.status() bug
1.9.3 K Hoang 16/08/2022 Better workaround for RP2040W WiFi.status() bug using ping() to local gateway
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
*****************************************************************************************************************************/

// Library to simplify HTTP fetching on Arduino
Expand Down
5 changes: 3 additions & 2 deletions src/WiFiWebServer-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.9.3
Version: 1.9.4
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -26,8 +26,9 @@
1.8.0 K Hoang 26/04/2022 Add WiFiMulti library support and examples
1.9.0 K Hoang 12/08/2022 Add support to RASPBERRY_PI_PICO_W using CYW4343 WiFi
1.9.1 K Hoang 13/08/2022 Add WiFiMulti support to RASPBERRY_PI_PICO_W using CYW4343 WiFi
1.9.2 K Hoang 16/08/2022 Workarounnd for RP2040W WiFi.status() bug
1.9.2 K Hoang 16/08/2022 Workaround for RP2040W WiFi.status() bug
1.9.3 K Hoang 16/08/2022 Better workaround for RP2040W WiFi.status() bug using ping() to local gateway
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
**********************************************************************************************************************************/

#pragma once
Expand Down
11 changes: 6 additions & 5 deletions src/WiFiWebServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.9.3
Version: 1.9.4
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -26,8 +26,9 @@
1.8.0 K Hoang 26/04/2022 Add WiFiMulti library support and examples
1.9.0 K Hoang 12/08/2022 Add support to RASPBERRY_PI_PICO_W using CYW4343 WiFi
1.9.1 K Hoang 13/08/2022 Add WiFiMulti support to RASPBERRY_PI_PICO_W using CYW4343 WiFi
1.9.2 K Hoang 16/08/2022 Workarounnd for RP2040W WiFi.status() bug
1.9.2 K Hoang 16/08/2022 Workaround for RP2040W WiFi.status() bug
1.9.3 K Hoang 16/08/2022 Better workaround for RP2040W WiFi.status() bug using ping() to local gateway
1.9.4 K Hoang 06/09/2022 Restore support to ESP32 and ESP8266
**********************************************************************************************************************************/

#pragma once
Expand All @@ -36,13 +37,13 @@
#define WiFiWebServer_H

#ifndef WIFI_WEBSERVER_VERSION
#define WIFI_WEBSERVER_VERSION "WiFiWebServer v1.9.3"
#define WIFI_WEBSERVER_VERSION "WiFiWebServer v1.9.4"

#define WIFI_WEBSERVER_VERSION_MAJOR 1
#define WIFI_WEBSERVER_VERSION_MINOR 9
#define WIFI_WEBSERVER_VERSION_PATCH 3
#define WIFI_WEBSERVER_VERSION_PATCH 4

#define WIFI_WEBSERVER_VERSION_INT 1009003
#define WIFI_WEBSERVER_VERSION_INT 1009004
#endif

#include "WiFiWebServer.hpp"
Expand Down
Loading

0 comments on commit 2e62bf5

Please sign in to comment.