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

◆ onDisconnected()

void fl::HttpConnection::onDisconnected ( )

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

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

References fl::CONNECTED, fl::CONNECTING, fl::DISCONNECTED, fl::FL_NO_EXCEPT, 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: