WebSocketSerialMonitor icon indicating copy to clipboard operation
WebSocketSerialMonitor copied to clipboard

WiFiClientSecure does not name a type WiFiClientSecure * ssl

Open pieman64 opened this issue 9 years ago • 4 comments

@tzapu added the libraries etc and when I try to compile the sketch I get:

WebSockets.h:164:9: error: 'WiFiClientSecure' does not name a type WiFiClientSecure * ssl;

The section in Websockets.h is:

#if (WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP8266)
        bool isSSL;             ///< run in ssl mode
        WiFiClientSecure * ssl;
#endif

Do you know what the fix is?

pieman64 avatar Feb 17 '16 07:02 pieman64

don t actually know, seems a websockets lib error, maybe you need a newer esp8266 core

tzapu avatar Feb 17 '16 07:02 tzapu

I am on 2.0.0-rc1 and a bit reluctant to go to the unreleased versions. Which version are you using and does the sketch still compile for you? I think your sketch is dated May 2015 so maybe the newer cores have broken something but the unreleased versions are probably not required.

pieman64 avatar Feb 17 '16 07:02 pieman64

hi, you ve actually got a newer stable release than that, the current stable 2.0.0

i am using the latest github of the code, but i assume either 2.0.0 or 2.1.0rcsomething should work for you.

try the stable 2.0.0 first, it s on sdk 1.3 i think, and a bit more stable wifi wise

tzapu avatar Feb 17 '16 07:02 tzapu

Going to 2.1.0-rc2 has fixed the problem, thanks. I have a buggy Boards Manager that doesn't show 2.0.0. but shows most of the others.

pieman64 avatar Feb 17 '16 08:02 pieman64