This repository was archived by the owner on Feb 4, 2023. It is now read-only.
File tree 4 files changed +26
-6
lines changed
4 files changed +26
-6
lines changed Original file line number Diff line number Diff line change 14
14
#include " Credentials.h"
15
15
#include " dynamicParams.h"
16
16
17
+ ESPAsync_WiFiManager_Lite* ESPAsync_WiFiManager;
18
+
17
19
void heartBeatPrint ()
18
20
{
19
21
static int num = 1 ;
20
22
21
23
if (WiFi.status () == WL_CONNECTED)
22
- Serial.print (F ( " H" ) ); // H means connected to WiFi
24
+ Serial.print (" H" ); // H means connected to WiFi
23
25
else
24
- Serial.print (F (" F" )); // F means not connected to WiFi
26
+ {
27
+ if (ESPAsync_WiFiManager->isConfigMode ())
28
+ Serial.print (" C" ); // C means in Config Mode
29
+ else
30
+ Serial.print (" F" ); // F means not connected to WiFi
31
+ }
25
32
26
33
if (num == 80 )
27
34
{
@@ -48,8 +55,6 @@ void check_status()
48
55
}
49
56
}
50
57
51
- ESPAsync_WiFiManager_Lite* ESPAsync_WiFiManager;
52
-
53
58
#if USING_CUSTOMS_STYLE
54
59
const char NewCustomsStyle[] /* PROGMEM*/ = " <style>div,input{padding:5px;font-size:1em;}input{width:95%;}body{text-align: center;}\
55
60
button{background-color:blue;color:white;line-height:2.4rem;font-size:1.2rem;width:100%;}fieldset{border-radius:0.3rem;margin:0px;}</style>" ;
Original file line number Diff line number Diff line change 124
124
125
125
/////////////////////////////////////////////
126
126
127
+ // Optional, to use Board Name in Menu
128
+ #define USING_BOARD_NAME true
129
+
130
+ /////////////////////////////////////////////
131
+
127
132
#include <ESPAsync_WiFiManager_Lite.h>
128
133
129
134
#if ESP8266
Original file line number Diff line number Diff line change @@ -52,9 +52,14 @@ void heartBeatPrint()
52
52
static int num = 1 ;
53
53
54
54
if (WiFi.status () == WL_CONNECTED)
55
- Serial.print (" W " ); // W means connected to WiFi
55
+ Serial.print (" H " ); // H means connected to WiFi
56
56
else
57
- Serial.print (" N" ); // N means not connected to WiFi
57
+ {
58
+ if (ESPAsync_WiFiManager->isConfigMode ())
59
+ Serial.print (" C" ); // C means in Config Mode
60
+ else
61
+ Serial.print (" F" ); // F means not connected to WiFi
62
+ }
58
63
59
64
if (num == 40 )
60
65
{
Original file line number Diff line number Diff line change 124
124
125
125
/////////////////////////////////////////////
126
126
127
+ // Optional, to use Board Name in Menu
128
+ #define USING_BOARD_NAME true
129
+
130
+ /////////////////////////////////////////////
131
+
127
132
#include <ESPAsync_WiFiManager_Lite.h>
128
133
129
134
#if ESP8266
You can’t perform that action at this time.
0 commit comments