diff --git a/libraries/Network/src/NetworkClient.h b/libraries/Network/src/NetworkClient.h index add886146b4..1baf8b36139 100644 --- a/libraries/Network/src/NetworkClient.h +++ b/libraries/Network/src/NetworkClient.h @@ -33,13 +33,13 @@ class ESPLwIPClient : public Client { class NetworkClient : public ESPLwIPClient { protected: - std::shared_ptr clientSocketHandle; - std::shared_ptr _rxBuffer; - bool _connected; - bool _sse; + std::shared_ptr clientSocketHandle = nullptr; + std::shared_ptr _rxBuffer = nullptr; + bool _connected = false; + bool _sse = false; int _timeout; - int _lastWriteTimeout; - int _lastReadTimeout; + int _lastWriteTimeout = 0; + int _lastReadTimeout = 0; public: NetworkClient *next;