1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-03 07:02:28 +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:
Paul Mandel 2015-09-15 17:57:13 -07:00 committed by Paul Mandel
parent c528a44f1a
commit 4719a31898
2 changed files with 6 additions and 0 deletions

View File

@ -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) {

View File

@ -44,6 +44,7 @@ public:
ESP8266WiFiClass();
void mode(WiFiMode);
WiFiMode getMode();
/**
* Start Wifi connection