@@ -11,14 +11,14 @@ class Nefry_lib
11
11
setModuleClass (String className),
12
12
setUser (String user),
13
13
setUserPass (String pass),
14
- setStoreValue (long value, const int pointer),
15
- setStoreStr (String str, const int pointer),
14
+ setStoreValue (long value,const int pointer),
15
+ setStoreStr (String str,const int pointer),
16
16
getWriteMode (),
17
17
readSW (),
18
18
getPollingSW (),
19
19
getWifiEnabled (),
20
20
getDisplayStatusEnabled ();
21
-
21
+
22
22
String
23
23
getModuleID (),
24
24
getModuleClass (),
@@ -30,8 +30,8 @@ class Nefry_lib
30
30
getDefaultModuleId (),
31
31
/* Console */
32
32
read (),
33
-
34
- getlistWifi (),
33
+
34
+ getWiFiList (),
35
35
createHtml (String title, String head, String body);
36
36
37
37
long
@@ -45,9 +45,9 @@ class Nefry_lib
45
45
void
46
46
reset (),
47
47
sleep (const int sec),
48
- setProgramName (const char * pn),
48
+ setProgramName (const char * pn),
49
49
beginLed (const int num, const int dataOut, uint8_t t = 0 , const int clk = -1 ),
50
- setLed (const int r, const int g, const int b, const char w = 122 , const int pin = 16 , const int num = 0 ),
50
+ setLed (const int r, const int g, const int b, const char w = 80 , const int pin = 16 , const int num = 0 ),
51
51
setLed (String _colorStr, const char w = 122 , const int pin = 16 , const int num = 0 ),
52
52
addWiFi (String ssid, String pass),
53
53
deleteWiFi (const int id),
@@ -93,39 +93,41 @@ class Nefry_lib
93
93
println (String text),
94
94
95
95
setIndexLink (const char title[32 ], const char url[32 ]),
96
- getDisplayInfo (),
96
+ printDeviceInfo (),
97
97
98
- setNefryState (int state);
98
+ setNefryState (int state),
99
+ setLedBlink (int red, int green, int blue, bool EN, int wait),
100
+ LedBlinkTask ();
99
101
100
- ESP32WebServer* getWebServer ();
102
+ ESP32WebServer* getWebServer ();
101
103
102
- // 下位互換
104
+ // 下位互換
103
105
104
- String getConfStr (const int num) {
106
+ String getConfStr (const int num){
105
107
return getStoreStr (num);
106
108
}
107
- void setConfHtmlStr (const char set[15 ], const int num) {
108
- setStoreTitle (set, num);
109
+ void setConfHtmlStr (const char set[15 ], const int num){
110
+ setStoreTitle (set,num);
109
111
}
110
- void setConfStr (const char *str , const int pt) {
111
- setStoreStr (str, pt );
112
+ void setConfStr (const char *pt , const int num) {
113
+ setStoreStr (pt,num );
112
114
}
113
115
void setStoreTitleStr (const char set[15 ], const int pt) {
114
116
setStoreTitle (set, pt);
115
117
}
116
- int getConfValue (const int num) {
117
- return getStoreValue (num + 10 );
118
+ int getConfValue (const int num){
119
+ return getStoreValue (num+ 10 );
118
120
}
119
- void setConfHtmlValue (const char set[15 ], const int num) {
120
- setStoreTitle (set, num + 10 );
121
+ void setConfHtmlValue (const char set[15 ], const int num){
122
+ setStoreTitle (set,num+ 10 );
121
123
}
122
- void setConfValue (const int pt, const int num) {
123
- setStoreValue (num, pt + 10 );
124
+ void setConfValue (const int pt, const int num){
125
+ setStoreValue (num,pt+ 10 );
124
126
}
125
127
void setStoreTitleValue (const char set[15 ], const int pt) {
126
- setStoreTitle (set, pt + 10 );
128
+ setStoreTitle (set, pt+ 10 );
127
129
}
128
- String getModuleName () {
130
+ String getModuleName (){
129
131
return getModuleID ();
130
132
}
131
133
@@ -137,12 +139,15 @@ class Nefry_lib
137
139
_swPushingflg = false ,
138
140
_wifiEnableFlg = true ,/* Wi-Fiの有効無効化 */
139
141
_displayStatusFlg = true ;/* ディスプレイの状態表示の有効無効化 */
142
+
143
+ bool setAnalyticsData (String action);
140
144
141
- int
145
+ int
142
146
_bootMode = -1 , /* Boot状態を管理 -1:初期化中 0:起動中 1:通常起動 2:書き込みモード */
143
147
hextonum (char c),
144
- _nefryState = 0 ;
145
-
148
+ _nefryState = 0 ,
149
+ _nefryWifiWait;
150
+ int _nefryLedBlinkState[5 ];
146
151
const char * program;
147
152
};
148
153
extern Nefry_lib Nefry;
0 commit comments