1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-10 04:22:05 +03:00

add method to check for clients without referencing them

This commit is contained in:
ficeto
2015-05-12 15:21:35 +03:00
parent 1707d3d036
commit bacc0b1f8b
2 changed files with 6 additions and 0 deletions

View File

@ -75,6 +75,11 @@ void WiFiServer::begin()
extern "C" uint32_t esp_micros_at_task_start();
bool WiFiServer::hasClient(){
if (_unclaimed) return true;
return false;
}
WiFiClient WiFiServer::available(byte* status)
{
static uint32_t lastPollTime = 0;