mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
@ -831,7 +831,6 @@ void ESP8266WiFiClass::_eventCallback(void* arg)
|
||||
|
||||
if (event->event == EVENT_STAMODE_DISCONNECTED) {
|
||||
WiFiClient::stopAll();
|
||||
WiFiUDP::stopAll();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -267,6 +267,9 @@ int WiFiClientSecure::available() {
|
||||
}
|
||||
|
||||
uint8_t WiFiClientSecure::connected() {
|
||||
if (!_client)
|
||||
return 0;
|
||||
|
||||
if (_client->state() == ESTABLISHED)
|
||||
return 1;
|
||||
|
||||
|
Reference in New Issue
Block a user