HARestAPI icon indicating copy to clipboard operation
HARestAPI copied to clipboard

WiFiClientSecure' has no member named 'verify'

Open phantom101 opened this issue 2 years ago • 3 comments

Sadly the lib is broken :-(

.pio\libdeps\nodemcuv2\HARestAPI\src\HARestAPI.cpp: In member function 'String HARestAPI::sendGetHA(String)': .pio\libdeps\nodemcuv2\HARestAPI\src\HARestAPI.cpp:102:21: error: 'class BearSSL::WiFiClientSecure' has no member named 'verify' 102 | if (wsclient->verify(_fingerprint.c_str(), _serverip.c_str())) | ^~~~~~ .pio\libdeps\nodemcuv2\HARestAPI\src\HARestAPI.cpp: In member function 'bool HARestAPI::sendPostHA(String, String)': .pio\libdeps\nodemcuv2\HARestAPI\src\HARestAPI.cpp:201:21: error: 'class BearSSL::WiFiClientSecure' has no member named 'verify' 201 | if (wsclient->verify(_fingerprint.c_str(), _serverip.c_str())) | ^~~~~~ Compiling .pio\build\nodemcuv2\libc1a\ESP8266mDNS\LEAmDNS_Structs.cpp.o *** [.pio\build\nodemcuv2\lib17d\HARestAPI\HARestAPI.cpp.o] Error 1

phantom101 avatar Aug 18 '23 11:08 phantom101

fixing would be nice :)

PappDieter avatar Sep 04 '23 20:09 PappDieter

Can you check if latest 0.3.2 fixes this?

debsahu avatar Sep 07 '23 15:09 debsahu

wsclient->setFingerprint(_fingerprint.c_str()) missed ; in two places

xyyx avatar Oct 10 '24 15:10 xyyx