From 7c5113fe2dbe86fceec21b2846652d26de866234 Mon Sep 17 00:00:00 2001 From: Markus Date: Tue, 27 Dec 2016 14:16:12 +0100 Subject: [PATCH] fix #154 - _fingerprint not declared in this scope fix #154 - _fingerprint not declared in this scope --- src/WebSocketsClient.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/WebSocketsClient.cpp b/src/WebSocketsClient.cpp index 3a0a039..d398aad 100644 --- a/src/WebSocketsClient.cpp +++ b/src/WebSocketsClient.cpp @@ -40,8 +40,10 @@ WebSocketsClient::~WebSocketsClient() { void WebSocketsClient::begin(const char *host, uint16_t port, const char * url) { _host = host; _port = port; +#if (WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP8266) _fingerprint = ""; - +#endif + _client.num = 0; _client.status = WSC_NOT_CONNECTED; _client.tcp = NULL;