adesolasamuel / NodeMCUtoAzureIoTCentral

This is a detailed description of how to send data from NodeMCU or ESP8266 to Microsoft Azure IoT Central
MIT License
19 stars 11 forks source link

Compilation Error #1

Open Enomis82 opened 2 years ago

Enomis82 commented 2 years ago

during compiling i'm getting this error

C:\Users\enomi\Downloads\NodeMCUtoAzureIoTCentral-main\NodeMCUtoAzureIoTCentral-main\ESP8266\ESP8266\ESP8266\src\iotc\arduino\iotc.cpp: In function 'int _getOperationId(IOTContextInternal*, const char*, const char*, const char*, const char*, char*, char*)':
C:\Users\enomi\Downloads\NodeMCUtoAzureIoTCentral-main\NodeMCUtoAzureIoTCentral-main\ESP8266\ESP8266\ESP8266\src\iotc\arduino\iotc.cpp:84:10: error: 'class BearSSL::WiFiClientSecure' has no member named 'setCACert'
   84 |   client.setCACert((const uint8_t*)SSL_CA_PEM_DEF,
      |          ^~~~~~~~~
C:\Users\enomi\Downloads\NodeMCUtoAzureIoTCentral-main\NodeMCUtoAzureIoTCentral-main\ESP8266\ESP8266\ESP8266\src\iotc\arduino\iotc.cpp: In function 'int iotc_connect(IOTContext, const char*, const char*, const char*, IOTConnectType)':
C:\Users\enomi\Downloads\NodeMCUtoAzureIoTCentral-main\NodeMCUtoAzureIoTCentral-main\ESP8266\ESP8266\ESP8266\src\iotc\arduino\iotc.cpp:301:24: error: 'class BearSSL::WiFiClientSecure' has no member named 'setCACert'
  301 |   internal->tlsClient->setCACert((const uint8_t*)SSL_CA_PEM_DEF,
      |                        ^~~~~~~~~
exit status 1

Error compiling for board NodeMCU 0.9 (ESP-12 Module).

adesolasamuel commented 2 years ago

Make sure the project file is in the folder

On Sat, Jan 29, 2022, 8:03 PM Colombo Simone @.***> wrote:

during compiling i'm getting this error

C:\Users\enomi\Downloads\NodeMCUtoAzureIoTCentral-main\NodeMCUtoAzureIoTCentral-main\ESP8266\ESP8266\ESP8266\src\iotc\arduino\iotc.cpp: In function 'int _getOperationId(IOTContextInternal, const char, const char, const char, const char, char, char)': C:\Users\enomi\Downloads\NodeMCUtoAzureIoTCentral-main\NodeMCUtoAzureIoTCentral-main\ESP8266\ESP8266\ESP8266\src\iotc\arduino\iotc.cpp:84:10: error: 'class BearSSL::WiFiClientSecure' has no member named 'setCACert' 84 | client.setCACert((const uint8_t)SSL_CA_PEM_DEF, | ^~~~~ C:\Users\enomi\Downloads\NodeMCUtoAzureIoTCentral-main\NodeMCUtoAzureIoTCentral-main\ESP8266\ESP8266\ESP8266\src\iotc\arduino\iotc.cpp: In function 'int iotc_connect(IOTContext, const char, const char, const char, IOTConnectType)': C:\Users\enomi\Downloads\NodeMCUtoAzureIoTCentral-main\NodeMCUtoAzureIoTCentral-main\ESP8266\ESP8266\ESP8266\src\iotc\arduino\iotc.cpp:301:24: error: 'class BearSSL::WiFiClientSecure' has no member named 'setCACert' 301 | internal->tlsClient->setCACert((const uint8_t)SSL_CA_PEM_DEF, | ^~~~~ exit status 1

Error compiling for board NodeMCU 0.9 (ESP-12 Module).

— Reply to this email directly, view it on GitHub https://github.com/adesolasamuel/NodeMCUtoAzureIoTCentral/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANHEGDHHPQD5CLGBAQQDXW3UYQ2WZANCNFSM5NDG3WXA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

invicta0 commented 2 years ago

I also encountered this issue. I was trying to compile for Adafruit Feather HUZZAH, using the Arduino core here: https://github.com/esp8266/Arduino

I had to explicitly downgrade the ESP8266 boards to version 2.7.4

caglarhayta commented 2 years ago

I also encountered this issue.