We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52de488 commit bfa1bb0Copy full SHA for bfa1bb0
wifi_funcs.h
@@ -5,6 +5,11 @@
5
6
// const char* hostname = "esp8266REFLOW";
7
8
+
9
+// enable wifi sta
10
+// disable sleep
11
+// timeout connect
12
+// set hostname ?
13
void init_WiFi(int timeout = 10000){
14
WiFi.mode(WIFI_STA);
15
#ifdef ESP8266
@@ -67,6 +72,15 @@ void checkWifi(){
67
72
}
68
73
69
74
75
+void enableWiFi(){
76
+ WiFi.mode(WIFI_STA);
77
+ init_WiFi();
78
+}
79
80
+void disableWiFi(){
81
+ WiFi.mode(WIFI_OFF);
82
83
70
84
// uint32_t ResetReason(void)
71
85
// {
86
0 commit comments