- Notifications
You must be signed in to change notification settings - Fork2
Library to configure MultiWiFi/Credentials at runtime for Portenta_H7 boards, using built-in WiFi (Murata) modules/shields. You can also specify DHCP HostName, static AP and STA IP. Use much less memory compared to full-fledge WiFiManager. Config Portal will be auto-adjusted to match the number of dynamic custom parameters. Optional default Cred…
License
khoih-prog/WiFiManager_Portenta_H7_Lite
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
WiFiManager_Portenta_H7_Lite (Light Weight Credentials / WiFi Manager for Portenta_H7 built-in Murata WiFi)
- Important Notes for Portenta_H7
- Why do we need this WiFiManager_Portenta_H7_Lite library
- Changelog
- Prerequisites
- Installation
- Packages' Patches
- How It Works
- How to use
- 1. Basic usage
- 2. Add custom parameters
- 3. Not using custom parameters
- 4. To open Config Portal
- 5. To use different AP WiFi Channel
- 6. To use different static AP IP from default
- 7. To use custom DHCP HostName
- 8. To use custom HTML Style
- 9. To use custom Head Elements
- 10. To use CORS Header
- 11. To use and input only one set of WiFi SSID and PWD
- 12. To enable auto-scan of WiFi networks for selection in Configuration Portal
- 13. To avoid blocking in loop when WiFi is lost
- Examples
- So, how it works?
- Important Notes
- How to use default Credentials and have them pre-loaded onto Config Portal
- How to add dynamic parameters from sketch
- Important Notes for using Dynamic Parameters' ids
- Example Portenta_H7_WiFi
- Debug Terminal Output Samples
- Debug
- Troubleshooting
- Issues
- TO DO
- DONE
- Contributions and Thanks
- Contributing
- License
- Copyright
The LittleFS of the newPortenta_H7 board currently tested OK with onlymaximum 8 files. The files, from 9 and up, somehow strangely can't be written and / or read. This is possibly a bug in theArduinoCore-mbed mbed_portenta core
. The same behaviour is observed from core v2.0.0 up to v2.5.2.
If LittleFS size is reduced to 1024KB, test is OK with onlymaximum 4 files.
Beware and keep checking for updates.
The currentmbed_portenta core v2.6.1
has bug that once WiFi is connected,WiFi.status()
always reportsWL_CONNECTED
even if WiFi is lost.
The current workaround for thisWiFi.status()
bug is to use it withWiFi.RSSI()
, such as
boolWiFiConnected(){return ( (WiFi.status() == WL_CONNECTED) && (WiFi.RSSI() !=0) );}
This not-100%-perfect workaround is working only whenever theWiFi is totally powered down (RSSI == 0), but still better than nothing.
Check
The currentmbed_portenta core v2.6.1
has bug that once WiFi is connected and lost,WiFi.begin()
can't never reconnect even if WiFi is restored.
The current fix for this bug is to useWiFi.end()
beforeWiFi.begin()
, such as
// Must have to reconnect after WiFi lostWiFi.end();// Now WiFi.begin() can reconnect to WiFi after lost and restoredstatus = WiFi.begin(ssid, pass);
Check:
Why do we need thisWiFiManager_Portenta_H7_Lite library
If you have used the full-fledge WiFiManager such as :
and have to writecomplicated callback functions to save custom parameters in SPIFFS/LittleFS/EEPROM, you'd appreciate the simplicity of this Light-Weight Credentials / WiFiManager.
This library is a Light Weight Credentials / WiFi Manager forPortenta_H7 built-in WiFi (Murata) modules/shields, specially designed to supportPortenta_H7 running on M7 core.
This is a Credentials / WiFi Connection Manager, permitting the addition of custom parameters to be configured in Config Portal. The parameters then will be saved automatically,without the complicated callback functions to handle data saving / retrieving.
You can also specify DHCP HostName, static AP and STA IP. Use much less memory compared to full-fledge WiFiManager. Config Portal will be auto-adjusted to match the number of dynamic custom parameters. Credentials are saved in LittleFS, shared withDoubleResetDetector_Generic library.
The web configuration portal, served from theGeneric WiFi modules/shields
is operating as an access point (AP) with configurable static IP address or use default IP Address of 192.168.4.1
New recent features:
- MultiWiFi feature for configuring/auto(re)connectingPortenta WiFi shields to the available MultiWiFi APs at runtime.
- DoubleDetectDetector feature to force Config Portal when double reset is detected within predetermined time, default 10s.
- Powerful-yet-simple-to-use feature to enable adding dynamic custom parameters from sketch and input using the same Config Portal. Config Portal will be auto-adjusted to match the number of dynamic parameters.
- Optional defaultCredentials as well as Dynamic parameters to be optionally autoloaded into Config Portal to use or change instead of manually input.
- Dynamic custom parameters to be savedautomatically in non-volatile LittleeFS memory.
- ConfigurableConfig Portal Title to be either BoardName or default undistinguishable names.
- Examples are designed to separate Credentials / Defines / Dynamic Params / Code so that you can change Credentials / Dynamic Params quickly for each device.
- Control Config Portal from software or Virtual Switches
- To permit autoreset after configurable timeout if DRD/MRD or non-persistent forced-CP
- Use new Portenta_H7 LittleFS features
- Scan WiFi networks for selection in Configuration Portal
The usage the newWiFiMulti_Generic library to help connect to the best ofmulti-WiFi APs, withauto-checking / auto-reconnecting features when WiFi connection is lost.
ThisWiFiManager_Portenta_H7_Lite library currently supports these following boards:
- Portenta_H7 boards, using
ArduinoCore-mbed mbed_portenta core
- Portenta_H7 built-in Murata WiFi
Arduino IDE 1.8.19+
for Arduino.ArduinoCore-mbed mbed_portenta core 3.4.1+
for ArduinoPortenta_H7 boards, such asPortenta_H7 Rev2 ABX00042, etc..Functional-Vlpp library v1.0.2+
to use server's lambda function. To install. checkWiFiWebServer library v1.10.0+
. To install. checkLittleFS_Portenta_H7 v1.2.0+
. To install, checkDoubleResetDetector_Generic v1.8.1+
. To install, checkWiFiMulti_Generic library v1.2.2+
to use WiFiMulti function. To install, check.New
The best and easiest way is to useArduino Library Manager
. Search forWiFiManager_Portenta_H7_Lite, then select / install the latest version.You can also use this link for more detailed instructions.
- Navigate toWiFiManager_Portenta_H7_Lite page.
- Download the latest release
WiFiManager_Portenta_H7_Lite-main.zip
. - Extract the zip file to
WiFiManager_Portenta_H7_Lite-main
directory - Copy the whole
WiFiManager_Portenta_H7_Lite-main
folder to Arduino libraries' directory such as~/Arduino/libraries/
.
- InstallVS Code
- InstallPlatformIO
- InstallWiFiManager_Portenta_H7_Lite library by usingLibrary Manager. Search forWiFiManager_Portenta_H7_Lite inPlatform.io Author's Libraries
- Use includedplatformio.ini file from examples to ensure that all dependent libraries will installed automatically. Please visit documentation for the other options and examples atProject Configuration File
To be able to upload firmware to Portenta_H7 using Arduino IDE in Linux (Ubuntu, etc.), you have to copy the fileportenta_post_install.sh into mbed_portenta directory (~/.arduino15/packages/arduino/hardware/mbed_portenta/3.4.1/portenta_post_install.sh).
Then run the following command usingsudo
$ cd ~/.arduino15/packages/arduino/hardware/mbed_portenta/3.4.1$ chmod 755 portenta_post_install.sh$ sudo ./portenta_post_install.sh
This will create the file/etc/udev/rules.d/49-portenta_h7.rules
as follows:
# Portenta H7 bootloader mode UDEV rulesSUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="035b", GROUP="plugdev", MODE="0666"
Supposing the ArduinoCore-mbed core version is 3.4.1. Now only one file must be copied into the directory:
~/.arduino15/packages/arduino/hardware/mbed_portenta/3.4.1/portenta_post_install.sh
Whenever a new version is installed, remember to copy this files into the new version directory. For example, new version is x.yy.zz
This file must be copied into the directory:
~/.arduino15/packages/arduino/hardware/mbed_portenta/x.yy.zz/portenta_post_install.sh
- ThePortenta_H7_WiFi example shows how it works and should be used as the basis for a sketch that uses this library.
- The concept ofPortenta_H7_WiFi is that a new
WiFi module/shield
will start a WiFi configuration portal when powered up, but has no valid stored Credentials or can't connect to WiFi APs after a pre-determined time. - There are 6 more custom parameters added in the sketch which you can use in your program later. In the example, they are: 2 sets of Blynk Servers and Tokens, Blynk Port and MQTT Server.
- Using any WiFi enabled device with a browser (computer, phone, tablet) connect to the newly created AP and type in the configurable AP IP address (default 192.168.4.1). The Config Portal AP channel (default 10) is also configurable to avoid conflict with other APs.
- The Config Portal isauto-adjusted to fix the 4 static parameters (WiFi SSIDs/PWDs) as well as 6 more dynamic custom parameters.
- After the custom data entered, andSave button pressed, the configuration data will be saved in host's non-volatile memory, then the board reboots.
- If there is valid stored Credentials, it'll go directly to connect to one of theMultiWiFi APs without starting / using the Config Portal.
Generic WiFi module/shield
will try to connect. If successful, the dynamic DHCP and/or configured static IP address will be displayed in the configuration portal.- The
Generic WiFi module/shield
WiFi Config Portal network and Web Server will shutdown to return control to the sketch code. - In the operation, if the current WiFi connection is lost because of any reason, the system willauto(Re)connect to the remaining WiFi AP.
- If system can't connect to any of the 2 WiFi APs, the Config Portal will start, after some pre-determined time, to permit user to update the Credentials.
- Include in your sketch
#include<WiFiManager_Portenta_H7_Lite.h>WiFiManager_Portenta_H7_Lite* WiFiManager_Portenta_H7;
- To add custom parameters, just add
#include"defines.h"// USE_DYNAMIC_PARAMETERS defined in defines.h/////////////// Start dynamic Credentials /////////////////Defined in <WiFiManager_Portenta_H7_Lite.h>/************************************** #define MAX_ID_LEN 5 #define MAX_DISPLAY_NAME_LEN 16 typedef struct { char id [MAX_ID_LEN + 1]; char displayName [MAX_DISPLAY_NAME_LEN + 1]; char *pdata; uint8_t maxlen; } MenuItem;**************************************/#if USE_DYNAMIC_PARAMETERS#defineMAX_BLYNK_SERVER_LEN34#defineMAX_BLYNK_TOKEN_LEN34char Blynk_Server1 [MAX_BLYNK_SERVER_LEN +1] ="account.duckdns.org";char Blynk_Token1 [MAX_BLYNK_TOKEN_LEN +1] ="token1";char Blynk_Server2 [MAX_BLYNK_SERVER_LEN +1] ="account.ddns.net";char Blynk_Token2 [MAX_BLYNK_TOKEN_LEN +1] ="token2";#defineMAX_BLYNK_PORT_LEN6char Blynk_Port [MAX_BLYNK_PORT_LEN +1] ="8080";#defineMAX_MQTT_SERVER_LEN34char MQTT_Server [MAX_MQTT_SERVER_LEN +1] ="mqtt.duckdns.org";MenuItem myMenuItems [] ={ {"sv1","Blynk Server1", Blynk_Server1, MAX_BLYNK_SERVER_LEN }, {"tk1","Token1", Blynk_Token1, MAX_BLYNK_TOKEN_LEN }, {"sv2","Blynk Server2", Blynk_Server2, MAX_BLYNK_SERVER_LEN }, {"tk2","Token2", Blynk_Token2, MAX_BLYNK_TOKEN_LEN }, {"prt","Port", Blynk_Port, MAX_BLYNK_PORT_LEN }, {"mqt","MQTT Server", MQTT_Server, MAX_MQTT_SERVER_LEN },};uint16_t NUM_MENU_ITEMS =sizeof(myMenuItems) /sizeof(MenuItem);//MenuItemSize;#elseMenuItem myMenuItems [] = {};uint16_t NUM_MENU_ITEMS =0;#endif//USE_DYNAMIC_PARAMETERS
- If you don't need to add dynamic parameters, use the following in sketch
#defineUSE_DYNAMIC_PARAMETERSfalse
- When you want to open a config portal, just add
WiFiManager_Portenta_H7 =new WiFiManager_Portenta_H7_Lite();WiFiManager_Portenta_H7->begin();
- To not use default AP WiFi Channel 10 to avoid conflict with other WiFi APs :
WiFiManager_Portenta_H7->setConfigPortalChannel(newChannel);
- To use random AP WiFi Channel to avoid conflict with other WiFi APs :
WiFiManager_Portenta_H7->setConfigPortalChannel(0);
- To use different static AP IP (not use default
192.168.4.1
), call
WiFiManager_Portenta_H7->setConfigPortalIP(IPAddress(xxx,xxx,xxx,xxx));
- To set custom DHCP HostName :
// Set customized DHCP HostNameWiFiManager_Portenta_H7->begin("SAMD_ABCDEF");
or just use the default Hostname, for example "SAMD_XXXXXX" for SAMD
//Or use default Hostname "WIFI_GENERIC_XXXXXX"//WiFiManager_Portenta_H7->begin();
constchar NewCustomsStyle[]/*PROGMEM*/ ="<style>div,input{padding:5px;font-size:1em;}input{width:95%;}body{text-align: center;}\button{background-color:blue;color:white;line-height:2.4rem;font-size:1.2rem;width:100%;}fieldset{border-radius:0.3rem;margin:0px;}</style>";...WiFiManager_Portenta_H7->setCustomsStyle(NewCustomsStyle);
WiFiManager_Portenta_H7->setCustomsHeadElement("<style>html{filter: invert(10%);}</style>");
WiFiManager_Portenta_H7->setCORSHeader("Your Access-Control-Allow-Origin");
While in AP mode, connect to it using itsSSID
(WIFI_GENERIC_XXXXXX) /Password
("MyWIFI_GENERIC_XXXXXX"), then open a browser to the Portal AP IP, default192.168.4.1
, configure wifi then clickSave. The Credentials / WiFi connection information will be saved in non-volatile memory. It will then autoconnect.
Once Credentials / WiFi network information is saved in the host non-volatile memory, it will try to autoconnect to WiFi every time it is started, without requiring any function calls in the sketch.
// Permit input only one set of WiFi SSID/PWD. The other can be "NULL or "blank"// Default is false (if not defined) => must input 2 sets of SSID/PWD#defineREQUIRE_ONE_SET_SSID_PWtrue
But it's always advisable to use and input both sets for reliability.
// Permit input only one set of WiFi SSID/PWD. The other can be "NULL or "blank"// Default is false (if not defined) => must input 2 sets of SSID/PWD#defineREQUIRE_ONE_SET_SSID_PWfalse
#defineSCAN_WIFI_NETWORKStrue
The manual input of SSIDs is default enabled, so that users can input arbitrary SSID, not only from the scanned list. This is for the sample use-cases in which users can input the known SSIDs of another place, then send the boards to that place. The boards can connect to WiFi without users entering Config Portal to re-configure.
// To disable manually input SSID, only from a scanned SSID lists#defineMANUAL_SSID_INPUT_ALLOWEDfalse
This is for normal use-cases in which users can only select an SSID from a scanned list of SSIDs to avoid typo mistakes and/or security.
The maximum number of SSIDs in the list is selectable from 2 to 15 (for ESP8266/ESP32-AT shields, from 2-6). If invalid number of SSIDs is selected, the default number of 10 will be used.
// From 2-15#defineMAX_SSID_IN_LIST8
To define max times to try WiFi per loop() iteration. To avoid blocking issue in loop()
Default is 1 if not defined, and minimum is forced to be 1.
To use, uncomment indefines.h
.
Checkretries block the main loop #18
#defineMAX_NUM_WIFI_RECON_TRIES_PER_LOOP2
Default is no interval between reconnection WiFi times if lost WiFi. Max permitted interval will be 10mins.
Uncomment to use. Be careful, WiFi reconnection will be delayed if using this method.
Only use whenever urgent tasks in loop() can't be delayed. But if so, it's better you have to rewrite your code, e.g. using higher priority tasks.
Checkretries block the main loop #18
#defineWIFI_RECON_INTERVAL30000// 30s
InConfiguration Portal Mode
, it starts an AP calledWIFI_GENERIC_XXXXXX
. Connect to it using theconfigurable password
you can define in the code. For example,MyWIFI_GENERIC_XXXXXX
(see examples):
After you connected, please, go tohttp://192.168.3.1, you'll see thisMain
page:
Enter your credentials,
then clickSave
.
The WiFi Credentials will be saved and the board connect to the selected WiFi AP.
If you're already connected to a listed WiFi AP and don't want to change anything, just selectExit
from theMain
page to reboot the board and connect to the previously-stored AP. The WiFi Credentials are still intact.
- Now you can use special chars such as~, !, @, #, $, %, ^, &, _, -, space,etc. thanks tobrondolin to provide the amazing fix inBlynk_WM to permit input special chars such as% and# into data fields. SeeIssue 3.
- The SSIDs, Passwords must be input (or to make them different fromblank). Otherwise, the Config Portal will re-open until those fields have been changed. If you don't need any field, just input anything or use duplicated data from similar field.
- WiFi password max length now is 63 chars according to WPA2 standard.
See this example and modify as necessary
1. To always loadDefault Credentials and override Config Portal data
// Used mostly for development and debugging. FORCES default values to be loaded each run.// Config Portal data input will be ignored and overridden by DEFAULT_CONFIG_DATAbool LOAD_DEFAULT_CONFIG_DATA =true;
2. To loadDefault Credentials when there is no valid Credentials.
Config Portal data input will be override DEFAULT_CONFIG_DATA
// Used mostly once debugged. Assumes good data already saved in device.// Config Portal data input will be override DEFAULT_CONFIG_DATAbool LOAD_DEFAULT_CONFIG_DATA =false;
3. Example ofDefault Credentials
/// Start Default Config Data ///////////////////*#define SSID_MAX_LEN 32//From v1.0.3, WPA2 passwords can be up to 63 characters long.#define PASS_MAX_LEN 64typedef struct{ char wifi_ssid[SSID_MAX_LEN]; char wifi_pw [PASS_MAX_LEN];} WiFi_Credentials;#define NUM_WIFI_CREDENTIALS 2// Configurable items besides fixed Header, just add board_name#define NUM_CONFIGURABLE_ITEMS ( ( 2 * NUM_WIFI_CREDENTIALS ) + 1 )////////////////typedef struct Configuration{ char header [16]; WiFi_Credentials WiFi_Creds [NUM_WIFI_CREDENTIALS]; char board_name [24]; int checkSum;} WIFI_GENERIC_Configuration;*/#defineTO_LOAD_DEFAULT_CONFIG_DATAfalse#if TO_LOAD_DEFAULT_CONFIG_DATA// This feature is primarily used in development to force a known set of values as Config Data// It will NOT force the Config Portal to activate. Use DRD or erase Config Data with Blynk.clearConfigData()// Used mostly for development and debugging. FORCES default values to be loaded each run.// Config Portal data input will be ignored and overridden by DEFAULT_CONFIG_DATA//bool LOAD_DEFAULT_CONFIG_DATA = true;// Used mostly once debugged. Assumes good data already saved in device.// Config Portal data input will be override DEFAULT_CONFIG_DATAbool LOAD_DEFAULT_CONFIG_DATA =false;WIFI_GENERIC_Configuration defaultConfig ={//char header[16], dummy, not used"Portenta_WIFI",// WiFi_Credentials WiFi_Creds [NUM_WIFI_CREDENTIALS];// WiFi_Credentials.wifi_ssid and WiFi_Credentials.wifi_pw"SSID1","password1","SSID2","password2",//char board_name [24];"Portenta-H7-Control",// terminate the list//int checkSum, dummy, not used0/////////// End Default Config Data /////////////};#elsebool LOAD_DEFAULT_CONFIG_DATA =false;WIFI_GENERIC_Configuration defaultConfig;#endif// TO_LOAD_DEFAULT_CONFIG_DATA/////////// End Default Config Data /////////////
Example ofDefault dynamicParams
- To add custom parameters, just modify the example below
#include"defines.h"// USE_DYNAMIC_PARAMETERS defined in defines.h/////////////// Start dynamic Credentials /////////////////Defined in <WiFiManager_Portenta_H7_Lite.h>/************************************** #define MAX_ID_LEN 5 #define MAX_DISPLAY_NAME_LEN 16 typedef struct { char id [MAX_ID_LEN + 1]; char displayName [MAX_DISPLAY_NAME_LEN + 1]; char *pdata; uint8_t maxlen; } MenuItem;**************************************/#if USE_DYNAMIC_PARAMETERS#defineMAX_BLYNK_SERVER_LEN34#defineMAX_BLYNK_TOKEN_LEN34char Blynk_Server1 [MAX_BLYNK_SERVER_LEN +1] ="account.duckdns.org";char Blynk_Token1 [MAX_BLYNK_TOKEN_LEN +1] ="token1";char Blynk_Server2 [MAX_BLYNK_SERVER_LEN +1] ="account.ddns.net";char Blynk_Token2 [MAX_BLYNK_TOKEN_LEN +1] ="token2";#defineMAX_BLYNK_PORT_LEN6char Blynk_Port [MAX_BLYNK_PORT_LEN +1] ="8080";#defineMAX_MQTT_SERVER_LEN34char MQTT_Server [MAX_MQTT_SERVER_LEN +1] ="mqtt.duckdns.org";MenuItem myMenuItems [] ={ {"sv1","Blynk Server1", Blynk_Server1, MAX_BLYNK_SERVER_LEN }, {"tk1","Token1", Blynk_Token1, MAX_BLYNK_TOKEN_LEN }, {"sv2","Blynk Server2", Blynk_Server2, MAX_BLYNK_SERVER_LEN }, {"tk2","Token2", Blynk_Token2, MAX_BLYNK_TOKEN_LEN }, {"prt","Port", Blynk_Port, MAX_BLYNK_PORT_LEN }, {"mqt","MQTT Server", MQTT_Server, MAX_MQTT_SERVER_LEN },};uint16_t NUM_MENU_ITEMS =sizeof(myMenuItems) /sizeof(MenuItem);//MenuItemSize;#elseMenuItem myMenuItems [] = {};uint16_t NUM_MENU_ITEMS =0;#endif//USE_DYNAMIC_PARAMETERS
- If you don't need to add dynamic parameters, use the following in sketch
#defineUSE_DYNAMIC_PARAMETERSfalse
or
/////////////// Start dynamic Credentials ///////////////MenuItem myMenuItems [] = {};uint16_t NUM_MENU_ITEMS =0;/////// // End dynamic Credentials ///////////
- These ids (such as "mqtt" in example) must beunique.
Please be noted that the followingreserved names are already used in library:
"id" for WiFi SSID"pw" for WiFi PW"id1" for WiFi1 SSID"pw1" for WiFi1 PW"nm" for Board Name
ExamplePortenta_H7_WiFi
Please take a look at other examples, as well.
1. FilePortenta_H7_WiFi.ino
WiFiManager_Portenta_H7_Lite/examples/Portenta_H7_WiFi/Portenta_H7_WiFi.ino
Lines 14 to 147 in572cff4
#ifdef CORE_CM7 | |
#include"defines.h" | |
#include"Credentials.h" | |
#include"dynamicParams.h" | |
WiFiManager_Portenta_H7_Lite* WiFiManager_Portenta_H7; | |
voidheartBeatPrint() | |
{ | |
staticint num =1; | |
// Must use with WiFi.RSSI() to fix bug in the mbed_portenta core | |
//if ( (WiFi.status() == WL_CONNECTED) && (WiFi.RSSI() != 0) ) | |
if ( WiFiManager_Portenta_H7->WiFiConnected() ) | |
Serial.print(F("H"));// H means connected to WiFi | |
else | |
Serial.print(F("F"));// F means not connected to WiFi | |
if (num ==80) | |
{ | |
Serial.println(); | |
num =1; | |
} | |
elseif (num++ %10 ==0) | |
{ | |
Serial.print(F("")); | |
} | |
} | |
voidcheck_status() | |
{ | |
staticunsignedlong checkstatus_timeout =0; | |
//KH | |
#defineHEARTBEAT_INTERVAL20000L | |
// Print hearbeat every HEARTBEAT_INTERVAL (20) seconds. | |
if ((millis() > checkstatus_timeout) || (checkstatus_timeout ==0)) | |
{ | |
heartBeatPrint(); | |
checkstatus_timeout =millis() + HEARTBEAT_INTERVAL; | |
} | |
} | |
#if USING_CUSTOMS_STYLE | |
constchar NewCustomsStyle[]/*PROGMEM*/ ="<style>div,input{padding:5px;font-size:1em;}input{width:95%;}body{text-align: center;}\ | |
button{background-color:blue;color:white;line-height:2.4rem;font-size:1.2rem;width:100%;}fieldset{border-radius:0.3rem;margin:0px;}</style>"; | |
#endif | |
voidsetup() | |
{ | |
// Debug console | |
Serial.begin(115200); | |
while (!Serial &&millis() <5000); | |
delay(1000); | |
Serial.print(F("\nStart Portenta_H7_WiFi on")); Serial.print(BOARD_NAME); | |
Serial.print(F(" with")); Serial.println(SHIELD_TYPE); | |
Serial.println(WIFIMULTI_GENERIC_VERSION); | |
Serial.println(WIFI_MANAGER_PORTENTA_H7_LITE_VERSION); | |
WiFiManager_Portenta_H7 =newWiFiManager_Portenta_H7_Lite(); | |
// Optional to change default AP IP(192.168.4.1) and channel(10) | |
//WiFiManager_Portenta_H7->setConfigPortalIP(IPAddress(192, 168, 120, 1)); | |
WiFiManager_Portenta_H7->setConfigPortalChannel(0); | |
#if USING_CUSTOMS_STYLE | |
WiFiManager_Portenta_H7->setCustomsStyle(NewCustomsStyle); | |
#endif | |
#if USING_CUSTOMS_HEAD_ELEMENT | |
WiFiManager_Portenta_H7->setCustomsHeadElement("<style>html{filter: invert(10%);}</style>"); | |
#endif | |
#if USING_CORS_FEATURE | |
WiFiManager_Portenta_H7->setCORSHeader("Your Access-Control-Allow-Origin"); | |
#endif | |
// Set customized DHCP HostName | |
WiFiManager_Portenta_H7->begin(HOST_NAME); | |
//Or use default Hostname "-WIFI-XXXXXX" | |
//WiFiManager_Portenta_H7->begin(); | |
} | |
#if USE_DYNAMIC_PARAMETERS | |
voiddisplayCredentials() | |
{ | |
Serial.println(F("\nYour stored Credentials :")); | |
for (uint16_t i =0; i < NUM_MENU_ITEMS; i++) | |
{ | |
Serial.print(myMenuItems[i].displayName); | |
Serial.print(F(" =")); | |
Serial.println(myMenuItems[i].pdata); | |
} | |
} | |
voiddisplayCredentialsInLoop() | |
{ | |
staticbool displayedCredentials =false; | |
if (!displayedCredentials) | |
{ | |
for (int i =0; i < NUM_MENU_ITEMS; i++) | |
{ | |
if (!strlen(myMenuItems[i].pdata)) | |
{ | |
break; | |
} | |
if ( i == (NUM_MENU_ITEMS -1) ) | |
{ | |
displayedCredentials =true; | |
displayCredentials(); | |
} | |
} | |
} | |
} | |
#endif | |
voidloop() | |
{ | |
WiFiManager_Portenta_H7->run(); | |
check_status(); | |
#if USE_DYNAMIC_PARAMETERS | |
displayCredentialsInLoop(); | |
#endif | |
} | |
#endif |
2. Filedefines.h
WiFiManager_Portenta_H7_Lite/examples/Portenta_H7_WiFi/defines.h
Lines 13 to 133 in572cff4
#ifndefdefines_h | |
#definedefines_h | |
#defineUSING_MBED_PORTENTA_CORE_2_7_2 false | |
/* Comment this out to disable prints and save space */ | |
#defineDEBUG_WIFI_WEBSERVER_PORT Serial | |
#defineWIFI_GENERIC_DEBUG_OUTPUT Serial | |
#define_WIFI_GENERIC_LOGLEVEL_ 1 | |
#defineDRD_GENERIC_DEBUG true | |
#if ( ( defined(ARDUINO_PORTENTA_H7_M7)|| defined(ARDUINO_PORTENTA_H7_M4) )&& defined(ARDUINO_ARCH_MBED) ) | |
#warning Use MBED ARDUINO_PORTENTA_H7 and LittleFS | |
#if defined(BOARD_NAME) | |
#undef BOARD_NAME | |
#endif | |
#if defined(CORE_CM7) | |
#warning Using Portenta H7 M7 core | |
#defineBOARD_NAME "PORTENTA_H7_M7" | |
#else | |
#warning Using Portenta H7 M4 core | |
#defineBOARD_NAME "PORTENTA_H7_M4" | |
#endif | |
#else | |
#error This code is intended to run on the MBED ARDUINO_PORTENTA_H7 platform! Please check your Tools->Board setting. | |
#endif | |
///////////////////////////////////////////// | |
// You have to select true for the first time for any board | |
#defineFORCE_REFORMAT false | |
///////////////////////////////////////////// | |
// To use the default WiFi library here | |
#defineUSE_WIFI_NINA false | |
#defineUSE_WIFI_CUSTOM false | |
///////////////////////////////////////////// | |
// Add customs headers | |
#defineUSING_CUSTOMS_STYLE true | |
#defineUSING_CUSTOMS_HEAD_ELEMENT true | |
#defineUSING_CORS_FEATURE true | |
///////////////////////////////////////////// | |
#defineSHIELD_TYPE "Portenta_H7 WiFi" | |
#warning Using Portenta WiFi.h Library defined in WiFiWebServer Library. | |
///////////////////////////////////////////// | |
// Permit running CONFIG_TIMEOUT_RETRYTIMES_BEFORE_RESET times before reset hardware | |
// to permit user another chance to config. Only if Config Data is valid. | |
// If Config Data is invalid, this has no effect as Config Portal will persist | |
#defineRESET_IF_CONFIG_TIMEOUT true | |
// Permitted range of user-defined RETRY_TIMES_RECONNECT_WIFI between 2-5 times | |
#defineRETRY_TIMES_RECONNECT_WIFI 3 | |
// Permitted range of user-defined CONFIG_TIMEOUT_RETRYTIMES_BEFORE_RESET between 2-100 | |
#defineCONFIG_TIMEOUT_RETRYTIMES_BEFORE_RESET 5 | |
// Config Timeout 120s (default 60s). Applicable only if Config Data is Valid | |
#defineCONFIG_TIMEOUT 120000L | |
///////////////////////////////////////////// | |
// Permit input only one set of WiFi SSID/PWD. The other can be "NULL or "blank" | |
// Default is false (if not defined) => must input 2 sets of SSID/PWD | |
#defineREQUIRE_ONE_SET_SSID_PW true //false | |
// Max times to try WiFi per loop() iteration. To avoid blocking issue in loop() | |
// Default 1 if not defined, and minimum 1. | |
//#define MAX_NUM_WIFI_RECON_TRIES_PER_LOOP 2 | |
// Default no interval between recon WiFi if lost | |
// Max permitted interval will be 10mins | |
// Uncomment to use. Be careful, WiFi reconnect will be delayed if using this method | |
// Only use whenever urgent tasks in loop() can't be delayed. But if so, it's better you have to rewrite your code, e.g. using higher priority tasks. | |
#defineWIFI_RECON_INTERVAL 30000 | |
///////////////////////////////////////////// | |
#defineUSE_DYNAMIC_PARAMETERS true | |
///////////////////////////////////////////// | |
#defineSCAN_WIFI_NETWORKS false //true | |
// To be able to manually input SSID, not from a scanned SSID lists | |
#defineMANUAL_SSID_INPUT_ALLOWED true | |
///////////////////////////////////////////// | |
// From 2-15 | |
#defineMAX_SSID_IN_LIST 8 | |
///////////////////////////////////////////// | |
#defineUSE_WIFI_PORTENTA_H7 true | |
#include<WiFiManager_Portenta_H7_Lite.h> | |
#defineHOST_NAME "Portenta-Controller" | |
#if defined(LED_BUILTIN) | |
#defineLED_PIN LED_BUILTIN | |
#elif defined(LEDB) | |
#defineLED_PIN LEDB | |
#else | |
#defineLED_PIN 13 | |
#endif | |
#endif//defines_h |
3. FileCredentials.h
#ifndefCredentials_h | |
#defineCredentials_h | |
#include"defines.h" | |
/// Start Default Config Data ////////////////// | |
/* | |
#define SSID_MAX_LEN 32 | |
//From v1.0.3, WPA2 passwords can be up to 63 characters long. | |
#define PASS_MAX_LEN 64 | |
typedef struct | |
{ | |
char wifi_ssid[SSID_MAX_LEN]; | |
char wifi_pw [PASS_MAX_LEN]; | |
} WiFi_Credentials; | |
#define NUM_WIFI_CREDENTIALS 2 | |
// Configurable items besides fixed Header, just add board_name | |
#define NUM_CONFIGURABLE_ITEMS ( ( 2 * NUM_WIFI_CREDENTIALS ) + 1 ) | |
//////////////// | |
typedef struct Configuration | |
{ | |
char header [16]; | |
WiFi_Credentials WiFi_Creds [NUM_WIFI_CREDENTIALS]; | |
char board_name [24]; | |
int checkSum; | |
} WIFI_GENERIC_Configuration; | |
*/ | |
#defineTO_LOAD_DEFAULT_CONFIG_DATA false | |
#ifTO_LOAD_DEFAULT_CONFIG_DATA | |
// This feature is primarily used in development to force a known set of values as Config Data | |
// It will NOT force the Config Portal to activate. Use DRD or erase Config Data with Blynk.clearConfigData() | |
// Used mostly for development and debugging. FORCES default values to be loaded each run. | |
// Config Portal data input will be ignored and overridden by DEFAULT_CONFIG_DATA | |
//bool LOAD_DEFAULT_CONFIG_DATA = true; | |
// Used mostly once debugged. Assumes good data already saved in device. | |
// Config Portal data input will be override DEFAULT_CONFIG_DATA | |
boolLOAD_DEFAULT_CONFIG_DATA= false; | |
WIFI_GENERIC_ConfigurationdefaultConfig= | |
{ | |
//char header[16], dummy, not used | |
"Portenta_WIFI", | |
// WiFi_Credentials WiFi_Creds [NUM_WIFI_CREDENTIALS]; | |
// WiFi_Credentials.wifi_ssid and WiFi_Credentials.wifi_pw | |
"SSID1","password1", | |
"SSID2","password2", | |
//char board_name [24]; | |
"Portenta-H7-Control", | |
// terminate the list | |
//int checkSum, dummy, not used | |
0 | |
/////////// End Default Config Data ///////////// | |
}; | |
#else | |
boolLOAD_DEFAULT_CONFIG_DATA= false; | |
WIFI_GENERIC_ConfigurationdefaultConfig; | |
#endif// TO_LOAD_DEFAULT_CONFIG_DATA | |
/////////// End Default Config Data ///////////// | |
#endif//Credentials_h |
4. FiledynamicParams.h
#ifndefdynamicParams_h | |
#definedynamicParams_h | |
#include"defines.h" | |
// USE_DYNAMIC_PARAMETERS defined in defined.h | |
/////////////// Start dynamic Credentials /////////////// | |
//Defined in <WiFiManager_Portenta_H7_Lite.h> | |
/************************************** | |
#define MAX_ID_LEN 5 | |
#define MAX_DISPLAY_NAME_LEN 16 | |
typedef struct | |
{ | |
char id [MAX_ID_LEN + 1]; | |
char displayName [MAX_DISPLAY_NAME_LEN + 1]; | |
char *pdata; | |
uint8_t maxlen; | |
} MenuItem; | |
**************************************/ | |
#ifUSE_DYNAMIC_PARAMETERS | |
#defineMAX_BLYNK_SERVER_LEN 34 | |
#defineMAX_BLYNK_TOKEN_LEN 34 | |
charBlynk_Server1 [MAX_BLYNK_SERVER_LEN+1]="account.duckdns.org"; | |
charBlynk_Token1 [MAX_BLYNK_TOKEN_LEN+1]="token1"; | |
charBlynk_Server2 [MAX_BLYNK_SERVER_LEN+1]="account.ddns.net"; | |
charBlynk_Token2 [MAX_BLYNK_TOKEN_LEN+1]="token2"; | |
#defineMAX_BLYNK_PORT_LEN 6 | |
charBlynk_Port [MAX_BLYNK_PORT_LEN+1]="8080"; | |
#defineMAX_MQTT_SERVER_LEN 34 | |
charMQTT_Server [MAX_MQTT_SERVER_LEN+1]="mqtt.duckdns.org"; | |
MenuItemmyMenuItems []= | |
{ | |
{"sv1","Blynk Server1",Blynk_Server1,MAX_BLYNK_SERVER_LEN }, | |
{"tk1","Token1",Blynk_Token1,MAX_BLYNK_TOKEN_LEN }, | |
{"sv2","Blynk Server2",Blynk_Server2,MAX_BLYNK_SERVER_LEN }, | |
{"tk2","Token2",Blynk_Token2,MAX_BLYNK_TOKEN_LEN }, | |
{"prt","Port",Blynk_Port,MAX_BLYNK_PORT_LEN }, | |
{"mqt","MQTT Server",MQTT_Server,MAX_MQTT_SERVER_LEN }, | |
}; | |
uint16_tNUM_MENU_ITEMS=sizeof(myMenuItems) /sizeof(MenuItem);//MenuItemSize; | |
#else | |
MenuItemmyMenuItems []= {}; | |
uint16_tNUM_MENU_ITEMS=0; | |
#endif//USE_DYNAMIC_PARAMETERS | |
#endif//dynamicParams_h |
This is the terminal output when runningPortenta_H7_WiFi example onPortenta_H7:
Start Portenta_H7_WiFi on PORTENTA_H7_M7 with Portenta_H7 WiFiWiFiMulti_Generic v1.1.1WiFiManager_Portenta_H7_Lite v1.6.0[WG] Hostname=Portenta-ControllerFlash Size: (KB) = 2048.00FlashIAP Start Address: = 0x80A0000LittleFS size (KB) = 1280.00LittleFS Mount OKLittleFS Flag read = 0xd0d04321Flag read = 0xd0d04321No doubleResetDetectedSaving DOUBLERESETDETECTOR_FLAG to DRD file : 0xd0d01234Saving DRD file OKLittleFS Flag read = 0xd0d04321ClearFlag write = 0xd0d04321[WG] Double Reset Detected[WG] CCSum=0x1467,RCSum=0x1467[WG] CrCCsum=0x1981,CrRCsum=0x1981[WG] Valid Stored Dynamic Data[WG] ======= Start Stored Config Data =======[WG] Hdr=PORTENTA-H7-WIFI,SSID=HueNet1,PW=12345678[WG] SSID1=HueNet2,PW1=12345678[WG] BName=Portenta_H7[WG] i=0,id=sv1,data=account.duckdns.org[WG] i=1,id=tk1,data=token1[WG] i=2,id=sv2,data=account.ddns.net[WG] i=3,id=tk2,data=token2[WG] i=4,id=prt,data=8080[WG] i=5,id=mqt,data=mqtt.duckdns.org[WG] bg: isForcedConfigPortal = false[WG] bg:Stay forever in CP:DRD/MRD[WG] clearForcedCP[WG] SaveCPFile [WG] OK[WG] SSID=WIFI_GENERIC_51F485,PW=MyWIFI_GENERIC_51F485[WG] IP=192.168.3.1,CH=5FYour stored Credentials :Blynk Server1 = account.duckdns.orgToken1 = token1Blynk Server2 = account.ddns.netToken2 = token2Port = 8080MQTT Server = mqtt.duckdns.orgFFFFF[WG] h:UpdLittleFS[WG] h:Rst
Start Portenta_H7_WiFi on PORTENTA_H7_M7 with Portenta_H7 WiFiWiFiMulti_Generic v1.1.1WiFiManager_Portenta_H7_Lite v1.6.0[WG] Hostname=Portenta-ControllerFlash Size: (KB) = 2048.00FlashIAP Start Address: = 0x80A0000LittleFS size (KB) = 1280.00LittleFS Mount OKLittleFS Flag read = 0xd0d04321Flag read = 0xd0d04321No doubleResetDetectedSaving DOUBLERESETDETECTOR_FLAG to DRD file : 0xd0d01234Saving DRD file OKSetFlag write = 0xd0d01234[WG] CCSum=0x1467,RCSum=0x1467[WG] CrCCsum=0x1981,CrRCsum=0x1981[WG] Valid Stored Dynamic Data[WG] ======= Start Stored Config Data =======[WG] Hdr=PORTENTA-H7-WIFI,SSID=HueNet1,PW=12345678[WG] SSID1=HueNet2,PW1=12345678[WG] BName=Portenta_H7[WG] i=0,id=sv1,data=account.duckdns.org[WG] i=1,id=tk1,data=token1[WG] i=2,id=sv2,data=account.ddns.net[WG] i=3,id=tk2,data=token2[WG] i=4,id=prt,data=8080[WG] i=5,id=mqt,data=mqtt.duckdns.org[WG] WiFi connected after time: 1[WG] SSID:HueNet1,RSSI=-45[WG] IP address:192.168.2.105[WG] b:WOKStop doubleResetDetectingSaving to DRD file : 0xd0d04321Saving DRD file OKLittleFS Flag read = 0xd0d04321ClearFlag write = 0xd0d04321HYour stored Credentials :Blynk Server1 = account.duckdns.orgToken1 = token1Blynk Server2 = account.ddns.netToken2 = token2Port = 8080MQTT Server = mqtt.duckdns.orgH[WG] r:Check&WLost <====== WiFi Lost, and auto-reconnected[WG] r:WLost.ReconW[WG] WiFi connected after time: 1[WG] SSID:HueNet2,RSSI=-55[WG] IP address:192.168.2.105[WG] r:WOKH
This is the terminal output when runningPortenta_H7_WiFi_MQTT example onPortenta_H7:
Start Portenta_H7_WiFi_MQTT on PORTENTA_H7_M7 with Portenta_H7 WiFiWiFiMulti_Generic v1.1.1WiFiManager_Portenta_H7_Lite v1.6.0[WG] Hostname=Portenta-MQTTFlash Size: (KB) = 2048.00FlashIAP Start Address: = 0x80A0000LittleFS size (KB) = 1280.00LittleFS Mount OKLittleFS Flag read = 0xd0d04321Flag read = 0xd0d04321No doubleResetDetectedSaving DOUBLERESETDETECTOR_FLAG to DRD file : 0xd0d01234Saving DRD file OKSetFlag write = 0xd0d01234[WG] Invalid Stored WiFi Config Data[WG] bg: isForcedConfigPortal = false[WG] bg:Stay forever in CP:No ConfigDat[WG] clearForcedCP[WG] SaveCPFile [WG] OK[WG] SSID=WIFI_GENERIC_51F485,PW=MyWIFI_GENERIC_51F485[WG] IP=192.168.3.1,CH=9Stop doubleResetDetectingSaving to DRD file : 0xd0d04321Saving DRD file OKLittleFS Flag read = 0xd0d04321ClearFlag write = 0xd0d04321NYour stored Credentials :AIO_SERVER = io.adafruit.comAIO_SERVERPORT = 1883AIO_USERNAME = privateAIO_KEY = privateAIO_PUB_TOPIC = /feeds/TemperatureAIO_SUB_TOPIC = /feeds/LED_ControlNNNN NNNNN NNNNN NNNNN NNNNN NNNNN NNNNN NN
Start Portenta_H7_WiFi_MQTT on PORTENTA_H7_M7 with Portenta_H7 WiFiWiFiMulti_Generic v1.1.1WiFiManager_Portenta_H7_Lite v1.6.0[WG] Hostname=Portenta-MQTTFlash Size: (KB) = 2048.00FlashIAP Start Address: = 0x80A0000LittleFS size (KB) = 1280.00LittleFS Mount OKLittleFS Flag read = 0xd0d04321Flag read = 0xd0d04321No doubleResetDetectedSaving DOUBLERESETDETECTOR_FLAG to DRD file : 0xd0d01234Saving DRD file OKSetFlag write = 0xd0d01234[WG] CCSum=0x160c,RCSum=0x160c[WG] CrCCsum=0x2236,CrRCsum=0x2236[WG] Valid Stored Dynamic Data[WG] ======= Start Stored Config Data =======[WG] Hdr=PORTENTA-H7-WIFI,SSID=HueNet1,PW=12345678[WG] SSID1=HueNet2,PW1=12345678[WG] BName=Portenta_H7_MQTT[WG] i=0,id=svr,data=io.adafruit.com[WG] i=1,id=prt,data=1883[WG] i=2,id=usr,data=user_name[WG] i=3,id=key,data=aio_key[WG] i=4,id=pub,data=/feeds/Temperature[WG] i=5,id=sub,data=/feeds/LED_Control[WG] con2WF:SSID=HueNet1,PW=12345678[WG] con2WF:OK[WG] IP=192.168.2.130[WG] SSID=HueNet1,RSSI=-44[WG] IP=192.168.2.130[WG] b:WOKStop doubleResetDetectingSaving to DRD file : 0xd0d04321Saving DRD file OKLittleFS Flag read = 0xd0d04321ClearFlag write = 0xd0d04321Creating new WiFi client object OKCreating new MQTT object OKAIO_SERVER = io.adafruit.com, AIO_SERVERPORT = 1883AIO_USERNAME = user_name, AIO_KEY = aio_keyCreating new MQTT_Pub_Topic, Temperature = user_name/feeds/TemperatureCreating new Temperature object OKTemperature MQTT_Pub_Topic = user_name/feeds/TemperatureCreating new AIO_SUB_TOPIC, LED_Control = user_name/feeds/LED_ControlCreating new LED_Control object OKLED_Control AIO_SUB_TOPIC = user_name/feeds/LED_ControlConnecting to WiFi MQTT (3 attempts)...WiFi MQTT connection successful!TWYour stored Credentials :AIO_SERVER = io.adafruit.comAIO_SERVERPORT = 1883AIO_USERNAME = user_nameAIO_KEY = aio_keyAIO_PUB_TOPIC = /feeds/TemperatureAIO_SUB_TOPIC = /feeds/LED_ControlTWTWTWTW TWTWTW
Debug is enabled by default on Serial. To disable, add at the beginning of sketch
/* Comment this out to disable prints and save space*/#defineDEBUG_WIFI_WEBSERVER_PORT Serial#defineWIFI_GENERIC_DEBUG_OUTPUT Serial#define_WIFI_GENERIC_LOGLEVEL_4#defineDRD_GENERIC_DEBUGtrue
If you get compilation errors, more often than not, you may need to install a newer version of the board's core, or this library version.
Sometimes, the library will only work if you update theWiFi module/shield
firmware to the newer or older version because some function compatibility.
Submit issues to:WiFiManager_Portenta_H7_Lite issues
- Support more boards, shields and libraries
- Bug Searching and Killing
- Add support toPortenta_H7 built-in Murata WiFi using
ArduinoCore-mbed mbed_portenta core
- More flexible to configure reconnection timeout.
- For fresh config data, don't need to wait for connecting timeout before entering config portal.
- If the config data not entered completely (SSIDs, Passwords, etc.), entering config portal
- Add configurable Config Portal IP, SSID and Password
- Change Synch XMLHttpRequest to Async
- Add configurable Static IP, GW, Subnet Mask and 2 DNS Servers' IP Addresses.
- Add checksums
- Add MultiWiFi features with auto(re)connect
- Easy-to-useDynamic Parameters without the necessity to write complicated ArduinoJSon functions
- Permit to input special chars such as% and# into data fields.
- Default Credentials and dynamic parameters
- DoubleDetectDetector to force Config Portal when double reset is detected within predetermined time, default 10s.
- Configurable Config Portal Title
- Re-structure all examples to separate Credentials / Defines / Dynamic Params / Code so that you can change Credentials / Dyamic Params quickly for each device.
- Add Table of Contents and Version String
- ConfigurableCustoms HTML Headers, including Customs Style, Customs Head Elements, CORS Header
- Add functions to control Config Portal from software or Virtual Switches.
- Permit optionally inputting one set of WiFi SSID/PWD by using
REQUIRE_ONE_SET_SSID_PW == true
- Enforce WiFi Password minimum length of 8 chars
- Enablescan of WiFi networks for selection in Configuration Portal
- Add
LibraryPatches
forAdafruit_MQTT_Library to fix compiler error for Portenta_H7, RP2040-based and many other boards. - Fix the blocking issue in loop() with configurable
WIFI_RECON_INTERVAL
- Workaround for core WiFi.status() bug, which does not detect WiFi lost.
- UseWiFiMulti_Generic library to connect to the best ofmulti-WiFi APs, withauto-checking / auto-reconnecting features when WiFi connection is lost
- Rewrite for new mbed_portenta core v3.0.1+
- Add
lib_ldf_mode = chain+
inplatformio.ini
Please help contribute to this project and add your name here.
- Again thanks toMichael H. "bizprof" for the impressive feature being usd in this library :
Enable scan of WiFi networks for selection in Configuration Portal
. CheckPR for v1.3.0 - Enable scan of WiFi networks #10
- Thanks totomtobback to report issueretries block the main loop #18 leading to version v1.5.0 to fix the blocking issue in loop() with
WIFI_RECON_INTERVAL
.
![]() ⭐️⭐️ Michael H. "bizprof" | ![]() tomtobback |
If you want to contribute to this project:
- Report bugs and errors
- Ask for enhancements
- Create issues and pull requests
- Tell other people about this library
- The library is licensed underMIT
Copyright 2021- Khoi Hoang - Michale H.
About
Library to configure MultiWiFi/Credentials at runtime for Portenta_H7 boards, using built-in WiFi (Murata) modules/shields. You can also specify DHCP HostName, static AP and STA IP. Use much less memory compared to full-fledge WiFiManager. Config Portal will be auto-adjusted to match the number of dynamic custom parameters. Optional default Cred…
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.