mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-10 14:42:08 +03:00
Rebasing into single commit
Adding getMode function to ESP8266WiFiClass.cpp Adding getMode function to ESP8266WiFiClass.h Changing return type of getMode to WiFiMode for clarity Changing return type of getMode to WiFiMode for clarity Add return typecast
This commit is contained in:
@ -74,6 +74,11 @@ void ESP8266WiFiClass::mode(WiFiMode m)
|
||||
ETS_UART_INTR_ENABLE();
|
||||
}
|
||||
|
||||
WiFiMode ESP8266WiFiClass::getMode()
|
||||
{
|
||||
return (WiFiMode)wifi_get_opmode();
|
||||
}
|
||||
|
||||
void ESP8266WiFiClass::_mode(WiFiMode m)
|
||||
{
|
||||
if(wifi_get_opmode() == (uint8)m) {
|
||||
|
@ -44,6 +44,7 @@ public:
|
||||
ESP8266WiFiClass();
|
||||
|
||||
void mode(WiFiMode);
|
||||
WiFiMode getMode();
|
||||
|
||||
/**
|
||||
* Start Wifi connection
|
||||
|
Reference in New Issue
Block a user