Backward compatibility with AsyncTCP (disconnected() method)

This commit is contained in:
2022-12-09 16:45:23 +01:00
parent d4c9bcdd37
commit 3d6671a542

View File

@@ -124,6 +124,10 @@ class AsyncClient : public AsyncSocketBase
uint8_t state() { return _conn_state; } uint8_t state() { return _conn_state; }
bool connected(); bool connected();
bool disconnected() {
return !connected();
}
bool freeable();//disconnected or disconnecting bool freeable();//disconnected or disconnecting
uint32_t getAckTimeout(); uint32_t getAckTimeout();