witnessmenow / arduino_twitch_api

A wrapper for the Twitch API for Arduino
25 stars 10 forks source link

Deprecation of WifiClientSecure #1

Closed jackkenney10 closed 5 years ago

jackkenney10 commented 5 years ago

WifiClientSecure has been deprecated since May 13, and replaced by WifiClientSecureBearSSL. Usage of the Arduino Twitch API requires the legacy WifiClientSecure.

According to WifiClientSecureBearSSL.h, in order to use the legacy library, some changes must be made to the final sketch:

#define USING_AXTLS #include <ESP8266WiFi.h> //#include <WiFiClientSecure.h> #include "WiFiClientSecureAxTLS.h" using namespace axTLS;

I encountered this issue today. After much troubleshooting, and eventually switching to the legacy library, I was able to successfully connect to the Twitch API.

witnessmenow commented 5 years ago

You can also use that Wificlientsecure and just add client.setInsecure(); somewhere in the setup

On Sat, 13 Jul 2019, 23:01 jackkenney10, notifications@github.com wrote:

WifiClientSecure has been deprecated since May 13, and replaced by WifiClientSecureBearSSL. Usage of the Arduino Twitch API requires the legacy WifiClientSecure.

According to WifiClientSecureBearSSL.h, https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h in order to use the legacy library, some changes must be made to the final sketch:

define USING_AXTLS

include

//#include

include "WiFiClientSecureAxTLS.h"

using namespace axTLS;

I encountered this issue today. After much troubleshooting, and eventually switching to the legacy library, I was able to successfully connect to the Twitch API.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/witnessmenow/arduino_twitch_api/issues/1?email_source=notifications&email_token=AAL5PQRCH42UBZCOPAPTESLP7JGEZA5CNFSM4IDDALQKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G7BTVYA, or mute the thread https://github.com/notifications/unsubscribe-auth/AAL5PQQAHTFPMGDSHZTR5ALP7JGEZANCNFSM4IDDALQA .

jackkenney10 commented 5 years ago

Gotcha, thanks for that. I'm new to this sort of thing and it took me ages to get it sorted out.