Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: 'class BearSSL::WiFiClientSecure' has no member named xxx #6

Closed
SebCanet opened this issue Jun 8, 2021 · 9 comments
Closed

Comments

@SebCanet
Copy link

SebCanet commented Jun 8, 2021

Hi,
I tried to compile (on Arduino IDE 1.8.15 & 2.0) your example to a generic esp8266 module, but I have 3 errors:

b:\Projets\arduino-ide_2.0.0-beta.7_Windows_64bit\portable\libraries\ArrowheadESP\src\ArrowheadESP.cpp:85:61: error: 'class BearSSL::WiFiClientSecure' has no member named 'loadCACert'
   85 |         if (getArrowheadHTTPSClient().getWiFiClientSecure().loadCACert(getArrowheadESPFS().getCA())) {
      |                                                             ^~~~~~~~~~
b:\Projets\arduino-ide_2.0.0-beta.7_Windows_64bit\portable\libraries\ArrowheadESP\src\ArrowheadESP.cpp:93:61: error: 'class BearSSL::WiFiClientSecure' has no member named 'loadCertificate'
   93 |         if (getArrowheadHTTPSClient().getWiFiClientSecure().loadCertificate(getArrowheadESPFS().getCl())) {
      |                                                             ^~~~~~~~~~~~~~~
b:\Projets\arduino-ide_2.0.0-beta.7_Windows_64bit\portable\libraries\ArrowheadESP\src\ArrowheadESP.cpp:101:61: error: 'class BearSSL::WiFiClientSecure' has no member named 'loadPrivateKey'
  101 |         if (getArrowheadHTTPSClient().getWiFiClientSecure().loadPrivateKey(getArrowheadESPFS().getPK())) {
      |                                                             ^~~~~~~~~~~~~~

It seems your library lacks some information in constructor class.
Thanks to fix it.

@tsvetlin
Copy link
Contributor

tsvetlin commented Jun 8, 2021

Hello!

This error is familiar when the board is set to ESP32, because the BearSSL library does not contain these functions.
Please make sure you are setting the board to ESP8266

#3

@SebCanet
Copy link
Author

SebCanet commented Jun 8, 2021

Thanks for answering so fast, and yes it's set to ESP8266 generic module, I have just uploaded a DHT11 test code on my microcntroller. So wihtout changing settings in IDE I have this issue.
Even with an empty program with just definition "#include <ArrowheadESP.h>" there's the same error.
Even with "Adafruit Feather Huzzah ESP8266", or "Generic ESP8266 Module", or "Sparkfun ESP8266 Thing"

@tsvetlin
Copy link
Contributor

tsvetlin commented Jun 8, 2021

I'll try to upload the code on my machine to an esp8266 and replicate the issue.

@tsvetlin
Copy link
Contributor

I managed to upload the code and make it work, without any issues.
What I did: I installed the libraries in the readme. Then I installed SPIFFS (https://randomnerdtutorials.com/install-esp8266-filesystem-uploader-arduino-ide/)
I installed the library (downloaded the zip then (Sketch -> Include Library -> Add zip library.

I opened the Basic example and modified the json files in the data folder, uploaded them with SPIFFS. Then I uploaded the code.

Maybe I should make a video guide for the library.

@SebCanet
Copy link
Author

Hi,
many thanks for testing, in fact the pb is due to compiling in Arduino IDE. In the README of this repo you should explain that we HAVE to use SPIFF method to upload file on ESP8266.

@tsvetlin
Copy link
Contributor

Note: these three functions were removed from the ESP board library 3.0.0, make sure to use an older version, until this library is not updated.

Screenshot 2021-06-22 at 14 01 19

@SebCanet
Copy link
Author

Hi,
I've just tested and you're right ! For compilation the v2.7.4 works, and for SPIFF config v2.7.4 & v3. work.
Thanks.

@EgHubs
Copy link

EgHubs commented Sep 20, 2022

Note: these three functions were removed from the ESP board library 3.0.0, make sure to use an older version, until this library is not updated.

Screenshot 2021-06-22 at 14 01 19

And why did they remove this feature in v3

@solariz
Copy link

solariz commented Nov 30, 2023

Experienced the same. We are now on 3.1.2 and the Method is not working anymore.
Also jumping back with my code to 2.7.4 isnt easy throwing all kind of other dependency errors.

Going to search another way to go without BearSSL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants