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.
2 parents 378ce87 + 4719a31 commit 82bb82aCopy full SHA for 82bb82a
libraries/ESP8266WiFi/src/ESP8266WiFi.cpp
@@ -74,6 +74,11 @@ void ESP8266WiFiClass::mode(WiFiMode m)
74
ETS_UART_INTR_ENABLE();
75
}
76
77
+WiFiMode ESP8266WiFiClass::getMode()
78
+{
79
+ return (WiFiMode)wifi_get_opmode();
80
+}
81
+
82
void ESP8266WiFiClass::_mode(WiFiMode m)
83
{
84
if(wifi_get_opmode() == (uint8)m) {
libraries/ESP8266WiFi/src/ESP8266WiFi.h
@@ -44,6 +44,7 @@ class ESP8266WiFiClass
44
ESP8266WiFiClass();
45
46
void mode(WiFiMode);
47
+ WiFiMode getMode();
48
49
/**
50
* Start Wifi connection
0 commit comments