mirror of
https://github.com/esphome/esphome.git
synced 2026-02-25 04:45:29 -07:00
Document Socket::ready() as main-loop-only
This commit is contained in:
@@ -71,7 +71,7 @@ class Socket {
|
||||
int get_fd() const { return -1; }
|
||||
#endif
|
||||
|
||||
/// Check if socket has data ready to read
|
||||
/// Check if socket has data ready to read. Must only be called from the main loop thread.
|
||||
/// For select()-based sockets: non-virtual, checks Application's select() results
|
||||
/// For LWIP raw TCP sockets: virtual, checks internal buffer state
|
||||
#ifdef USE_SOCKET_SELECT_SUPPORT
|
||||
|
||||
Reference in New Issue
Block a user