FastLED 3.10.8
Loading...
Searching...
No Matches

◆ shouldSendHeartbeat()

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

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

113 {
115 return false; // Only send heartbeats when connected
116 }
117
118 // Check if enough time has passed since last heartbeat
119 u32 timeSinceLastHeartbeat = currentTimeMs - mLastHeartbeatSentMs;
120 return timeSinceLastHeartbeat >= mConfig.heartbeatIntervalMs;
121}
ConnectionConfig mConfig
Definition connection.h:75
ConnectionState mState
Definition connection.h:76

References fl::CONNECTED, fl::FL_NO_EXCEPT, mConfig, mLastHeartbeatSentMs, and mState.

Referenced by update().

+ Here is the caller graph for this function: