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

◆ onDisconnected()

void fl::HttpConnection::onDisconnected ( )

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

74 {
76 // Check if we should attempt reconnection
77 // Use <= to handle the exact limit correctly (0-indexed attempts vs 1-indexed limit)
78 if (mConfig.maxReconnectAttempts == 0 ||
79 mReconnectAttempts < mConfig.maxReconnectAttempts) {
81 } else {
83 }
84 }
85}
ConnectionConfig mConfig
Definition connection.h:74
void transitionTo(ConnectionState newState, u32 currentTimeMs)
ConnectionState mState
Definition connection.h:75

References fl::CONNECTED, fl::CONNECTING, fl::DISCONNECTED, mConfig, mReconnectAttempts, mState, fl::RECONNECTING, and transitionTo().

Referenced by onError(), onEvent(), and update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: