You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 29, 2023. It is now read-only.
### Major Release v1.3.0
1. Enable scan of WiFi networks for selection in Configuration Portal. Check [PR for v1.3.0 - Enable scan of WiFi networks #10](#10). Now you can select optional **SCAN_WIFI_NETWORKS**, **MANUAL_SSID_INPUT_ALLOWED** to be able to manually input SSID, not only from a scanned SSID lists and **MAX_SSID_IN_LIST** (from 2-15)
2. Minor enhancement to not display garbage when data is invalid
*[ 9. To use custom Head Elements](#9-to-use-custom-head-elements)
56
61
*[10. To use CORS Header](#10-to-use-cors-header)
57
62
*[11. To use and input only one set of WiFi SSID and PWD](#11-to-use-and-input-only-one-set-of-wifi-ssid-and-pwd)
63
+
*[11.1 If you need to use and input only one set of WiFi SSID/PWD](#111-if-you-need-to-use-both-sets-of-wifi-ssidpwd)
64
+
*[11.2 If you need to use both sets of WiFi SSID/PWD](#112-disable-manually-input-ssids)
65
+
*[12. To enable auto-scan of WiFi networks for selection in Configuration Portal](#12-to-enable-auto-scan-of-wifi-networks-for-selection-in-configuration-portal)
66
+
*[12.1 Enable auto-scan of WiFi networks for selection in Configuration Portal](#121-enable-auto-scan-of-wifi-networks-for-selection-in-configuration-portal)
- Configurable **Config Portal Title** to be either BoardName or default undistinguishable names.
135
146
- Examples are redesigned to separate Credentials / Defines / Dynamic Params / Code so that you can change Credentials / Dynamic Params quickly for each device.
136
147
- Configurable **Customs HTML Headers**, including Customs Style, Customs Gead Elements, CORS Header.
148
+
-**Scan WiFi networks** for selection in Configuration Portal
149
+
137
150
138
151
#### Currently supported Boards
139
152
@@ -179,6 +192,11 @@ This [**WiFiManager_NINA_Lite** library](https://github.com/khoih-prog/WiFiManag
179
192
180
193
## Changelog
181
194
195
+
### Major Release v1.3.0
196
+
197
+
1. Enable scan of WiFi networks for selection in Configuration Portal. Check [PR for v1.3.0 - Enable scan of WiFi networks #10](https://github.com/khoih-prog/WiFiManager_NINA_Lite/pull/10). Now you can select optional **SCAN_WIFI_NETWORKS**, **MANUAL_SSID_INPUT_ALLOWED** to be able to manually input SSID, not only from a scanned SSID lists and **MAX_SSID_IN_LIST** (from 2-15)
198
+
2. Minor enhancement to not display garbage when data is invalid
199
+
182
200
### Release v1.2.0
183
201
184
202
1. Permit optionally inputting one set of WiFi SSID/PWD by using `REQUIRE_ONE_SET_SSID_PW == true`
@@ -423,6 +441,30 @@ This file must be copied into the directory:
you have to copy the files [stm32f4xx_hal_conf_default.h](Packages_Patches/STM32/hardware/stm32/1.9.0/system/STM32F4xx) and [stm32f7xx_hal_conf_default.h](Packages_Patches/STM32/hardware/stm32/1.9.0/system/STM32F7xx) into STM32 stm32 directory (~/.arduino15/packages/STM32/hardware/stm32/1.9.0/system) to overwrite the old files.
453
+
454
+
Supposing the STM32 stm32 core version is 1.9.0. These files must be copied into the directory:
455
+
456
+
-`~/.arduino15/packages/STM32/hardware/stm32/1.9.0/system/STM32F4xx/stm32f4xx_hal_conf_default.h` for STM32F4.
457
+
-`~/.arduino15/packages/STM32/hardware/stm32/1.9.0/system/STM32F7xx/stm32f7xx_hal_conf_default.h` for Nucleo-144 STM32F7.
458
+
459
+
Whenever a new version is installed, remember to copy this file into the new version directory. For example, new version is x.yy.zz,
460
+
theses files must be copied into the corresponding directory:
**To use Serial1 on some STM32 boards without Serial1 definition (Nucleo-144 NUCLEO_F767ZI, Nucleo-64 NUCLEO_L053R8, etc.) boards**, you have to copy the files [STM32 variant.h](Packages_Patches/STM32/hardware/stm32/1.9.0) into STM32 stm32 directory (~/.arduino15/packages/STM32/hardware/stm32/1.9.0). You have to modify the files corresponding to your boards, this is just an illustration how to do.
427
469
428
470
Supposing the STM32 stm32 core version is 1.9.0. These files must be copied into the directory:
@@ -621,7 +663,7 @@ Once Credentials / WiFi network information is saved in the host non-volatile me
621
663
622
664
#### 11. To use and input only one set of WiFi SSID and PWD
623
665
624
-
#### 11.1 If you need to use and input only one set of WiFi SSID/PWD.
666
+
#### 11.1 If you need to use and input only one set of WiFi SSID/PWD
625
667
626
668
```
627
669
// Permit input only one set of WiFi SSID/PWD. The other can be "NULL or "blank"
@@ -638,6 +680,39 @@ But it's always advisable to use and input both sets for reliability.
638
680
#define REQUIRE_ONE_SET_SSID_PW false
639
681
```
640
682
683
+
#### 12. To enable auto-scan of WiFi networks for selection in Configuration Portal
684
+
685
+
#### 12.1 Enable auto-scan of WiFi networks for selection in Configuration Portal
686
+
687
+
688
+
```
689
+
#define SCAN_WIFI_NETWORKS true
690
+
```
691
+
692
+
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.
693
+
694
+
#### 12.2 Disable manually input SSIDs
695
+
696
+
```
697
+
// To disable manually input SSID, only from a scanned SSID lists
698
+
#define MANUAL_SSID_INPUT_ALLOWED false
699
+
```
700
+
701
+
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.
702
+
703
+
#### 12.3 Select maximum number of SSIDs in the list
704
+
705
+
The maximum number of SSIDs in the list is seletable from 2 to 15. If invalid number of SSIDs is selected, the default number of 10 will be used.
706
+
707
+
708
+
```
709
+
// From 2-15
710
+
#define MAX_SSID_IN_LIST 8
711
+
712
+
/////////////////////////////////////////////
713
+
```
714
+
715
+
641
716
---
642
717
---
643
718
@@ -668,12 +743,23 @@ After you connected, please, go to http://192.168.4.1 or newly configured AP IP,
#define SHIELD_TYPE "WiFiNINA using WiFiNINA_Generic Library"
1132
-
1133
-
#include "WiFiNINA_Pinout_Generic.h"
1134
1218
1219
+
#include "WiFiNINA_Pinout_Generic.h"
1220
+
1135
1221
#elif USE_WIFI101
1136
1222
1137
1223
#if defined(USE_WIFI_NINA)
1138
1224
#undef USE_WIFI_NINA
1139
1225
#endif
1140
1226
1141
1227
#define USE_WIFI_NINA false
1142
-
1228
+
1143
1229
#define SHIELD_TYPE "WINC1500 using WiFi101 Library"
1144
1230
#warning Using WiFi101 Library
1145
1231
@@ -1156,31 +1242,51 @@ void loop()
1156
1242
#endif
1157
1243
1158
1244
#define USE_WIFI101 false
1159
-
1245
+
1160
1246
#define SHIELD_TYPE "Custom using Custom WiFi Library"
1161
1247
#warning Using Custom WiFi Library. You must include here or compile error
1162
-
1248
+
1163
1249
#else
1164
1250
1165
1251
#define SHIELD_TYPE "Default WiFi using WiFi Library"
1166
1252
#warning Using fallback WiFi.h Library defined in WiFiWebServer Library.
1167
-
1253
+
1168
1254
#endif
1169
1255
1170
1256
/////////////////////////////////////////////
1171
1257
1172
-
// Force some params in Blynk, only valid for library version 1.0.1 and later
1173
-
#define TIMEOUT_RECONNECT_WIFI 10000L
1258
+
// Permit running CONFIG_TIMEOUT_RETRYTIMES_BEFORE_RESET times before reset hardware
1259
+
// to permit user another chance to config. Only if Config Data is valid.
1260
+
// If Config Data is invalid, this has no effect as Config Portal will persist
1174
1261
#define RESET_IF_CONFIG_TIMEOUT true
1262
+
1263
+
// Permitted range of user-defined RETRY_TIMES_RECONNECT_WIFI between 2-5 times
1264
+
#define RETRY_TIMES_RECONNECT_WIFI 3
1265
+
1266
+
// Permitted range of user-defined CONFIG_TIMEOUT_RETRYTIMES_BEFORE_RESET between 2-100
1175
1267
#define CONFIG_TIMEOUT_RETRYTIMES_BEFORE_RESET 5
1176
1268
1177
-
// Config Timeout 120s (default 60s)
1269
+
// Config Timeout 120s (default 60s). Applicable only if Config Data is Valid
1178
1270
#define CONFIG_TIMEOUT 120000L
1179
1271
1272
+
// Permit input only one set of WiFi SSID/PWD. The other can be "NULL or "blank"
1273
+
// Default is false (if not defined) => must input 2 sets of SSID/PWD
1274
+
#define REQUIRE_ONE_SET_SSID_PW true
1275
+
1180
1276
#define USE_DYNAMIC_PARAMETERS true
1181
1277
1182
1278
/////////////////////////////////////////////
1183
1279
1280
+
#define SCAN_WIFI_NETWORKS true
1281
+
1282
+
// To be able to manually input SSID, not from a scanned SSID lists
1283
+
#define MANUAL_SSID_INPUT_ALLOWED true
1284
+
1285
+
// From 2-15
1286
+
#define MAX_SSID_IN_LIST 8
1287
+
1288
+
/////////////////////////////////////////////
1289
+
1184
1290
#include <WiFiManager_NINA_Lite_SAMD.h>
1185
1291
1186
1292
#define HOST_NAME "SAMD-Master-Controller"
@@ -1351,7 +1457,7 @@ This is the terminal output when running [**SAMD_WiFiNINA**](examples/SAMD_WiFiN
1351
1457
1352
1458
```
1353
1459
Starting SAMD_WiFiNINA on SAMD NANO_33_IOT
1354
-
WiFiManager_NINA_Lite v1.2.0
1460
+
WiFiManager_NINA_Lite v1.3.0
1355
1461
[WN] Hostname=SAMD-Master-Controller
1356
1462
Flag read = 0xffffffff
1357
1463
No doubleResetDetected
@@ -1403,7 +1509,7 @@ FFFFFFFFF
1403
1509
1404
1510
```
1405
1511
Start SAMD_WiFiNINA on SAMD NANO_33_IOT
1406
-
WiFiManager_NINA_Lite v1.2.0
1512
+
WiFiManager_NINA_Lite v1.3.0
1407
1513
[WN] Hostname=SAMD-WIFININA51F485
1408
1514
[WN] CrCCSum=44880,CrRCSum=-1
1409
1515
[WN] CCSum=53040,RCSum=-1
@@ -1450,7 +1556,7 @@ FFFFFFFFF
1450
1556
1451
1557
```
1452
1558
Start SAMD_WiFiNINA on SAMD NANO_33_IOT
1453
-
WiFiManager_NINA_Lite v1.2.0
1559
+
WiFiManager_NINA_Lite v1.3.0
1454
1560
[WN] Hostname=SAMD-Master-Controller
1455
1561
Flag read = 0xd0d04321
1456
1562
No doubleResetDetected
@@ -1527,7 +1633,7 @@ HHHHHHHHHH HHHHHHHHHH
1527
1633
1528
1634
```
1529
1635
Start SAMD_WiFiNINA on SAMD NANO_33_IOT
1530
-
WiFiManager_NINA_Lite v1.2.0
1636
+
WiFiManager_NINA_Lite v1.3.0
1531
1637
[WN] Hostname=SAMD-Master-Controller
1532
1638
Flag read = 0xd0d04321
1533
1639
No doubleResetDetected
@@ -1591,7 +1697,7 @@ FF
1591
1697
1592
1698
```
1593
1699
Start SAMD_WiFiNINA on SAMD NANO_33_IOT
1594
-
WiFiManager_NINA_Lite v1.2.0
1700
+
WiFiManager_NINA_Lite v1.3.0
1595
1701
[WN] Hostname=SAMD-Master-Controller
1596
1702
Flag read = 0xd0d04321
1597
1703
No doubleResetDetected
@@ -1647,7 +1753,7 @@ HHHHHHHHH HHHHHHHHHH
1647
1753
1648
1754
```
1649
1755
Start SAMD_WiFiNINA on SAMD NANO_33_IOT
1650
-
WiFiManager_NINA_Lite v1.2.0
1756
+
WiFiManager_NINA_Lite v1.3.0
1651
1757
[WN] Hostname=SAMD-Master-Controller
1652
1758
Flag read = 0xd0d01234
1653
1759
doubleResetDetected
@@ -1722,6 +1828,11 @@ Sometimes, the library will only work if you update the `WiFiNINA module/shield`
1722
1828
1723
1829
## Releases
1724
1830
1831
+
### Major Release v1.3.0
1832
+
1833
+
1. Enable scan of WiFi networks for selection in Configuration Portal. Check [PR for v1.3.0 - Enable scan of WiFi networks #10](https://github.com/khoih-prog/WiFiManager_NINA_Lite/pull/10). Now you can select optional **SCAN_WIFI_NETWORKS**, **MANUAL_SSID_INPUT_ALLOWED** to be able to manually input SSID, not only from a scanned SSID lists and **MAX_SSID_IN_LIST** (from 2-15)
1834
+
2. Minor enhancement to not display garbage when data is invalid
1835
+
1725
1836
### Release v1.2.0
1726
1837
1727
1838
1. Permit optionally inputting one set of WiFi SSID/PWD by using `REQUIRE_ONE_SET_SSID_PW == true`
@@ -1839,15 +1950,16 @@ Submit issues to: [WiFiManager_NINA_Lite issues](https://github.com/khoih-prog/W
1839
1950
-[Won't compile for SAMD when USE_DYNAMIC_PARAMETERS set to FALSE #5](https://github.com/khoih-prog/WiFiManager_NINA_Lite/issues/5) leading to v1.1.1,
1840
1951
-[SAMD MultiWiFi issues when first WiFi SSID configured in CP is invalid or not available #6](https://github.com/khoih-prog/WiFiManager_NINA_Lite/issues/6) leading to v1.1.2.
1841
1952
-[WiFiManager connection attempt to unconfigured ("blank") SSID after restart on SAMD #8](https://github.com/khoih-prog/WiFiManager_NINA_Lite/issues/8) leading to v1.1.3 and v1.2.0
1842
-
1953
+
6. Again thanks to [Michael H "bizprof"](https://github.com/bizprof) to be `collaborator, co-author/maintainer` of this library. With the impressive new feature :
1954
+
-`Enable scan of WiFi networks for selection in Configuration Portal`. Check [PR for v1.3.0 - Enable scan of WiFi networks #10](https://github.com/khoih-prog/WiFiManager_NINA_Lite/pull/10) leading to v1.3.0
0 commit comments