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 { class NetworkClient : public ESPLwIPClient {
protected: protected:
std::shared_ptr<NetworkClientSocketHandle> clientSocketHandle; std::shared_ptr<NetworkClientSocketHandle> clientSocketHandle = nullptr;
std::shared_ptr<NetworkClientRxBuffer> _rxBuffer; std::shared_ptr<NetworkClientRxBuffer> _rxBuffer = nullptr;
bool _connected; bool _connected = false;
bool _sse; bool _sse = false;
int _timeout; int _timeout;
int _lastWriteTimeout; int _lastWriteTimeout = 0;
int _lastReadTimeout; int _lastReadTimeout = 0;
public: public:
NetworkClient *next; NetworkClient *next;