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

Commit 572cff4

Browse files
authored
v1.6.0 to use WiFiMulti_Generic library
### Release v1.6.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. Rewrite for new mbed_portenta core v3.0.1+ 3. Update `Packages' Patches`
1 parent 800196e commit 572cff4

14 files changed

+235
-220
lines changed

CONTRIBUTING.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p
1515
Please ensure to specify the following:
1616

1717
* Arduino IDE version (e.g. 1.8.19) or Platform.io version
18-
* `ArduinoCore-mbed` Core Version (e.g. `ArduinoCore-mbed` mbed_portenta core v2.6.1)
18+
* `ArduinoCore-mbed` Core Version (e.g. `ArduinoCore-mbed` mbed_portenta core v3.0.1)
1919
* `Portenta_H7` Board type (e.g. Portenta_H7 Rev2 ABX00042, etc.)
2020
* Contextual information (e.g. what you were trying to achieve)
2121
* Simplest possible steps to reproduce
@@ -28,10 +28,10 @@ Please ensure to specify the following:
2828

2929
```
3030
Arduino IDE version: 1.8.19
31-
`ArduinoCore-mbed` mbed_portenta core v2.6.1
31+
`ArduinoCore-mbed` mbed_portenta core v3.0.1
3232
Portenta_H7 Rev2 ABX00042
3333
OS: Ubuntu 20.04 LTS
34-
Linux xy-Inspiron-3593 5.4.0-92-generic #103-Ubuntu SMP Fri Nov 26 16:13:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
34+
Linux xy-Inspiron-3593 5.13.0-40-generic #45~20.04.1-Ubuntu SMP Mon Apr 4 09:38:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
3535
3636
Context:
3737
I encountered a crash while using TimerInterrupt.
@@ -53,3 +53,4 @@ There are usually some outstanding feature requests in the [existing issues list
5353
### Sending Pull Requests
5454

5555
Pull Requests with changes and fixes are also welcome!
56+

README.md

+74-45
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](#Contributing)
77
[![GitHub issues](https://img.shields.io/github/issues/khoih-prog/WiFiManager_Portenta_H7_Lite.svg)](http://github.com/khoih-prog/WiFiManager_Portenta_H7_Lite/issues)
88

9-
<a href="https://www.buymeacoffee.com/khoihprog6" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
9+
<a href="https://www.buymeacoffee.com/khoihprog6" title="Donate to my libraries using BuyMeACoffee"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Donate to my libraries using BuyMeACoffee" style="height: 50px !important;width: 181px !important;" ></a>
10+
<a href="https://www.buymeacoffee.com/khoihprog6" title="Donate to my libraries using BuyMeACoffee"><img src="https://img.shields.io/badge/buy%20me%20a%20coffee-donate-orange.svg?logo=buy-me-a-coffee&logoColor=FFDD00" style="height: 20px !important;width: 200px !important;" ></a>
1011

1112

1213
---
@@ -20,6 +21,7 @@
2021
* [WiFi.begin() bug](#wifibegin-bug)
2122
* [Why do we need this WiFiManager_Portenta_H7_Lite library](#why-do-we-need-this-WiFiManager_Portenta_H7_Lite-library)
2223
* [Features](#features)
24+
* [WiFiMulti_Generic library usage](#WiFiMulti_Generic-library-usage)
2325
* [Currently supported Boards](#currently-supported-boards)
2426
* [Currently supported WiFi shields/modules](#currently-supported-wifi-shieldsmodules)
2527
* [Changelog](changelog.md)
@@ -175,6 +177,14 @@ New recent features:
175177
- Use new Portenta_H7 LittleFS features
176178
- **Scan WiFi networks** for selection in Configuration Portal
177179

180+
---
181+
182+
#### WiFiMulti_Generic library usage
183+
184+
The usage the new [WiFiMulti_Generic](https://github.com/khoih-prog/WiFiMulti_Generic) library to help connect to the best of **multi-WiFi APs**, with **auto-checking / auto-reconnecting** features when WiFi connection is lost.
185+
186+
187+
178188
---
179189

180190
#### Currently supported Boards
@@ -196,13 +206,14 @@ This [**WiFiManager_Portenta_H7_Lite** library](https://github.com/khoih-prog/Wi
196206
## Prerequisites
197207

198208
1. [`Arduino IDE 1.8.19+` for Arduino](https://github.com/arduino/Arduino). [![GitHub release](https://img.shields.io/github/release/arduino/Arduino.svg)](https://github.com/arduino/Arduino/releases/latest)
199-
2. [`ArduinoCore-mbed mbed_portenta core 2.6.1+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino **Portenta_H7** boards, such as **Portenta_H7 Rev2 ABX00042, etc.**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest)
209+
2. [`ArduinoCore-mbed mbed_portenta core 3.0.1+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino **Portenta_H7** boards, such as **Portenta_H7 Rev2 ABX00042, etc.**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest)
200210

201211

202212
3. [`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)
203-
4. [`WiFiWebServer library v1.5.5-1+`](https://github.com/khoih-prog/WiFiWebServer). To install. check [![arduino-library-badge](https://www.ardu-badge.com/badge/WiFiWebServer.svg?)](https://www.ardu-badge.com/WiFiWebServer)
213+
4. [`WiFiWebServer library v1.8.0+`](https://github.com/khoih-prog/WiFiWebServer). To install. check [![arduino-library-badge](https://www.ardu-badge.com/badge/WiFiWebServer.svg?)](https://www.ardu-badge.com/WiFiWebServer)
204214
5. [`LittleFS_Portenta_H7 v1.1.0+`](https://github.com/khoih-prog/LittleFS_Portenta_H7). To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/LittleFS_Portenta_H7.svg?)](https://www.ardu-badge.com/LittleFS_Portenta_H7)
205-
6. [`DoubleResetDetector_Generic v1.8.0+`](https://github.com/khoih-prog/DoubleResetDetector_Generic). To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/DoubleResetDetector_Generic.svg?)](https://www.ardu-badge.com/DoubleResetDetector_Generic)
215+
6. [`DoubleResetDetector_Generic v1.8.1+`](https://github.com/khoih-prog/DoubleResetDetector_Generic). To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/DoubleResetDetector_Generic.svg?)](https://www.ardu-badge.com/DoubleResetDetector_Generic)
216+
7. [`WiFiMulti_Generic library v1.1.1+`](https://github.com/khoih-prog/WiFiMulti_Generic) to use WiFiMulti function. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/WiFiMulti_Generic.svg?)](https://www.ardu-badge.com/WiFiMulti_Generic). **New**
206217

207218
---
208219

@@ -225,7 +236,7 @@ You can also use this link [![arduino-library-badge](https://www.ardu-badge.com/
225236

226237
1. Install [VS Code](https://code.visualstudio.com/)
227238
2. Install [PlatformIO](https://platformio.org/platformio-ide)
228-
3. Install [**WiFiManager_Portenta_H7_Lite** library](https://platformio.org/lib/show/12823/WiFiManager_Portenta_H7_Lite) by using [Library Manager](https://platformio.org/lib/show/12823/WiFiManager_Portenta_H7_Lite/installation). Search for **WiFiManager_Portenta_H7_Lite** in [Platform.io Author's Libraries](https://platformio.org/lib/search?query=author:%22Khoi%20Hoang%22)
239+
3. Install [**WiFiManager_Portenta_H7_Lite** library](https://registry.platformio.org/libraries/khoih-prog/WiFiManager_Portenta_H7_Lite) by using [Library Manager](https://registry.platformio.org/libraries/khoih-prog/WiFiManager_Portenta_H7_Lite/installation). Search for **WiFiManager_Portenta_H7_Lite** in [Platform.io Author's Libraries](https://platformio.org/lib/search?query=author:%22Khoi%20Hoang%22)
229240
4. Use included [platformio.ini](platformio/platformio.ini) file from examples to ensure that all dependent libraries will installed automatically. Please visit documentation for the other options and examples at [Project Configuration File](https://docs.platformio.org/page/projectconf.html)
230241

231242
---
@@ -235,12 +246,12 @@ You can also use this link [![arduino-library-badge](https://www.ardu-badge.com/
235246

236247
#### 1. For Portenta_H7 boards using Arduino IDE in Linux
237248

238-
**To be able to upload firmware to Portenta_H7 using Arduino IDE in Linux (Ubuntu, etc.)**, you have to copy the file [portenta_post_install.sh](Packages_Patches/arduino/hardware/mbed_portenta/2.6.1/portenta_post_install.sh) into mbed_portenta directory (~/.arduino15/packages/arduino/hardware/mbed_portenta/2.6.1/portenta_post_install.sh).
249+
**To be able to upload firmware to Portenta_H7 using Arduino IDE in Linux (Ubuntu, etc.)**, you have to copy the file [portenta_post_install.sh](Packages_Patches/arduino/hardware/mbed_portenta/3.0.1/portenta_post_install.sh) into mbed_portenta directory (~/.arduino15/packages/arduino/hardware/mbed_portenta/3.0.1/portenta_post_install.sh).
239250

240251
Then run the following command using `sudo`
241252

242253
```
243-
$ cd ~/.arduino15/packages/arduino/hardware/mbed_portenta/2.6.1
254+
$ cd ~/.arduino15/packages/arduino/hardware/mbed_portenta/3.0.1
244255
$ chmod 755 portenta_post_install.sh
245256
$ sudo ./portenta_post_install.sh
246257
```
@@ -253,9 +264,9 @@ This will create the file `/etc/udev/rules.d/49-portenta_h7.rules` as follows:
253264
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="035b", GROUP="plugdev", MODE="0666"
254265
```
255266

256-
Supposing the ArduinoCore-mbed core version is 2.6.1. Now only one file must be copied into the directory:
267+
Supposing the ArduinoCore-mbed core version is 3.0.1. Now only one file must be copied into the directory:
257268

258-
- `~/.arduino15/packages/arduino/hardware/mbed_portenta/2.6.1/portenta_post_install.sh`
269+
- `~/.arduino15/packages/arduino/hardware/mbed_portenta/3.0.1/portenta_post_install.sh`
259270

260271
Whenever a new version is installed, remember to copy this files into the new version directory. For example, new version is x.yy.zz
261272

@@ -541,7 +552,7 @@ Check [retries block the main loop #18](https://github.com/khoih-prog/WiFiManage
541552
542553
In `Configuration Portal Mode`, it starts an AP called `WIFI_GENERIC_XXXXXX`. Connect to it using the `configurable password` you can define in the code. For example, `MyWIFI_GENERIC_XXXXXX` (see examples):
543554
544-
After you connected, please, go to http://192.168.4.1 or newly configured AP IP, you'll see this `Main` page:
555+
After you connected, please, go to http://192.168.3.1, you'll see this `Main` page:
545556
546557
<p align="center">
547558
<img src="https://github.com/khoih-prog/WiFiManager_Portenta_H7_Lite/blob/main/pics/Main.png">
@@ -1206,33 +1217,41 @@ This is the terminal output when running [**Portenta_H7_WiFi**](examples/Portent
12061217

12071218
```
12081219
Start Portenta_H7_WiFi on PORTENTA_H7_M7 with Portenta_H7 WiFi
1209-
WiFiManager_Portenta_H7_Lite v1.5.0
1220+
WiFiMulti_Generic v1.1.1
1221+
WiFiManager_Portenta_H7_Lite v1.6.0
12101222
[WG] Hostname=Portenta-Controller
12111223
Flash Size: (KB) = 2048.00
12121224
FlashIAP Start Address: = 0x80A0000
12131225
LittleFS size (KB) = 1280.00
1214-
LittleFS Mount Fail
1215-
Formatting...
1216-
Loading DRD file failed
1217-
Flag read = 0x1060a5b
1226+
LittleFS Mount OK
1227+
LittleFS Flag read = 0xd0d04321
1228+
Flag read = 0xd0d04321
12181229
No doubleResetDetected
12191230
Saving DOUBLERESETDETECTOR_FLAG to DRD file : 0xd0d01234
12201231
Saving DRD file OK
1221-
SetFlag write = 0xd0d01234
1232+
LittleFS Flag read = 0xd0d04321
1233+
ClearFlag write = 0xd0d04321
1234+
[WG] Double Reset Detected
1235+
[WG] CCSum=0x1467,RCSum=0x1467
1236+
[WG] CrCCsum=0x1981,CrRCsum=0x1981
1237+
[WG] Valid Stored Dynamic Data
1238+
[WG] ======= Start Stored Config Data =======
1239+
[WG] Hdr=PORTENTA-H7-WIFI,SSID=HueNet1,PW=12345678
1240+
[WG] SSID1=HueNet2,PW1=12345678
1241+
[WG] BName=Portenta_H7
1242+
[WG] i=0,id=sv1,data=account.duckdns.org
1243+
[WG] i=1,id=tk1,data=token1
1244+
[WG] i=2,id=sv2,data=account.ddns.net
1245+
[WG] i=3,id=tk2,data=token2
1246+
[WG] i=4,id=prt,data=8080
1247+
[WG] i=5,id=mqt,data=mqtt.duckdns.org
12221248
[WG] bg: isForcedConfigPortal = false
1223-
[WG] bg:Stay forever in CP:No ConfigDat
1249+
[WG] bg:Stay forever in CP:DRD/MRD
12241250
[WG] clearForcedCP
12251251
[WG] SaveCPFile
12261252
[WG] OK
1227-
[WG] SaveBkUpCPFile
1228-
[WG] OK
12291253
[WG] SSID=WIFI_GENERIC_51F485,PW=MyWIFI_GENERIC_51F485
1230-
[WG] IP=192.168.4.1,CH=4
1231-
Stop doubleResetDetecting
1232-
Saving to DRD file : 0xd0d04321
1233-
Saving DRD file OK
1234-
LittleFS Flag read = 0xd0d04321
1235-
ClearFlag write = 0xd0d04321
1254+
[WG] IP=192.168.3.1,CH=5
12361255
F
12371256
Your stored Credentials :
12381257
Blynk Server1 = account.duckdns.org
@@ -1241,8 +1260,8 @@ Blynk Server2 = account.ddns.net
12411260
Token2 = token2
12421261
Port = 8080
12431262
MQTT Server = mqtt.duckdns.org
1244-
FFFFFFFFF FFFFF
1245-
[WG] h:UpdLittleFS
1263+
FFFFF[WG]
1264+
h:UpdLittleFS
12461265
[WG] h:Rst
12471266
```
12481267

@@ -1251,7 +1270,8 @@ FFFFFFFFF FFFFF
12511270

12521271
```
12531272
Start Portenta_H7_WiFi on PORTENTA_H7_M7 with Portenta_H7 WiFi
1254-
WiFiManager_Portenta_H7_Lite v1.5.0
1273+
WiFiMulti_Generic v1.1.1
1274+
WiFiManager_Portenta_H7_Lite v1.6.0
12551275
[WG] Hostname=Portenta-Controller
12561276
Flash Size: (KB) = 2048.00
12571277
FlashIAP Start Address: = 0x80A0000
@@ -1263,40 +1283,44 @@ No doubleResetDetected
12631283
Saving DOUBLERESETDETECTOR_FLAG to DRD file : 0xd0d01234
12641284
Saving DRD file OK
12651285
SetFlag write = 0xd0d01234
1266-
[WG] CCSum=0x1435,RCSum=0x1435
1267-
[WG] CrCCsum=0x163b,CrRCsum=0x163b
1286+
[WG] CCSum=0x1467,RCSum=0x1467
1287+
[WG] CrCCsum=0x1981,CrRCsum=0x1981
12681288
[WG] Valid Stored Dynamic Data
12691289
[WG] ======= Start Stored Config Data =======
12701290
[WG] Hdr=PORTENTA-H7-WIFI,SSID=HueNet1,PW=12345678
1271-
[WG] SSID1=HueNet,PW1=12345678
1291+
[WG] SSID1=HueNet2,PW1=12345678
12721292
[WG] BName=Portenta_H7
1273-
[WG] i=0,id=sv1,data=new.duckdns.org
1293+
[WG] i=0,id=sv1,data=account.duckdns.org
12741294
[WG] i=1,id=tk1,data=token1
1275-
[WG] i=2,id=sv2,data=new.ddns.net
1295+
[WG] i=2,id=sv2,data=account.ddns.net
12761296
[WG] i=3,id=tk2,data=token2
12771297
[WG] i=4,id=prt,data=8080
12781298
[WG] i=5,id=mqt,data=mqtt.duckdns.org
1279-
[WG] con2WF:SSID=HueNet1,PW=12345678
1280-
[WG] con2WF:OK
1281-
[WG] IP=192.168.2.130
1282-
[WG] SSID=HueNet1,RSSI=-32
1283-
[WG] IP=192.168.2.130
1299+
[WG] WiFi connected after time: 1
1300+
[WG] SSID:HueNet1,RSSI=-45
1301+
[WG] IP address:192.168.2.105
12841302
[WG] b:WOK
12851303
Stop doubleResetDetecting
12861304
Saving to DRD file : 0xd0d04321
12871305
Saving DRD file OK
12881306
LittleFS Flag read = 0xd0d04321
12891307
ClearFlag write = 0xd0d04321
12901308
H
1309+
12911310
Your stored Credentials :
1292-
Blynk Server1 = new.duckdns.org
1311+
Blynk Server1 = account.duckdns.org
12931312
Token1 = token1
1294-
Blynk Server2 = new.ddns.net
1313+
Blynk Server2 = account.ddns.net
12951314
Token2 = token2
12961315
Port = 8080
12971316
MQTT Server = mqtt.duckdns.org
1298-
HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH
1299-
HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH
1317+
H[WG] r:Check&WLost <====== WiFi Lost, and auto-reconnected
1318+
[WG] r:WLost.ReconW
1319+
[WG] WiFi connected after time: 1
1320+
[WG] SSID:HueNet2,RSSI=-55
1321+
[WG] IP address:192.168.2.105
1322+
[WG] r:WOK
1323+
H
13001324
```
13011325

13021326

@@ -1315,7 +1339,8 @@ This is the terminal output when running [**Portenta_H7_WiFi_MQTT**](examples/Po
13151339

13161340
```
13171341
Start Portenta_H7_WiFi_MQTT on PORTENTA_H7_M7 with Portenta_H7 WiFi
1318-
WiFiManager_Portenta_H7_Lite v1.5.0
1342+
WiFiMulti_Generic v1.1.1
1343+
WiFiManager_Portenta_H7_Lite v1.6.0
13191344
[WG] Hostname=Portenta-MQTT
13201345
Flash Size: (KB) = 2048.00
13211346
FlashIAP Start Address: = 0x80A0000
@@ -1334,7 +1359,7 @@ SetFlag write = 0xd0d01234
13341359
[WG] SaveCPFile
13351360
[WG] OK
13361361
[WG] SSID=WIFI_GENERIC_51F485,PW=MyWIFI_GENERIC_51F485
1337-
[WG] IP=192.168.4.1,CH=9
1362+
[WG] IP=192.168.3.1,CH=9
13381363
Stop doubleResetDetecting
13391364
Saving to DRD file : 0xd0d04321
13401365
Saving DRD file OK
@@ -1359,7 +1384,8 @@ NNNN NNNNN NNNNN NNNNN NNNNN NNNNN NNNNN NN
13591384

13601385
```
13611386
Start Portenta_H7_WiFi_MQTT on PORTENTA_H7_M7 with Portenta_H7 WiFi
1362-
WiFiManager_Portenta_H7_Lite v1.5.0
1387+
WiFiMulti_Generic v1.1.1
1388+
WiFiManager_Portenta_H7_Lite v1.6.0
13631389
[WG] Hostname=Portenta-MQTT
13641390
Flash Size: (KB) = 2048.00
13651391
FlashIAP Start Address: = 0x80A0000
@@ -1489,6 +1515,9 @@ Submit issues to: [WiFiManager_Portenta_H7_Lite issues](https://github.com/khoih
14891515
22. Add `LibraryPatches` for [**Adafruit_MQTT_Library**](https://github.com/adafruit/Adafruit_MQTT_Library) to fix compiler error for Portenta_H7, RP2040-based and many other boards.
14901516
23. Fix the blocking issue in loop() with configurable `WIFI_RECON_INTERVAL`
14911517
24. Workaround for core WiFi.status() bug, which does not detect WiFi lost.
1518+
25. 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
1519+
26. Rewrite for new mbed_portenta core v3.0.1+
1520+
14921521

14931522
---
14941523
---

changelog.md

+13
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
## Table of Contents
1313

1414
* [Changelog](#changelog)
15+
* [Release v1.6.0](#release-v160)
16+
* [Release v1.5.1](#release-v151)
1517
* [Release v1.5.0](#release-v150)
1618
* [Release v1.4.1](#release-v141)
1719
* [Initial Release v1.4.0](#initial-release-v140)
@@ -21,6 +23,17 @@
2123

2224
## Changelog
2325

26+
### Release v1.6.0
27+
28+
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
29+
2. Rewrite for new mbed_portenta core v3.0.1+
30+
3. Update `Packages' Patches`
31+
32+
### Release v1.5.1
33+
34+
1. Optional Board_Name in Menu
35+
2. Optimize code by using passing by reference
36+
2437
### Release v1.5.0
2538

2639
1. Workaround for core WiFi.status() bug, which does not detect WiFi lost.

examples/Portenta_H7_WiFi/Portenta_H7_WiFi.ino

+3-2
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,13 @@ void setup()
6464
{
6565
// Debug console
6666
Serial.begin(115200);
67-
while (!Serial);
67+
while (!Serial && millis() < 5000);
6868

69-
delay(200);
69+
delay(1000);
7070

7171
Serial.print(F("\nStart Portenta_H7_WiFi on ")); Serial.print(BOARD_NAME);
7272
Serial.print(F(" with ")); Serial.println(SHIELD_TYPE);
73+
Serial.println(WIFIMULTI_GENERIC_VERSION);
7374
Serial.println(WIFI_MANAGER_PORTENTA_H7_LITE_VERSION);
7475

7576
WiFiManager_Portenta_H7 = new WiFiManager_Portenta_H7_Lite();

examples/Portenta_H7_WiFi/defines.h

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#ifndef defines_h
1414
#define defines_h
1515

16+
#define USING_MBED_PORTENTA_CORE_2_7_2 false
17+
1618
/* Comment this out to disable prints and save space */
1719
#define DEBUG_WIFI_WEBSERVER_PORT Serial
1820
#define WIFI_GENERIC_DEBUG_OUTPUT Serial
@@ -98,11 +100,11 @@
98100

99101
/////////////////////////////////////////////
100102

101-
#define USE_DYNAMIC_PARAMETERS true
103+
#define USE_DYNAMIC_PARAMETERS true
102104

103105
/////////////////////////////////////////////
104106

105-
#define SCAN_WIFI_NETWORKS true
107+
#define SCAN_WIFI_NETWORKS false //true
106108

107109
// To be able to manually input SSID, not from a scanned SSID lists
108110
#define MANUAL_SSID_INPUT_ALLOWED true
@@ -114,6 +116,8 @@
114116

115117
/////////////////////////////////////////////
116118

119+
#define USE_WIFI_PORTENTA_H7 true
120+
117121
#include <WiFiManager_Portenta_H7_Lite.h>
118122

119123
#define HOST_NAME "Portenta-Controller"

examples/Portenta_H7_WiFi_MQTT/Portenta_H7_WiFi_MQTT.ino

+2-1
Original file line numberDiff line numberDiff line change
@@ -297,14 +297,15 @@ void setup()
297297
{
298298
// Debug console
299299
Serial.begin(115200);
300-
while (!Serial);
300+
while (!Serial && millis() < 5000);
301301

302302
pinMode(LED_PIN, OUTPUT);
303303

304304
delay(200);
305305

306306
Serial.print(F("\nStart Portenta_H7_WiFi_MQTT on ")); Serial.print(BOARD_NAME);
307307
Serial.print(F(" with ")); Serial.println(SHIELD_TYPE);
308+
Serial.println(WIFIMULTI_GENERIC_VERSION);
308309
Serial.println(WIFI_MANAGER_PORTENTA_H7_LITE_VERSION);
309310

310311
WiFiManager_Portenta_H7 = new WiFiManager_Portenta_H7_Lite();

examples/Portenta_H7_WiFi_MQTT/defines.h

+2
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@
114114

115115
/////////////////////////////////////////////
116116

117+
#define USE_WIFI_PORTENTA_H7 true
118+
117119
#include <WiFiManager_Portenta_H7_Lite.h>
118120

119121
#define HOST_NAME "Portenta-MQTT"

0 commit comments

Comments
 (0)