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

Commit 552b379

Browse files
authoredMay 18, 2022
v1.0.0
### Release v1.0.0 1. Initial coding for RTL8720DN, RTL8722DM, RTL8722CSM, etc.
1 parent 5f36ddb commit 552b379

8 files changed

+570
-481
lines changed
 

‎CONTRIBUTING.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
## Contributing to WiFiManager_RT8720
1+
## Contributing to WiFiManager_RTL8720
22

33
### Reporting Bugs
44

5-
Please report bugs in [WiFiManager_RT8720](https://github.com/khoih-prog/WiFiManager_RT8720/issues/new) if you find them.
5+
Please report bugs in [WiFiManager_RTL8720](https://github.com/khoih-prog/WiFiManager_RTL8720/issues/new) if you find them.
66

77
However, before reporting a bug please check through the following:
88

9-
* [Existing Open Issues](https://github.com/khoih-prog/WiFiManager_RT8720/issues) - someone might have already encountered this.
9+
* [Existing Open Issues](https://github.com/khoih-prog/WiFiManager_RTL8720/issues) - someone might have already encountered this.
1010

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

1313
### How to submit a bug report
1414

@@ -45,7 +45,7 @@ Steps to reproduce:
4545

4646
Feel free to post feature requests. It's helpful if you can explain exactly why the feature would be useful.
4747

48-
There are usually some outstanding feature requests in the [existing issues list](https://github.com/khoih-prog/WiFiManager_RT8720/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement), feel free to add comments to them.
48+
There are usually some outstanding feature requests in the [existing issues list](https://github.com/khoih-prog/WiFiManager_RTL8720/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement), feel free to add comments to them.
4949

5050
### Sending Pull Requests
5151

‎README.md

+31-31
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
## WiFiManager_RT8720 (Light Weight Credentials / WiFi Manager for RTL8720DN, RTL8722DM, RTL8722CSM, etc. modules/shields)
1+
## WiFiManager_RTL8720 (Light Weight Credentials / WiFi Manager for RTL8720DN, RTL8722DM, RTL8722CSM, etc. modules/shields)
22

3-
[![arduino-library-badge](https://www.ardu-badge.com/badge/WiFiManager_RT8720.svg?)](https://www.ardu-badge.com/WiFiManager_RT8720)
4-
[![GitHub release](https://img.shields.io/github/release/khoih-prog/WiFiManager_RT8720.svg)](https://github.com/khoih-prog/WiFiManager_RT8720/releases)
5-
[![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/khoih-prog/WiFiManager_RT8720/blob/main/LICENSE)
3+
[![arduino-library-badge](https://www.ardu-badge.com/badge/WiFiManager_RTL8720.svg?)](https://www.ardu-badge.com/WiFiManager_RTL8720)
4+
[![GitHub release](https://img.shields.io/github/release/khoih-prog/WiFiManager_RTL8720.svg)](https://github.com/khoih-prog/WiFiManager_RTL8720/releases)
5+
[![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/khoih-prog/WiFiManager_RTL8720/blob/main/LICENSE)
66
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](#Contributing)
7-
[![GitHub issues](https://img.shields.io/github/issues/khoih-prog/WiFiManager_RT8720.svg)](http://github.com/khoih-prog/WiFiManager_RT8720/issues)
7+
[![GitHub issues](https://img.shields.io/github/issues/khoih-prog/WiFiManager_RTL8720.svg)](http://github.com/khoih-prog/WiFiManager_RTL8720/issues)
88

99
<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>
1010
<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>
@@ -17,7 +17,7 @@
1717

1818
* [Important Notes](#important-notes)
1919
* [WiFi.status() bug](#wifistatus-bug)
20-
* [Why do we need this WiFiManager_RT8720 library](#why-do-we-need-this-WiFiManager_RT8720-library)
20+
* [Why do we need this WiFiManager_RTL8720 library](#why-do-we-need-this-WiFiManager_RTL8720-library)
2121
* [Features](#features)
2222
* [WiFiMulti_Generic library usage](#WiFiMulti_Generic-library-usage)
2323
* [Currently supported Boards](#currently-supported-boards)
@@ -100,7 +100,7 @@ Therefore, the auto-reconnect feature for WiFiMulti won't work, until this bug i
100100

101101
---
102102

103-
### Why do we need this [WiFiManager_RT8720 library](https://github.com/khoih-prog/WiFiManager_RT8720)
103+
### Why do we need this [WiFiManager_RTL8720 library](https://github.com/khoih-prog/WiFiManager_RTL8720)
104104

105105
#### Features
106106

@@ -145,7 +145,7 @@ The usage the new [WiFiMulti_Generic](https://github.com/khoih-prog/WiFiMulti_Ge
145145

146146
#### Currently supported Boards
147147

148-
This [**WiFiManager_RT8720** library](https://github.com/khoih-prog/WiFiManager_RT8720) currently supports these following boards:
148+
This [**WiFiManager_RTL8720** library](https://github.com/khoih-prog/WiFiManager_RTL8720) currently supports these following boards:
149149

150150
1. **RTL8720DN, RTL8722DM, RTM8722CSM, etc. boards**
151151

@@ -169,22 +169,22 @@ This [**WiFiManager_RT8720** library](https://github.com/khoih-prog/WiFiManager_
169169

170170
### Use Arduino Library Manager
171171

172-
The best and easiest way is to use `Arduino Library Manager`. Search for [**WiFiManager_RT8720**](https://github.com/khoih-prog/WiFiManager_RT8720), then select / install the latest version.
173-
You can also use this link [![arduino-library-badge](https://www.ardu-badge.com/badge/WiFiManager_RT8720.svg?)](https://www.ardu-badge.com/WiFiManager_RT8720) for more detailed instructions.
172+
The best and easiest way is to use `Arduino Library Manager`. Search for [**WiFiManager_RTL8720**](https://github.com/khoih-prog/WiFiManager_RTL8720), then select / install the latest version.
173+
You can also use this link [![arduino-library-badge](https://www.ardu-badge.com/badge/WiFiManager_RTL8720.svg?)](https://www.ardu-badge.com/WiFiManager_RTL8720) for more detailed instructions.
174174

175175
### Manual Install
176176

177-
1. Navigate to [**WiFiManager_RT8720**](https://github.com/khoih-prog/WiFiManager_RT8720) page.
178-
2. Download the latest release `WiFiManager_RT8720-main.zip`.
179-
3. Extract the zip file to `WiFiManager_RT8720-main` directory
177+
1. Navigate to [**WiFiManager_RTL8720**](https://github.com/khoih-prog/WiFiManager_RTL8720) page.
178+
2. Download the latest release `WiFiManager_RTL8720-main.zip`.
179+
3. Extract the zip file to `WiFiManager_RTL8720-main` directory
180180
4. Copy the whole
181-
- `WiFiManager_RT8720-main` folder to Arduino libraries' directory such as `~/Arduino/libraries/`.
181+
- `WiFiManager_RTL8720-main` folder to Arduino libraries' directory such as `~/Arduino/libraries/`.
182182

183183
### VS Code & PlatformIO:
184184

185185
1. Install [VS Code](https://code.visualstudio.com/)
186186
2. Install [PlatformIO](https://platformio.org/platformio-ide)
187-
3. Install [**WiFiManager_RT8720** library](https://registry.platformio.org/libraries/khoih-prog/WiFiManager_RT8720) by using [Library Manager](https://registry.platformio.org/libraries/khoih-prog/WiFiManager_RT8720/installation). Search for **WiFiManager_RT8720** in [Platform.io Author's Libraries](https://platformio.org/lib/search?query=author:%22Khoi%20Hoang%22)
187+
3. Install [**WiFiManager_RTL8720** library](https://registry.platformio.org/libraries/khoih-prog/WiFiManager_RTL8720) by using [Library Manager](https://registry.platformio.org/libraries/khoih-prog/WiFiManager_RTL8720/installation). Search for **WiFiManager_RTL8720** in [Platform.io Author's Libraries](https://platformio.org/lib/search?query=author:%22Khoi%20Hoang%22)
188188
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)
189189

190190
---
@@ -232,14 +232,14 @@ These files must be copied into the directory:
232232
- Include in your sketch
233233

234234
```cpp
235-
// Must be before #include <WiFiManager_RT8720.h>
235+
// Must be before #include <WiFiManager_RTL8720.h>
236236
// Start location in EEPROM to store config data. Default 0
237237
// Config data Siz, not including your custom data, currently is 84 bytes)
238238
#define EEPROM_START 0
239239

240-
#include <WiFiManager_RT8720.h>
240+
#include <WiFiManager_RTL8720.h>
241241

242-
WiFiManager_RT8720* WiFiManager;
242+
WiFiManager_RTL8720* WiFiManager;
243243
```
244244

245245
#### 2. Add custom parameters
@@ -253,7 +253,7 @@ WiFiManager_RT8720* WiFiManager;
253253
254254
/////////////// Start dynamic Credentials ///////////////
255255
256-
//Defined in <WiFiManager_RT8720.h>
256+
//Defined in <WiFiManager_RTL8720.h>
257257
/**************************************
258258
#define MAX_ID_LEN 5
259259
#define MAX_DISPLAY_NAME_LEN 16
@@ -319,7 +319,7 @@ uint16_t NUM_MENU_ITEMS = 0;
319319
- When you want to open a config portal, just add
320320

321321
```cpp
322-
WiFiManager = new WiFiManager_RT8720();
322+
WiFiManager = new WiFiManager_RTL8720();
323323
WiFiManager->begin();
324324
```
325325

@@ -488,10 +488,10 @@ Default is `true`. Just change to `false` to Not using `Board_Name` on Config_Po
488488
489489
Check the examples
490490
491-
https://github.com/khoih-prog/WiFiManager_RT8720/blob/49c1aff82d2742a2e0b787a24009d2905b76ee3c/examples/RP2040_WiFi/RP2040_WiFi.ino#L22-L30
491+
https://github.com/khoih-prog/WiFiManager_RTL8720/blob/49c1aff82d2742a2e0b787a24009d2905b76ee3c/examples/RP2040_WiFi/RP2040_WiFi.ino#L22-L30
492492
493493
494-
https://github.com/khoih-prog/WiFiManager_RT8720/blob/49c1aff82d2742a2e0b787a24009d2905b76ee3c/examples/RP2040_WiFi/defines.h#L191-L208
494+
https://github.com/khoih-prog/WiFiManager_RTL8720/blob/49c1aff82d2742a2e0b787a24009d2905b76ee3c/examples/RP2040_WiFi/defines.h#L191-L208
495495
496496
497497
@@ -512,22 +512,22 @@ In `Configuration Portal Mode`, it starts an AP called `WM_RTL8720`. Connect to
512512
After you connected, please, go to http://192.168.4.1 or newly configured AP IP, you'll see this `Main` page:
513513
514514
<p align="center">
515-
<img src="https://github.com/khoih-prog/WiFiManager_RT8720/blob/main/pics/Main.png">
515+
<img src="https://github.com/khoih-prog/WiFiManager_RTL8720/blob/main/pics/Main.png">
516516
</p>
517517
518518
Enter your credentials,
519519
520520
### 1. Without SCAN_WIFI_NETWORKS
521521
522522
<p align="center">
523-
<img src="https://github.com/khoih-prog/WiFiManager_RT8720/blob/main/pics/Input.png">
523+
<img src="https://github.com/khoih-prog/WiFiManager_RTL8720/blob/main/pics/Input.png">
524524
</p>
525525
526526
### 2. With SCAN_WIFI_NETWORKS
527527
528528
529529
<p align="center">
530-
<img src="https://github.com/khoih-prog/WiFiManager_RT8720/blob/main/pics/Input_With_Scan.png">
530+
<img src="https://github.com/khoih-prog/WiFiManager_RTL8720/blob/main/pics/Input_With_Scan.png">
531531
</p>
532532
533533
@@ -759,29 +759,29 @@ Please take a look at other examples, as well.
759759

760760
#### 1. File [RTL8720_WiFi.ino](examples/RTL8720_WiFi/RTL8720_WiFi.ino)
761761

762-
https://github.com/khoih-prog/WiFiManager_RT8720/blob/1f0b76463cfcf47c582d773a7e8863daf6a38a34/examples/RTL8720_WiFi/RTL8720_WiFi.ino#L14-L150
762+
https://github.com/khoih-prog/WiFiManager_RTL8720/blob/1f0b76463cfcf47c582d773a7e8863daf6a38a34/examples/RTL8720_WiFi/RTL8720_WiFi.ino#L14-L150
763763

764764

765765
---
766766

767767
#### 2. File [defines.h](examples/RTL8720_WiFi/defines.h)
768768

769-
https://github.com/khoih-prog/WiFiManager_RT8720/blob/1f0b76463cfcf47c582d773a7e8863daf6a38a34/examples/RTL8720_WiFi/defines.h#L14-L134
769+
https://github.com/khoih-prog/WiFiManager_RTL8720/blob/1f0b76463cfcf47c582d773a7e8863daf6a38a34/examples/RTL8720_WiFi/defines.h#L14-L134
770770

771771

772772
---
773773

774774
#### 3. File [Credentials.h](examples/RTL8720_WiFi/Credentials.h)
775775

776-
https://github.com/khoih-prog/WiFiManager_RT8720/blob/1f0b76463cfcf47c582d773a7e8863daf6a38a34/examples/RTL8720_WiFi/Credentials.h#L14-L93
776+
https://github.com/khoih-prog/WiFiManager_RTL8720/blob/1f0b76463cfcf47c582d773a7e8863daf6a38a34/examples/RTL8720_WiFi/Credentials.h#L14-L93
777777

778778

779779
---
780780

781781
#### 4. File [dynamicParams.h](examples/RTL8720_WiFi/dynamicParams.h)
782782

783783

784-
https://github.com/khoih-prog/WiFiManager_RT8720/blob/1f0b76463cfcf47c582d773a7e8863daf6a38a34/examples/RTL8720_WiFi/dynamicParams.h#L14-L74
784+
https://github.com/khoih-prog/WiFiManager_RTL8720/blob/1f0b76463cfcf47c582d773a7e8863daf6a38a34/examples/RTL8720_WiFi/dynamicParams.h#L14-L74
785785

786786

787787
---
@@ -1108,7 +1108,7 @@ Sometimes, the library will only work if you update the `AmebaD RTL8720` core to
11081108

11091109
### Issues
11101110

1111-
Submit issues to: [WiFiManager_RT8720 issues](https://github.com/khoih-prog/WiFiManager_RT8720/issues)
1111+
Submit issues to: [WiFiManager_RTL8720 issues](https://github.com/khoih-prog/WiFiManager_RTL8720/issues)
11121112

11131113
---
11141114
---
@@ -1174,7 +1174,7 @@ If you want to contribute to this project:
11741174

11751175
### License
11761176

1177-
- The library is licensed under [MIT](https://github.com/khoih-prog/WiFiManager_RT8720/blob/main/LICENSE)
1177+
- The library is licensed under [MIT](https://github.com/khoih-prog/WiFiManager_RTL8720/blob/main/LICENSE)
11781178

11791179
---
11801180

‎changelog.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
## WiFiManager_RT8720 (Light Weight Credentials / WiFi Manager for RTL8720DN, RTL8722DM, RTL8722CSM, etc. modules/shields)
1+
## WiFiManager_RTL8720 (Light Weight Credentials / WiFi Manager for RTL8720DN, RTL8722DM, RTL8722CSM, etc. modules/shields)
22

3-
[![arduino-library-badge](https://www.ardu-badge.com/badge/WiFiManager_RT8720.svg?)](https://www.ardu-badge.com/WiFiManager_RT8720)
4-
[![GitHub release](https://img.shields.io/github/release/khoih-prog/WiFiManager_RT8720.svg)](https://github.com/khoih-prog/WiFiManager_RT8720/releases)
5-
[![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/khoih-prog/WiFiManager_RT8720/blob/main/LICENSE)
3+
[![arduino-library-badge](https://www.ardu-badge.com/badge/WiFiManager_RTL8720.svg?)](https://www.ardu-badge.com/WiFiManager_RTL8720)
4+
[![GitHub release](https://img.shields.io/github/release/khoih-prog/WiFiManager_RTL8720.svg)](https://github.com/khoih-prog/WiFiManager_RTL8720/releases)
5+
[![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/khoih-prog/WiFiManager_RTL8720/blob/main/LICENSE)
66
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](#Contributing)
7-
[![GitHub issues](https://img.shields.io/github/issues/khoih-prog/WiFiManager_RT8720.svg)](http://github.com/khoih-prog/WiFiManager_RT8720/issues)
7+
[![GitHub issues](https://img.shields.io/github/issues/khoih-prog/WiFiManager_RTL8720.svg)](http://github.com/khoih-prog/WiFiManager_RTL8720/issues)
88

99
---
1010
---

‎keywords.txt

+14-14
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# Datatypes (KEYWORD1)
77
#######################################
88

9-
WiFiManager_RT8720 KEYWORD1
10-
RT8720_Configuration KEYWORD1
9+
WiFiManager_RTL8720 KEYWORD1
10+
RTL8720_Configuration KEYWORD1
1111
MenuItem KEYWORD1
1212
WiFi_Credentials KEYWORD1
1313

@@ -50,18 +50,18 @@ getCORSHeader KEYWORD2
5050

5151
CONFIG_DATA_SIZE LITERAL1
5252
NUM_MENU_ITEMS LITERAL1
53-
RT8720_HTML_HEAD LITERAL1
54-
RT8720_HTML_HEAD_START LITERAL1
55-
RT8720_HTML_HEAD_STYLE LITERAL1
56-
RT8720_HTML_HEAD_END LITERAL1
57-
RT8720_FLDSET_START LITERAL1
58-
RT8720_FLDSET_END LITERAL1
59-
RT8720_HTML_PARAM LITERAL1
60-
RT8720_HTML_BUTTON LITERAL1
61-
RT8720_HTML_SCRIPT LITERAL1
62-
RT8720_HTML_SCRIPT_ITEM LITERAL1
63-
RT8720_HTML_SCRIPT_END LITERAL1
64-
RT8720_HTML_END LITERAL1
53+
RTL8720_HTML_HEAD LITERAL1
54+
RTL8720_HTML_HEAD_START LITERAL1
55+
RTL8720_HTML_HEAD_STYLE LITERAL1
56+
RTL8720_HTML_HEAD_END LITERAL1
57+
RTL8720_FLDSET_START LITERAL1
58+
RTL8720_FLDSET_END LITERAL1
59+
RTL8720_HTML_PARAM LITERAL1
60+
RTL8720_HTML_BUTTON LITERAL1
61+
RTL8720_HTML_SCRIPT LITERAL1
62+
RTL8720_HTML_SCRIPT_ITEM LITERAL1
63+
RTL8720_HTML_SCRIPT_END LITERAL1
64+
RTL8720_HTML_END LITERAL1
6565

6666
WM_HTTP_HEAD_CL LITERAL1
6767
WM_HTTP_HEAD_TEXT_HTML LITERAL1

‎library.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "WiFiManager_RT8720",
2+
"name": "WiFiManager_RTL8720",
33
"version": "1.0.0",
44
"keywords": "wifi, wi-fi, MultiWiFi, multi-wifi, WiFiManager, RTL8720DN, RTL8722DM, RTM8722CSM, realtek, amebad-core, Communication, iot, credentials, persistent, config-portal, DoubleReset, MultiReset, DoubleResetDetector, littlefs, spiffs, eeprom, light-weight",
55
"description": "Library to configure MultiWiFi/Credentials at runtime for Realtek RTL8720DN, RTL8722DM, RTM8722CSM, etc. boards. 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 Credentials to be autoloaded into Config Portal to use or change instead of manually input. Credentials are saved in FlashStorage. New powerful-yet-simple-to-use feature to enable adding dynamic custom parameters from sketch and input using the same Config Portal. Double or MultiDetectDetector as well as Virtual Switches feature permits entering Config Portal as requested. Configurable Customs HTML Headers, including Customs Style, Customs Head Elements, CORS Header.",
@@ -12,9 +12,9 @@
1212
"repository":
1313
{
1414
"type": "git",
15-
"url": "https://github.com/khoih-prog/WiFiManager_RT8720"
15+
"url": "https://github.com/khoih-prog/WiFiManager_RTL8720"
1616
},
17-
"homepage": "https://github.com/khoih-prog/WiFiManager_RT8720",
17+
"homepage": "https://github.com/khoih-prog/WiFiManager_RTL8720",
1818
"export": {
1919
"exclude": [
2020
"linux",
@@ -26,7 +26,7 @@
2626
[
2727
{
2828
"owner": "khoih.prog",
29-
"name": "FlashStorage_RT8720",
29+
"name": "FlashStorage_RTL8720",
3030
"version": "^1.1.0",
3131
"platforms": "*"
3232
},
@@ -52,5 +52,5 @@
5252
"frameworks": "*",
5353
"platforms": "AmebaD",
5454
"examples": "examples/*/*/*.ino",
55-
"headers": ["WiFiManager_RT8720.h"]
55+
"headers": ["WiFiManager_RTL8720.h"]
5656
}

‎library.properties

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name=WiFiManager_RT8720
1+
name=WiFiManager_RTL8720
22
version=1.0.0
33
author=Khoi Hoang
44
maintainer=Khoi Hoang <khoih.prog@gmail.com>
55
license=MIT
66
sentence=Light-Weight MultiWiFi/Credentials Manager for Realtek RTL8720DN, RTL8722DM, RTM8722CSM, etc. boards. Powerful-yet-simple-to-use feature to enable adding dynamic custom parameters.
77
paragraph=Library to configure MultiWiFi/Credentials at runtime for Realtek RTL8720DN, RTL8722DM, RTM8722CSM, etc. boards. 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 Credentials to be autoloaded into Config Portal to use or change instead of manually input. Credentials are saved in FlashStorage. New powerful-yet-simple-to-use feature to enable adding dynamic custom parameters from sketch and input using the same Config Portal. Double or MultiDetectDetector as well as Virtual Switches feature permits entering Config Portal as requested. Configurable Customs HTML Headers, including Customs Style, Customs Head Elements, CORS Header.
88
category=Communication
9-
url=https://github.com/khoih-prog/WiFiManager_RT8720
9+
url=https://github.com/khoih-prog/WiFiManager_RTL8720
1010
architectures=AmebaD
11-
depends=DoubleResetDetector_Generic, MultiResetDetector_Generic, FlashStorage_RT8720, WiFiMulti_Generic
12-
includes=WiFiManager_RT8720.h
11+
depends=DoubleResetDetector_Generic, MultiResetDetector_Generic, FlashStorage_RTL8720, WiFiMulti_Generic
12+
includes=WiFiManager_RTL8720.h

‎src/WiFiManager_RTL8720.h

+450-366
Large diffs are not rendered by default.

‎src/WiFiManager_RTL8720_Debug.h

+56-51
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,90 @@
1-
/****************************************************************************************************************************
2-
WiFiManager_RT8720_Debug.h
3-
For RTL8720DN, RTL8722DM, RTM8722CSM, etc. boards
1+
/*******************************************************************************************************************************
2+
WiFiManager_RTL8720.h
3+
4+
For RTL8720DN, RTL8722DM, RTL8722CSM, etc. boards
45
5-
WiFiManager_RT8720 (https://github.com/khoih-prog/WiFiManager_RT8720) is a library
6-
for the RTL8720DN, RTL8722DM, RTM8722CSM, etc. boards to enable store Credentials in EEPROM/SPIFFS/LittleFS for easy
7-
configuration/reconfiguration and autoconnect/autoreconnect of WiFi and other services without Hardcoding.
6+
WiFiManager_RTL8720 (https://github.com/khoih-prog/WiFiManager_RTL8720) is a library
7+
for the RTL8720DN, RTL8722DM, RTL8722CSM, etc. boards to enable store Credentials in FlashStorage for easy
8+
configuration/reconfiguration and autoconnect/autoreconnect of WiFi and other services without Hardcoding
89
9-
Built by Khoi Hoang https://github.com/khoih-prog/WiFiManager_RT8720
10+
Built by Khoi Hoang https://github.com/khoih-prog/WiFiManager_RTL8720
1011
Licensed under MIT license
1112
1213
Version: 1.0.0
1314
1415
Version Modified By Date Comments
1516
------- ----------- ---------- -----------
16-
1.0.0 K Hoang 04/02/2021 Initial coding for RTL8720DN, RTL8722DM, RTM8722CSM, etc.
17-
*****************************************************************************************************************************/
17+
1.0.0 K Hoang 18/05/2022 Initial coding for RTL8720DN, RTL8722DM, RTL8722CSM, etc.
18+
********************************************************************************************************************************/
1819

19-
#ifndef WiFiManager_RT8720_Debug_h
20-
#define WiFiManager_RT8720_Debug_h
20+
#ifndef WiFiManager_RTL8720_Debug_h
21+
#define WiFiManager_RTL8720_Debug_h
2122

22-
#ifdef RT8720_DEBUG_OUTPUT
23-
#define DBG_PORT_RT8720 RT8720_DEBUG_OUTPUT
23+
#ifdef WIFI_GENERIC_DEBUG_OUTPUT
24+
#define DBG_PORT_WG WIFI_GENERIC_DEBUG_OUTPUT
2425
#else
25-
#define DBG_PORT_RT8720 Serial
26+
#define DBG_PORT_WG Serial
2627
#endif
2728

28-
// Change _WM_LOGLEVEL_ to set tracing and logging verbosity
29+
// Change _WIFI_GENERIC_LOGLEVEL_ to set tracing and logging verbosity
2930
// 0: DISABLED: no logging
3031
// 1: ERROR: errors
3132
// 2: WARN: errors and warnings
3233
// 3: INFO: errors, warnings and informational (default)
3334
// 4: DEBUG: errors, warnings, informational and debug
3435

35-
#ifndef _WM_LOGLEVEL_
36-
#define _WM_LOGLEVEL_ 0
36+
#ifndef _WIFI_GENERIC_LOGLEVEL_
37+
#define _WIFI_GENERIC_LOGLEVEL_ 0
3738
#endif
3839

39-
const char RT8720_MARK[] = "[WML] ";
40+
////////////////////////////////////////////////////////////////////////////////////////////
41+
42+
const char WG_MARK[] = "[WG] ";
4043

41-
#define RT8720_PRINT_MARK DBG_PORT_RT8720.print(RT8720_MARK)
44+
#define WG_PRINT_MARK DBG_PORT_WG.print(WG_MARK)
4245

43-
#define RT8720_PRINT DBG_PORT_RT8720.print
44-
#define RT8720_PRINTLN DBG_PORT_RT8720.println
46+
#define WG_PRINT DBG_PORT_WG.print
47+
#define WG_PRINTLN DBG_PORT_WG.println
4548

49+
// Error waitResponse message
50+
#define ERROR_RESPONSE ":Error waitResponse"
4651

47-
///////////////////////////////////////////
52+
////////////////////////////////////////////////////////////////////////////////////////////
4853

49-
#define WM_LOGERROR0(x) if(_WM_LOGLEVEL_>0) { RT8720_PRINT(x); }
50-
#define WM_LOGERROR(x) if(_WM_LOGLEVEL_>0) { RT8720_PRINT_MARK; RT8720_PRINTLN(x); }
51-
#define WM_LOGERROR1(x,y) if(_WM_LOGLEVEL_>0) { RT8720_PRINT_MARK; RT8720_PRINT(x); RT8720_PRINTLN(y); }
52-
#define WM_LOGERROR2(x,y,z) if(_WM_LOGLEVEL_>0) { RT8720_PRINT_MARK; RT8720_PRINT(x); RT8720_PRINT(y); RT8720_PRINTLN(z); }
53-
#define WM_LOGERROR3(x,y,z,w) if(_WM_LOGLEVEL_>0) { RT8720_PRINT_MARK; RT8720_PRINT(x); RT8720_PRINT(y); RT8720_PRINT(z); RT8720_PRINTLN(w); }
54-
#define WM_LOGERROR5(x,y,z,w,xx,yy) if(_WM_LOGLEVEL_>0) { RT8720_PRINT_MARK; RT8720_PRINT(x); RT8720_PRINT(y); RT8720_PRINT(z); RT8720_PRINT(w); RT8720_PRINT(xx); RT8720_PRINTLN(yy); }
54+
#define WG_LOGERROR0(x) if(_WIFI_GENERIC_LOGLEVEL_>0) { WG_PRINT(x); }
55+
#define WG_LOGERROR(x) if(_WIFI_GENERIC_LOGLEVEL_>0) { WG_PRINT_MARK; WG_PRINTLN(x); }
56+
#define WG_LOGERROR1(x,y) if(_WIFI_GENERIC_LOGLEVEL_>0) { WG_PRINT_MARK; WG_PRINT(x); WG_PRINTLN(y); }
57+
#define WG_LOGERROR2(x,y,z) if(_WIFI_GENERIC_LOGLEVEL_>0) { WG_PRINT_MARK; WG_PRINT(x); WG_PRINT(y); WG_PRINTLN(z); }
58+
#define WG_LOGERROR3(x,y,z,w) if(_WIFI_GENERIC_LOGLEVEL_>0) { WG_PRINT_MARK; WG_PRINT(x); WG_PRINT(y); WG_PRINT(z); WG_PRINTLN(w); }
59+
#define WG_LOGERROR5(x,y,z,w,xx,yy) if(_WIFI_GENERIC_LOGLEVEL_>0) { WG_PRINT_MARK; WG_PRINT(x); WG_PRINT(y); WG_PRINT(z); WG_PRINT(w); WG_PRINT(xx); WG_PRINTLN(yy); }
5560

56-
///////////////////////////////////////////
61+
////////////////////////////////////////////////////////////////////////////////////////////
5762

58-
#define WM_LOGWARN0(x) if(_WM_LOGLEVEL_>1) { RT8720_PRINT(x); }
59-
#define WM_LOGWARN(x) if(_WM_LOGLEVEL_>1) { RT8720_PRINT_MARK; RT8720_PRINTLN(x); }
60-
#define WM_LOGWARN1(x,y) if(_WM_LOGLEVEL_>1) { RT8720_PRINT_MARK; RT8720_PRINT(x); RT8720_PRINTLN(y); }
61-
#define WM_LOGWARN2(x,y,z) if(_WM_LOGLEVEL_>1) { RT8720_PRINT_MARK; RT8720_PRINT(x); RT8720_PRINT(y); RT8720_PRINTLN(z); }
62-
#define WM_LOGWARN3(x,y,z,w) if(_WM_LOGLEVEL_>1) { RT8720_PRINT_MARK; RT8720_PRINT(x); RT8720_PRINT(y); RT8720_PRINT(z); RT8720_PRINTLN(w); }
63-
#define WM_LOGWARN5(x,y,z,w,xx,yy) if(_WM_LOGLEVEL_>1) { RT8720_PRINT_MARK; RT8720_PRINT(x); RT8720_PRINT(y); RT8720_PRINT(z); RT8720_PRINT(w); RT8720_PRINT(xx); RT8720_PRINTLN(yy); }
63+
#define WG_LOGWARN0(x) if(_WIFI_GENERIC_LOGLEVEL_>1) { WG_PRINT(x); }
64+
#define WG_LOGWARN(x) if(_WIFI_GENERIC_LOGLEVEL_>1) { WG_PRINT_MARK; WG_PRINTLN(x); }
65+
#define WG_LOGWARN1(x,y) if(_WIFI_GENERIC_LOGLEVEL_>1) { WG_PRINT_MARK; WG_PRINT(x); WG_PRINTLN(y); }
66+
#define WG_LOGWARN2(x,y,z) if(_WIFI_GENERIC_LOGLEVEL_>1) { WG_PRINT_MARK; WG_PRINT(x); WG_PRINT(y); WG_PRINTLN(z); }
67+
#define WG_LOGWARN3(x,y,z,w) if(_WIFI_GENERIC_LOGLEVEL_>1) { WG_PRINT_MARK; WG_PRINT(x); WG_PRINT(y); WG_PRINT(z); WG_PRINTLN(w); }
68+
#define WG_LOGWARN5(x,y,z,w,xx,yy) if(_WIFI_GENERIC_LOGLEVEL_>1) { WG_PRINT_MARK; WG_PRINT(x); WG_PRINT(y); WG_PRINT(z); WG_PRINT(w); WG_PRINT(xx); WG_PRINTLN(yy); }
6469

65-
///////////////////////////////////////////
70+
////////////////////////////////////////////////////////////////////////////////////////////
6671

67-
#define WM_LOGINFO0(x) if(_WM_LOGLEVEL_>2) { RT8720_PRINT(x); }
68-
#define WM_LOGINFO(x) if(_WM_LOGLEVEL_>2) { RT8720_PRINT_MARK; RT8720_PRINTLN(x); }
69-
#define WM_LOGINFO1(x,y) if(_WM_LOGLEVEL_>2) { RT8720_PRINT_MARK; RT8720_PRINT(x); RT8720_PRINTLN(y); }
70-
#define WM_LOGINFO2(x,y,z) if(_WM_LOGLEVEL_>3) { RT8720_PRINT_MARK; RT8720_PRINT(x); RT8720_PRINT(y); RT8720_PRINTLN(z); }
71-
#define WM_LOGINFO3(x,y,z,w) if(_WM_LOGLEVEL_>3) { RT8720_PRINT_MARK; RT8720_PRINT(x); RT8720_PRINT(y); RT8720_PRINT(z); RT8720_PRINTLN(w); }
72-
#define WM_LOGINFO5(x,y,z,w,xx,yy) if(_WM_LOGLEVEL_>2) { RT8720_PRINT_MARK; RT8720_PRINT(x); RT8720_PRINT(y); RT8720_PRINT(z); RT8720_PRINT(w); RT8720_PRINT(xx); RT8720_PRINTLN(yy); }
72+
#define WG_LOGINFO0(x) if(_WIFI_GENERIC_LOGLEVEL_>2) { WG_PRINT(x); }
73+
#define WG_LOGINFO(x) if(_WIFI_GENERIC_LOGLEVEL_>2) { WG_PRINT_MARK; WG_PRINTLN(x); }
74+
#define WG_LOGINFO1(x,y) if(_WIFI_GENERIC_LOGLEVEL_>2) { WG_PRINT_MARK; WG_PRINT(x); WG_PRINTLN(y); }
75+
#define WG_LOGINFO2(x,y,z) if(_WIFI_GENERIC_LOGLEVEL_>3) { WG_PRINT_MARK; WG_PRINT(x); WG_PRINT(y); WG_PRINTLN(z); }
76+
#define WG_LOGINFO3(x,y,z,w) if(_WIFI_GENERIC_LOGLEVEL_>3) { WG_PRINT_MARK; WG_PRINT(x); WG_PRINT(y); WG_PRINT(z); WG_PRINTLN(w); }
77+
#define WG_LOGINFO5(x,y,z,w,xx,yy) if(_WIFI_GENERIC_LOGLEVEL_>2) { WG_PRINT_MARK; WG_PRINT(x); WG_PRINT(y); WG_PRINT(z); WG_PRINT(w); WG_PRINT(xx); WG_PRINTLN(yy); }
7378

74-
///////////////////////////////////////////
79+
////////////////////////////////////////////////////////////////////////////////////////////
7580

76-
#define WM_LOGDEBUG0(x) if(_WM_LOGLEVEL_>3) { RT8720_PRINT(x); }
77-
#define WM_LOGDEBUG(x) if(_WM_LOGLEVEL_>3) { RT8720_PRINT_MARK; RT8720_PRINTLN(x); }
78-
#define WM_LOGDEBUG1(x,y) if(_WM_LOGLEVEL_>3) { RT8720_PRINT_MARK; RT8720_PRINT(x); RT8720_PRINTLN(y); }
79-
#define WM_LOGDEBUG2(x,y,z) if(_WM_LOGLEVEL_>3) { RT8720_PRINT_MARK; RT8720_PRINT(x); RT8720_PRINT(y); RT8720_PRINTLN(z); }
80-
#define WM_LOGDEBUG3(x,y,z,w) if(_WM_LOGLEVEL_>3) { RT8720_PRINT_MARK; RT8720_PRINT(x); RT8720_PRINT(y); RT8720_PRINT(z); RT8720_PRINTLN(w); }
81-
#define WM_LOGDEBUG5(x,y,z,w,xx,yy) if(_WM_LOGLEVEL_>3) { RT8720_PRINT_MARK; RT8720_PRINT(x); RT8720_PRINT(y); RT8720_PRINT(z); RT8720_PRINT(w); RT8720_PRINT(xx); RT8720_PRINTLN(yy); }
81+
#define WG_LOGDEBUG0(x) if(_WIFI_GENERIC_LOGLEVEL_>3) { WG_PRINT(x); }
82+
#define WG_LOGDEBUG(x) if(_WIFI_GENERIC_LOGLEVEL_>3) { WG_PRINT_MARK; WG_PRINTLN(x); }
83+
#define WG_LOGDEBUG1(x,y) if(_WIFI_GENERIC_LOGLEVEL_>3) { WG_PRINT_MARK; WG_PRINT(x); WG_PRINTLN(y); }
84+
#define WG_LOGDEBUG2(x,y,z) if(_WIFI_GENERIC_LOGLEVEL_>3) { WG_PRINT_MARK; WG_PRINT(x); WG_PRINT(y); WG_PRINTLN(z); }
85+
#define WG_LOGDEBUG3(x,y,z,w) if(_WIFI_GENERIC_LOGLEVEL_>3) { WG_PRINT_MARK; WG_PRINT(x); WG_PRINT(y); WG_PRINT(z); WG_PRINTLN(w); }
86+
#define WG_LOGDEBUG5(x,y,z,w,xx,yy) if(_WIFI_GENERIC_LOGLEVEL_>3) { WG_PRINT_MARK; WG_PRINT(x); WG_PRINT(y); WG_PRINT(z); WG_PRINT(w); WG_PRINT(xx); WG_PRINTLN(yy); }
8287

83-
///////////////////////////////////////////
88+
////////////////////////////////////////////////////////////////////////////////////////////
8489

85-
#endif //WiFiManager_RT8720_Debug_h
90+
#endif //WiFiManager_RTL8720_Debug_h

0 commit comments

Comments
 (0)
This repository has been archived.