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

◆ shouldSendHeartbeat()

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

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

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

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

Referenced by update().

+ Here is the caller graph for this function: