Merge pull request #10737 from TD-er/patch-2

[NetworkClient] Init members of NetworkClient
This commit is contained in:
Me No Dev 2024-12-16 19:12:24 +02:00 committed by GitHub
commit 0515264aa6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,13 +35,13 @@ public:
class NetworkClient : public ESPLwIPClient {
protected:
std::shared_ptr<NetworkClientSocketHandle> clientSocketHandle;
std::shared_ptr<NetworkClientRxBuffer> _rxBuffer;
bool _connected;
bool _sse;
std::shared_ptr<NetworkClientSocketHandle> clientSocketHandle = nullptr;
std::shared_ptr<NetworkClientRxBuffer> _rxBuffer = nullptr;
bool _connected = false;
bool _sse = false;
int _timeout;
int _lastWriteTimeout;
int _lastReadTimeout;
int _lastWriteTimeout = 0;
int _lastReadTimeout = 0;
public:
NetworkClient *next;