Attempting to create a BearSSL session and my call to:
BearSSL::Session session;
Is getting the red squiggle underline and a namespace "BearSSL" has no member "Session" error.
I’m a self taught programmer so I’m probably missing something obvious, but it appears that the platform/framework/library in platformIO does not match this repo:
How do I update PIO to include BearSSL with Sessions?
#include <ESP8266WiFi.h>
BearSSL::WiFiClientSecure client;
client.setInsecure();
BearSSL::Session session; //this line marked as error
client.setSession(&session); //this line marked as error
fetchURL(&client, host, httpsPort, URL);
I am able to successfully access URL if I comment out the two problem lines. But, I should be able to access URL faster using Session, according to this page:
…a TLS session can be used to cache crypto settings and speed up connections significantly.