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

Commit

Permalink
v1.4.0 for WizNet WizFi360
Browse files Browse the repository at this point in the history
### Release v1.4.0

1. Add support to WizNet `WizFi360`, such as `WIZNET_WIZFI360_EVB_PICO` using `arduino-pico` core
  • Loading branch information
khoih-prog committed Jan 18, 2023
1 parent 6639a51 commit 4d54139
Show file tree
Hide file tree
Showing 23 changed files with 1,969 additions and 1,739 deletions.
11 changes: 8 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,32 @@ However, before reporting a bug please check through the following:

If you don't find anything, please [open a new issue](https://github.com/khoih-prog/ESP_AT_WiFiManager/issues/new).

---

### How to submit a bug report

Please ensure to specify the following:

* Arduino IDE version (e.g. 1.8.19) or Platform.io version
* Board Core Version (e.g. Arduino SAMDUE core v1.6.12, ESP32 core v2.0.5, ESP8266 core v3.0.2, ArduinoCore-mbed v3.4.1, etc.)
* Board Core Version (e.g. Arduino SAMDUE core v1.6.12, ESP32 core v2.0.6, ESP8266 core v3.1.1, ArduinoCore-mbed v3.5.4, etc.)
* Contextual information (e.g. what you were trying to achieve)
* Simplest possible steps to reproduce
* Anything that might be relevant in your opinion, such as:
* Operating system (Windows, Ubuntu, etc.) and the output of `uname -a`
* Network configuration

Please be educated, civilized and constructive as you've always been. Disrespective posts against [GitHub Code of Conduct](https://docs.github.com/en/site-policy/github-terms/github-event-code-of-conduct) will be ignored and deleted.

---

### Example

```
Arduino IDE version: 1.8.19
RASPBERRY_PI_PICO board
ArduinoCore-mbed v3.4.1
ArduinoCore-mbed v3.5.4
OS: Ubuntu 20.04 LTS
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
Linux xy-Inspiron-3593 5.15.0-58-generic #64~20.04.1-Ubuntu SMP Fri Jan 6 16:42:31 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Context:
I encountered a crash while trying to use the library
Expand Down
Binary file added Images/WIZNET_WIZFI360_EVB_PICO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/wizfi360-pa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
## Table of Contents

* [Changelog](#changelog)
* [Release v1.4.0](#release-v140)
* [Release v1.3.1](#release-v131)
* [Major Release v1.3.0](#major-release-v130)
* [Major Release v1.2.0](#major-release-v120)
Expand All @@ -28,6 +29,10 @@

## Changelog

### Release v1.4.0

1. Add support to WizNet `WizFi360`, such as `WIZNET_WIZFI360_EVB_PICO` using `arduino-pico` core

### Release v1.3.1

1. Update `platform.ini` and `library.json` to use original `khoih-prog` instead of `khoih.prog` after PIO fix
Expand Down
27 changes: 17 additions & 10 deletions examples/AutoConnect/AutoConnect.ino
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/****************************************************************************************************************************
AutoConnect.ino
WiFi/Credentials Manager for SAM DUE, SAMD, nRF52, STM32F/L/H/G/WB/MP1, etc. boards running `ESP8266/ESP32-AT-command` shields
ESP_AT_WiFiManager is a library for the Teensy, SAM DUE, SAMD, nRF52, STM32F/L/H/G/WB/MP1, etc. boards running `ESP8266/ESP32-AT-command` shields
(https://github.com/esp8266/Arduino) to enable easy configuration and reconfiguration of WiFi, etc. credentials using a Captive Portal
Based on and modified from Tzapu https://github.com/tzapu/WiFiManager
and from Ken Taylor https://github.com/kentaylor
Built by Khoi Hoang https://github.com/khoih-prog/ESP_AT_WiFiManager
Licensed under MIT license
*****************************************************************************************************************************/
Expand Down Expand Up @@ -59,6 +59,7 @@ void check_status()
static ulong checkstatus_timeout = 0;

#define HEARTBEAT_INTERVAL 10000L

// Print hearbeat every HEARTBEAT_INTERVAL (10) seconds.
if ((millis() > checkstatus_timeout) || (checkstatus_timeout == 0))
{
Expand All @@ -76,6 +77,8 @@ void enterConfigPortal()

ESP_AT_wiFiManager.setMinimumSignalQuality(-1);

// 0 for random channel
//ESP_AT_wiFiManager.setAPChannel(0);
ESP_AT_wiFiManager.setAPChannel(1);

// Default AP IP is 192.168.4.1. Uncomment to use different AP IP
Expand All @@ -92,14 +95,14 @@ void enterConfigPortal()
Router_Pass = ESP_AT_wiFiManager.WiFi_Pass();

if ( (Router_SSID != "") && ESP_AT_wiFiManager.isWiFiConfigValid() )
{
{
if (ESP_AT_wiFiManager.connectWifi(Router_SSID, Router_Pass) == WL_CONNECTED)
{
Serial.println(F("Got stored Credentials. Try to connect first"));

return;
}

ESP_AT_wiFiManager.setConfigPortalTimeout(60); //If no access point name has been previously entered disable timeout.
Serial.println(F("Got stored Credentials but can't connect. Timeout 60s"));
}
Expand Down Expand Up @@ -136,19 +139,22 @@ void setup()
// put your setup code here, to run once:
// initialize the LED digital pin as an output.
pinMode(LOCAL_PIN_LED, OUTPUT);
digitalWrite(LOCAL_PIN_LED, LED_ON); // turn the LED on by making the voltage LOW to tell us we are in configuration mode.

// turn the LED on by making the voltage LOW to tell us we are in configuration mode.
digitalWrite(LOCAL_PIN_LED, LED_ON);

Serial.begin(115200);
while (!Serial);

while (!Serial && millis() < 5000);

#if USE_ESP32_AT
Serial.println("\nStart AutoConnect with ESP32-AT WiFi module on " + String(BOARD_NAME));
#else
Serial.println("\nStart AutoConnect with ESP8266-AT WiFi module on " + String(BOARD_NAME));
#endif

Serial.println(ESP_AT_WIFIMANAGER_VERSION);

// initialize serial for ESP module
EspSerial.begin(115200);

Expand All @@ -159,6 +165,7 @@ void setup()
if (WiFi.status() == WL_NO_SHIELD)
{
Serial.println(F("WiFi shield not present"));

// don't continue
while (true);
}
Expand Down
Loading

0 comments on commit 4d54139

Please sign in to comment.