FastLED 3.9.15
Loading...
Searching...
No Matches

◆ isTimedOut()

bool fl::HttpConnection::isTimedOut ( u32 currentTimeMs) const

Definition at line 151 of file connection.cpp.hpp.

151 {
153 return false; // Only check timeout when connected
154 }
155
156 // Check if enough time has passed since last data received
157 u32 timeSinceLastData = currentTimeMs - mLastDataReceivedMs;
158 return timeSinceLastData >= mConfig.connectionTimeoutMs;
159}
ConnectionConfig mConfig
Definition connection.h:74
ConnectionState mState
Definition connection.h:75

References fl::CONNECTED, mConfig, mLastDataReceivedMs, and mState.

Referenced by update().

+ Here is the caller graph for this function: