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

Commit

Permalink
v1.7.0 to use WiFiMulti_Generic library
Browse files Browse the repository at this point in the history
### Release v1.7.0

1. Use [WiFiMulti_Generic](https://github.com/khoih-prog/WiFiMulti_Generic) library to connect to the best of **multi-WiFi APs**, with **auto-checking / auto-reconnecting** features when WiFi connection is lost.
2. Update `Packages' Patches`
  • Loading branch information
khoih-prog authored Apr 27, 2022
1 parent 6ce42e2 commit 945e9f6
Show file tree
Hide file tree
Showing 24 changed files with 48 additions and 24 deletions.
3 changes: 2 additions & 1 deletion examples/RP2040_WiFiNINA/RP2040_WiFiNINA.ino
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ void setup()
{
// Debug console
Serial.begin(115200);
while (!Serial);
while (!Serial && millis() < 5000);

delay(200);

Serial.print(F("\nStarting RP2040_WiFiNINA on ")); Serial.println(BOARD_NAME);
Serial.println(WIFIMULTI_GENERIC_VERSION);
Serial.println(WIFIMANAGER_NINA_LITE_VERSION);

WiFiManager_NINA = new WiFiManager_NINA_Lite();
Expand Down
3 changes: 2 additions & 1 deletion examples/RP2040_WiFiNINA/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
#define DEBUG_WIFI_WEBSERVER_PORT Serial
#define WIFININA_DEBUG_OUTPUT Serial

#define _WIFININA_LOGLEVEL_ 2
#define _WIFININA_LOGLEVEL_ 1
#define _WIFIMULTI_LOGLEVEL_ 1

#define DRD_GENERIC_DEBUG true

Expand Down
3 changes: 2 additions & 1 deletion examples/RP2040_WiFiNINA_MQTT/RP2040_WiFiNINA_MQTT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,14 @@ void setup()
{
// Debug console
Serial.begin(115200);
while (!Serial);
while (!Serial && millis() < 5000);

pinMode(LED_PIN, OUTPUT);

delay(200);

Serial.print(F("\nStarting RP2040_WiFiNINA_MQTT on ")); Serial.println(BOARD_NAME);
Serial.println(WIFIMULTI_GENERIC_VERSION);
Serial.println(WIFIMANAGER_NINA_LITE_VERSION);

WiFiManager_NINA = new WiFiManager_NINA_Lite();
Expand Down
3 changes: 2 additions & 1 deletion examples/RP2040_WiFiNINA_MQTT/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
#define DEBUG_WIFI_WEBSERVER_PORT Serial
#define WIFININA_DEBUG_OUTPUT Serial

#define _WIFININA_LOGLEVEL_ 2
#define _WIFININA_LOGLEVEL_ 1
#define _WIFIMULTI_LOGLEVEL_ 1

#define DRD_GENERIC_DEBUG true

Expand Down
3 changes: 2 additions & 1 deletion examples/SAMD_WiFiNINA/SAMD_WiFiNINA.ino
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ void setup()
{
// Debug console
Serial.begin(115200);
while (!Serial);
while (!Serial && millis() < 5000);

delay(200);

Serial.print(F("\nStarting SAMD_WiFiNINA on ")); Serial.println(BOARD_TYPE);
Serial.println(WIFIMULTI_GENERIC_VERSION);
Serial.println(WIFIMANAGER_NINA_LITE_VERSION);

WiFiManager_NINA = new WiFiManager_NINA_Lite();
Expand Down
1 change: 1 addition & 0 deletions examples/SAMD_WiFiNINA/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#define WIFININA_DEBUG_OUTPUT Serial

#define _WIFININA_LOGLEVEL_ 1
#define _WIFIMULTI_LOGLEVEL_ 1

#define DRD_GENERIC_DEBUG true

Expand Down
3 changes: 2 additions & 1 deletion examples/SAMD_WiFiNINA_MQTT/SAMD_WiFiNINA_MQTT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,14 @@ void setup()
{
// Debug console
Serial.begin(115200);
while (!Serial);
while (!Serial && millis() < 5000);

pinMode(LED_PIN, OUTPUT);

delay(200);

Serial.print(F("\nStarting SAMD_WiFiNINA_MQTT on ")); Serial.println(BOARD_TYPE);
Serial.println(WIFIMULTI_GENERIC_VERSION);
Serial.println(WIFIMANAGER_NINA_LITE_VERSION);

WiFiManager_NINA = new WiFiManager_NINA_Lite();
Expand Down
3 changes: 2 additions & 1 deletion examples/SAMD_WiFiNINA_MQTT/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
#define DEBUG_WIFI_WEBSERVER_PORT Serial
#define WIFININA_DEBUG_OUTPUT Serial

#define _WIFININA_LOGLEVEL_ 2
#define _WIFININA_LOGLEVEL_ 1
#define _WIFIMULTI_LOGLEVEL_ 1

#define DRD_GENERIC_DEBUG true

Expand Down
3 changes: 2 additions & 1 deletion examples/SAM_DUE_WiFiNINA/SAM_DUE_WiFiNINA.ino
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ void setup()
{
// Debug console
Serial.begin(115200);
while (!Serial);
while (!Serial && millis() < 5000);

delay(200);

Serial.print(F("\nStarting SAM_DUE_WiFiNINA on ")); Serial.println(BOARD_TYPE);
Serial.println(WIFIMULTI_GENERIC_VERSION);
Serial.println(WIFIMANAGER_NINA_LITE_VERSION);

WiFiManager_NINA = new WiFiManager_NINA_Lite();
Expand Down
3 changes: 2 additions & 1 deletion examples/SAM_DUE_WiFiNINA/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
#define DEBUG_WIFI_WEBSERVER_PORT Serial
#define WIFININA_DEBUG_OUTPUT Serial

#define _WIFININA_LOGLEVEL_ 2
#define _WIFININA_LOGLEVEL_ 1
#define _WIFIMULTI_LOGLEVEL_ 1

#define DRD_GENERIC_DEBUG true

Expand Down
3 changes: 2 additions & 1 deletion examples/SAM_DUE_WiFiNINA_MQTT/SAM_DUE_WiFiNINA_MQTT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,14 @@ void setup()
{
// Debug console
Serial.begin(115200);
while (!Serial);
while (!Serial && millis() < 5000);

pinMode(LED_PIN, OUTPUT);

delay(200);

Serial.print(F("\nStarting SAM_DUE_WiFiNINA_MQTT on ")); Serial.println(BOARD_TYPE);
Serial.println(WIFIMULTI_GENERIC_VERSION);
Serial.println(WIFIMANAGER_NINA_LITE_VERSION);

WiFiManager_NINA = new WiFiManager_NINA_Lite();
Expand Down
3 changes: 2 additions & 1 deletion examples/SAM_DUE_WiFiNINA_MQTT/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
#define DEBUG_WIFI_WEBSERVER_PORT Serial
#define WIFININA_DEBUG_OUTPUT Serial

#define _WIFININA_LOGLEVEL_ 2
#define _WIFININA_LOGLEVEL_ 1
#define _WIFIMULTI_LOGLEVEL_ 1

#define DRD_GENERIC_DEBUG true

Expand Down
3 changes: 2 additions & 1 deletion examples/STM32_WiFiNINA/STM32_WiFiNINA.ino
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ void setup()
{
// Debug console
Serial.begin(115200);
while (!Serial);
while (!Serial && millis() < 5000);

delay(200);

Serial.print(F("\nStarting STM32_WiFiNINA on ")); Serial.println(BOARD_TYPE);
Serial.println(WIFIMULTI_GENERIC_VERSION);
Serial.println(WIFIMANAGER_NINA_LITE_VERSION);

WiFiManager_NINA = new WiFiManager_NINA_Lite();
Expand Down
3 changes: 2 additions & 1 deletion examples/STM32_WiFiNINA/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
#define DEBUG_WIFI_WEBSERVER_PORT Serial
#define WIFININA_DEBUG_OUTPUT Serial

#define _WIFININA_LOGLEVEL_ 2
#define _WIFININA_LOGLEVEL_ 1
#define _WIFIMULTI_LOGLEVEL_ 1

#define DRD_GENERIC_DEBUG true

Expand Down
3 changes: 2 additions & 1 deletion examples/STM32_WiFiNINA_MQTT/STM32_WiFiNINA_MQTT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,14 @@ void setup()
{
// Debug console
Serial.begin(115200);
while (!Serial);
while (!Serial && millis() < 5000);

pinMode(LED_PIN, OUTPUT);

delay(200);

Serial.print(F("\nStarting STM32_WiFiNINA_MQTT on ")); Serial.println(BOARD_TYPE);
Serial.println(WIFIMULTI_GENERIC_VERSION);
Serial.println(WIFIMANAGER_NINA_LITE_VERSION);

WiFiManager_NINA = new WiFiManager_NINA_Lite();
Expand Down
3 changes: 2 additions & 1 deletion examples/STM32_WiFiNINA_MQTT/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
#define DEBUG_WIFI_WEBSERVER_PORT Serial
#define WIFININA_DEBUG_OUTPUT Serial

#define _WIFININA_LOGLEVEL_ 2
#define _WIFININA_LOGLEVEL_ 1
#define _WIFIMULTI_LOGLEVEL_ 1

#define DRD_GENERIC_DEBUG true

Expand Down
3 changes: 2 additions & 1 deletion examples/Teensy_WiFiNINA/Teensy_WiFiNINA.ino
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ void setup()
{
// Debug console
Serial.begin(115200);
while (!Serial);
while (!Serial && millis() < 5000);

delay(200);

Serial.print(F("\nStarting Teensy_WiFiNINA on ")); Serial.println(BOARD_TYPE);
Serial.println(WIFIMULTI_GENERIC_VERSION);
Serial.println(WIFIMANAGER_NINA_LITE_VERSION);

WiFiManager_NINA = new WiFiManager_NINA_Lite();
Expand Down
5 changes: 3 additions & 2 deletions examples/Teensy_WiFiNINA/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
#define DEBUG_WIFI_WEBSERVER_PORT Serial
#define WIFININA_DEBUG_OUTPUT Serial

#define _WIFININA_LOGLEVEL_ 2
#define _WIFININA_LOGLEVEL_ 1
#define _WIFIMULTI_LOGLEVEL_ 1

#define DRD_GENERIC_DEBUG true

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

#ifdef CORE_TEENSY
Expand Down
3 changes: 2 additions & 1 deletion examples/Teensy_WiFiNINA_MQTT/Teensy_WiFiNINA_MQTT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,14 @@ void setup()
{
// Debug console
Serial.begin(115200);
while (!Serial);
while (!Serial && millis() < 5000);

pinMode(LED_PIN, OUTPUT);

delay(200);

Serial.print(F("\nStarting Teensy_WiFiNINA_MQTT on ")); Serial.println(BOARD_TYPE);
Serial.println(WIFIMULTI_GENERIC_VERSION);
Serial.println(WIFIMANAGER_NINA_LITE_VERSION);

WiFiManager_NINA = new WiFiManager_NINA_Lite();
Expand Down
3 changes: 2 additions & 1 deletion examples/Teensy_WiFiNINA_MQTT/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
#define DEBUG_WIFI_WEBSERVER_PORT Serial
#define WIFININA_DEBUG_OUTPUT Serial

#define _WIFININA_LOGLEVEL_ 2
#define _WIFININA_LOGLEVEL_ 1
#define _WIFIMULTI_LOGLEVEL_ 1

#define DRD_GENERIC_DEBUG true

Expand Down
3 changes: 2 additions & 1 deletion examples/nRF52_WiFiNINA/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
#define DEBUG_WIFI_WEBSERVER_PORT Serial
#define WIFININA_DEBUG_OUTPUT Serial

#define _WIFININA_LOGLEVEL_ 2
#define _WIFININA_LOGLEVEL_ 1
#define _WIFIMULTI_LOGLEVEL_ 1

#define DRD_GENERIC_DEBUG true

Expand Down
3 changes: 2 additions & 1 deletion examples/nRF52_WiFiNINA/nRF52_WiFiNINA.ino
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ void setup()
{
// Debug console
Serial.begin(115200);
while (!Serial);
while (!Serial && millis() < 5000);

delay(200);

Serial.print(F("\nStarting nRF52_WiFiNINA on ")); Serial.println(BOARD_TYPE);
Serial.println(WIFIMULTI_GENERIC_VERSION);
Serial.println(WIFIMANAGER_NINA_LITE_VERSION);

WiFiManager_NINA = new WiFiManager_NINA_Lite();
Expand Down
3 changes: 2 additions & 1 deletion examples/nRF52_WiFiNINA_MQTT/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
#define DEBUG_WIFI_WEBSERVER_PORT Serial
#define WIFININA_DEBUG_OUTPUT Serial

#define _WIFININA_LOGLEVEL_ 2
#define _WIFININA_LOGLEVEL_ 1
#define _WIFIMULTI_LOGLEVEL_ 1

#define DRD_GENERIC_DEBUG true

Expand Down
3 changes: 2 additions & 1 deletion examples/nRF52_WiFiNINA_MQTT/nRF52_WiFiNINA_MQTT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,14 @@ void setup()
{
// Debug console
Serial.begin(115200);
while (!Serial);
while (!Serial && millis() < 5000);

pinMode(LED_PIN, OUTPUT);

delay(200);

Serial.print(F("\nStarting nRF52_WiFiNINA_MQTT on ")); Serial.println(BOARD_TYPE);
Serial.println(WIFIMULTI_GENERIC_VERSION);
Serial.println(WIFIMANAGER_NINA_LITE_VERSION);

WiFiManager_NINA = new WiFiManager_NINA_Lite();
Expand Down

0 comments on commit 945e9f6

Please sign in to comment.